/* =========================================================================
   Serviços — Risco de Desligamento (.page-risco-desligamento) e
   Foundation Models (.page-foundation-models)
   Mesma pele das demais páginas de serviço (hero escuro, seções alternando
   escuro/claro, cards .cap-card, CTA preto). Tokens do site; verde de texto
   sobre fundo claro: --svc-ink-green (mesmo valor usado em Modelos sob Medida).
   ========================================================================= */
.page-risco-desligamento,
.page-foundation-models { --svc-ink-green: #077a3c; --svc-light-bg: #f4f6f4; --svc-muted: #4a4d50; }

/* ---- Hero ---- */
.hero-rd, .hero-fm {
	overflow: hidden;
	padding: 160px 0 80px;
	position: relative;
	z-index: 1;
	background:
		radial-gradient(ellipse at 72% 20%, rgba(1,234,107,0.075), transparent 42%),
		radial-gradient(ellipse at 12% 80%, rgba(255,255,255,0.025), transparent 42%),
		#000;
}
.hero-rd .hero-grid, .hero-fm .hero-grid { display: block; max-width: 920px; }
.hero-rd .hero-eyebrow, .hero-fm .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: var(--radius-full); background: var(--green-08); border: 1px solid rgba(1,234,107,0.2); font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.hero-rd h1, .hero-fm h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-rd h1 .hl, .hero-fm h1 .hl { background: linear-gradient(135deg, var(--green), #b6ffd2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-rd .hero-lead, .hero-fm .hero-lead { font-size: 1.1rem; color: var(--g300); font-weight: 300; line-height: 1.75; margin-bottom: 36px; max-width: 760px; }
.hero-rd .hero-ctas, .hero-fm .hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-rd .hero-note { padding-top: 28px; border-top: 1px solid var(--border-dark); font-size: 0.88rem; color: var(--g300); line-height: 1.6; max-width: 720px; }
.hero-fm .hero-ctas { margin-bottom: 0; }

/* ---- Seções claras ---- */
.page-risco-desligamento .svc-light,
.page-foundation-models .svc-light { background: var(--svc-light-bg); color: var(--g900); }
.page-risco-desligamento .svc-light::before,
.page-foundation-models .svc-light::before { opacity: 0.06; }
.page-risco-desligamento .svc-light .section-label,
.page-foundation-models .svc-light .section-label { color: var(--svc-ink-green); }
.page-risco-desligamento .svc-light .section-title,
.page-foundation-models .svc-light .section-title { color: var(--g900); }
.page-risco-desligamento .svc-light .section-sub,
.page-foundation-models .svc-light .section-sub { color: var(--svc-muted); max-width: 860px; }
.page-risco-desligamento .svc-light .section-sub strong,
.page-foundation-models .svc-light .section-sub strong { color: var(--g900); }
.page-risco-desligamento .svc-foot,
.page-foundation-models .svc-foot { margin-top: 20px; font-size: 0.85rem; line-height: 1.6; color: #6a6d70; }

/* ---- Cards de número (compartilhados) ---- */
.page-risco-desligamento .svc-stats,
.page-foundation-models .svc-stats { display: grid; gap: 16px; }
.page-risco-desligamento .svc-stats--4,
.page-foundation-models .svc-stats--4 { grid-template-columns: repeat(4, 1fr); }
.page-risco-desligamento .svc-stat,
.page-foundation-models .svc-stat,
.page-risco-desligamento .fm-stat,
.page-foundation-models .fm-stat { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 10px 32px rgba(0,0,0,0.04); transition: transform var(--tb), box-shadow var(--tb); }
.page-risco-desligamento .svc-stat:hover,
.page-foundation-models .svc-stat:hover,
.page-risco-desligamento .fm-stat:hover,
.page-foundation-models .fm-stat:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.page-risco-desligamento .svc-stat-tag,
.page-foundation-models .svc-stat-tag { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--svc-muted); margin-bottom: 10px; line-height: 1.4; }
.page-risco-desligamento .svc-stat-num,
.page-foundation-models .svc-stat-num { display: block; font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; color: var(--svc-ink-green); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.page-risco-desligamento .svc-stat p,
.page-foundation-models .svc-stat p,
.page-risco-desligamento .fm-stat p,
.page-foundation-models .fm-stat p { font-size: 0.92rem; color: #2a2a2a; line-height: 1.6; }
.page-risco-desligamento .svc-stat--dark,
.page-foundation-models .svc-stat--dark { background: #0a0a0a; border-color: #0a0a0a; }
.page-risco-desligamento .svc-stat--dark .svc-stat-tag,
.page-foundation-models .svc-stat--dark .svc-stat-tag { color: var(--g200); }
.page-risco-desligamento .svc-stat--dark .svc-stat-num,
.page-foundation-models .svc-stat--dark .svc-stat-num { color: var(--green); }
.page-risco-desligamento .svc-stat--dark p,
.page-foundation-models .svc-stat--dark p { color: var(--g100); }

/* ---- Títulos equilibrados (evita palavra órfã na última linha) ---- */
.page-risco-desligamento .section-title,
.page-foundation-models .section-title,
.page-risco-desligamento .cta-section h2,
.page-foundation-models .cta-section h2,
.hero-rd h1,
.hero-fm h1 { text-wrap: balance; }

/* ---- Link no CTA ---- */
.page-risco-desligamento .rd-mail,
.page-foundation-models .rd-mail,
.page-risco-desligamento .fm-mail,
.page-foundation-models .fm-mail { color: var(--g200); text-decoration: underline; text-underline-offset: 3px; transition: color var(--tf); }
.page-risco-desligamento .rd-mail:hover,
.page-foundation-models .rd-mail:hover,
.page-risco-desligamento .fm-mail:hover,
.page-foundation-models .fm-mail:hover { color: var(--green); }
.page-risco-desligamento .cta-microcopy,
.page-foundation-models .cta-microcopy { max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.page-risco-desligamento .rd-cta, .page-foundation-models .fm-cta { background: radial-gradient(ellipse at 50% 0%, rgba(1,234,107,0.075), transparent 48%), #000; }
.page-risco-desligamento .cta-section h2 .hl, .page-foundation-models .cta-section h2 .hl { background: linear-gradient(135deg, var(--green), #b6ffd2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* =========================================================================
   RISCO DE DESLIGAMENTO
   ========================================================================= */
.page-risco-desligamento .rd-method .section-sub { max-width: 780px; color: var(--g200); }
.page-risco-desligamento .rd-steps { grid-template-columns: repeat(4, 1fr); }
.page-risco-desligamento .rd-steps .cap-card { padding-top: 32px; }
.page-risco-desligamento .rd-step-n { position: absolute; top: 24px; right: 24px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--g300); }
.page-risco-desligamento .rd-steps .cap-card p { color: var(--g200); font-size: 0.9rem; line-height: 1.65; }
.page-risco-desligamento .rd-steps .cap-card h3 { font-size: 1.05rem; color: #fff; }

/* Painéis (mapa e setores) */
.page-risco-desligamento .rd-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.page-risco-desligamento .rd-panel { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-xl); padding: 32px; box-shadow: 0 10px 32px rgba(0,0,0,0.04); min-width: 0; }
.page-risco-desligamento .rd-panel-head h3 { font-size: 1.2rem; font-weight: 700; color: var(--g900); margin-bottom: 6px; }
.page-risco-desligamento .rd-panel-head p { font-size: 0.9rem; color: var(--svc-muted); line-height: 1.55; }
.page-risco-desligamento .rd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 14px; font-size: 0.82rem; font-weight: 500; color: var(--svc-muted); }
.page-risco-desligamento .rd-legend li { display: inline-flex; align-items: center; gap: 8px; }
.page-risco-desligamento .rd-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,0.08); }
.page-risco-desligamento .rd-sw.rd-uf--s1, .page-risco-desligamento .rd-uf--s1 { fill: #d3f4e1; background: #d3f4e1; }
.page-risco-desligamento .rd-sw.rd-uf--s2, .page-risco-desligamento .rd-uf--s2 { fill: #8fe0b2; background: #8fe0b2; }
.page-risco-desligamento .rd-sw.rd-uf--s3, .page-risco-desligamento .rd-uf--s3 { fill: #2fb36a; background: #2fb36a; }
.page-risco-desligamento .rd-sw.rd-uf--s4, .page-risco-desligamento .rd-uf--s4 { fill: #077a3c; background: #077a3c; }
.page-risco-desligamento .rd-toggle { display: inline-flex; padding: 3px; border-radius: var(--radius-full); background: #eceeed; margin-bottom: 18px; }
.page-risco-desligamento .rd-toggle button { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 6px 16px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--svc-muted); cursor: pointer; transition: background var(--tf), color var(--tf); }
.page-risco-desligamento .rd-toggle button.is-on { background: var(--g900); color: #fff; }
.page-risco-desligamento .rd-toggle button:focus-visible { outline: 2px solid var(--svc-ink-green); outline-offset: 2px; }
.page-risco-desligamento .rd-view[hidden] { display: none; }
.page-risco-desligamento .rd-map { position: relative; max-width: 520px; margin: 0 auto; }
.page-risco-desligamento .rd-map-svg { display: block; width: 100%; height: auto; }
.page-risco-desligamento .rd-uf { stroke: #fff; stroke-width: 1; stroke-linejoin: round; cursor: default; outline: none; transition: filter var(--tf), opacity var(--tf); }
.page-risco-desligamento .rd-map:hover .rd-uf:not(:hover) { opacity: 0.72; }
.page-risco-desligamento .rd-uf:hover, .page-risco-desligamento .rd-uf:focus { opacity: 1 !important; stroke: var(--g900); stroke-width: 1.5; }
.page-risco-desligamento .rd-tip { position: absolute; left: 0; bottom: 0; background: var(--g900); color: #fff; border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.82rem; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; }
.page-risco-desligamento .rd-tip[hidden] { display: none; }
.page-risco-desligamento .rd-tip strong { color: var(--green); }
.page-risco-desligamento .rd-tip b { font-weight: 700; }
.page-risco-desligamento .rd-tip span { display: block; color: var(--g200); }
.page-risco-desligamento .rd-table-wrap { max-height: 460px; overflow: auto; border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.07); }
.page-risco-desligamento .rd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.page-risco-desligamento .rd-table th, .page-risco-desligamento .rd-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); color: var(--g900); }
.page-risco-desligamento .rd-table thead th { position: sticky; top: 0; background: #f4f6f4; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--svc-muted); font-weight: 700; }
.page-risco-desligamento .rd-table tbody th { font-weight: 700; }
.page-risco-desligamento .rd-table tbody tr:last-child th, .page-risco-desligamento .rd-table tbody tr:last-child td { border-bottom: 0; }

/* Barras por setor */
.page-risco-desligamento .rd-bars { margin-top: 24px; }
.page-risco-desligamento .rd-bars-plot { position: relative; padding-top: 22px; }
.page-risco-desligamento .rd-bar-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 52px; align-items: center; gap: 12px; padding: 6px 0; }
.page-risco-desligamento .rd-bar-label { font-size: 0.82rem; line-height: 1.3; color: var(--g900); text-align: right; }
.page-risco-desligamento .rd-bar-track { position: relative; display: block; height: 18px; background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), rgba(0,0,0,0.06) calc(25% - 1px), rgba(0,0,0,0.06) 25%); border-radius: 4px; }
.page-risco-desligamento .rd-bar { display: block; height: 100%; border-radius: 4px; background: #8fe0b2; }
.page-risco-desligamento .rd-bar.is-above { background: var(--svc-ink-green); }
.page-risco-desligamento .rd-bar-val { font-size: 0.82rem; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.page-risco-desligamento .rd-avg { position: absolute; top: 18px; bottom: 0; left: calc(34% + 12px); right: 64px; z-index: 2; pointer-events: none; }
.page-risco-desligamento .rd-avg i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--g900); }
.page-risco-desligamento .rd-avg em { position: absolute; top: -20px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--g900); white-space: nowrap; }
.page-risco-desligamento .rd-axis { display: flex; justify-content: space-between; margin: 6px 64px 0 calc(34% + 12px); font-size: 0.72rem; color: #6a6d70; font-variant-numeric: tabular-nums; }
.page-risco-desligamento .rd-caveat { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-md); background: #f4f6f4; font-size: 0.82rem; line-height: 1.6; color: var(--svc-muted); }
.page-risco-desligamento .rd-caveat i { font-size: 1.1rem; color: var(--svc-ink-green); margin-top: 2px; flex-shrink: 0; }

/* Para que serve */
.page-risco-desligamento .rd-use-grid { grid-template-columns: repeat(4, 1fr); }
.page-risco-desligamento .rd-use-grid .cap-card h3 { font-size: 1.05rem; color: #fff; }
.page-risco-desligamento .rd-use-grid .cap-card p { color: var(--g200); font-size: 0.92rem; line-height: 1.65; }

/* Uso responsável */
.page-risco-desligamento .rd-resp-card { background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-xl); padding: 40px; box-shadow: 0 10px 32px rgba(0,0,0,0.04); display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.2fr; gap: 40px; align-items: center; }
.page-risco-desligamento .rd-resp-head { display: flex; gap: 20px; align-items: flex-start; }
.page-risco-desligamento .rd-resp-head .cap-card-icon { flex-shrink: 0; margin-bottom: 0; background: rgba(1,234,107,0.1); border-color: rgba(1,234,107,0.25); }
.page-risco-desligamento .rd-resp-head .cap-card-icon i { color: var(--svc-ink-green); }
.page-risco-desligamento .rd-resp-head .section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0; }
.page-risco-desligamento .rd-resp-list { list-style: none; display: grid; gap: 14px; }
.page-risco-desligamento .rd-resp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.6; color: #2a2a2a; }
.page-risco-desligamento .rd-resp-list li i { flex-shrink: 0; margin-top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(1,234,107,0.14); color: var(--svc-ink-green); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* Fontes */
.page-risco-desligamento .rd-sources { background: #000; padding: 0 0 48px; position: relative; z-index: 1; }
.page-risco-desligamento .rd-sources p { max-width: 920px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border-dark); font-size: 0.82rem; line-height: 1.6; color: var(--g300); text-align: center; }

/* =========================================================================
   FOUNDATION MODELS
   ========================================================================= */
.page-foundation-models .fm-stats { display: grid; gap: 16px; margin-bottom: 16px; }
.page-foundation-models .fm-stats--lead, .page-foundation-models .fm-stats--2 { grid-template-columns: 1fr 1fr; }
.page-foundation-models .fm-stats--4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.page-foundation-models .fm-stats--lead .fm-stat { padding: 32px; }
.page-foundation-models .fm-stats--lead .svc-stat-num { font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
.page-foundation-models .fm-stat.is-gain .svc-stat-num { color: var(--svc-ink-green); }
.page-foundation-models .fm-stat.is-loss .svc-stat-num { color: #9c3412; }
.page-foundation-models .fm-stat.is-loss { border-top: 3px solid #c8461f; }
.page-foundation-models .fm-stat.is-gain { border-top: 3px solid var(--svc-ink-green); }
.page-foundation-models .fm-group-title { margin: 48px 0 20px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--svc-muted); }
.page-foundation-models .fm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 0.85rem; color: var(--svc-muted); }
.page-foundation-models .fm-legend li { display: inline-flex; align-items: center; gap: 8px; }
.page-foundation-models .fm-sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--g900); }
.page-foundation-models .fm-sw.is-gain { background: var(--svc-ink-green); }
.page-foundation-models .fm-sw.is-loss { background: #c8461f; }

.page-foundation-models .fm-study .section-sub { max-width: 720px; color: var(--g200); }
.page-foundation-models .fm-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.page-foundation-models .fm-path { display: block; position: relative; background: linear-gradient(135deg, rgba(1,234,107,0.10), rgba(255,255,255,0.02) 60%); border: 1px solid rgba(1,234,107,0.25); border-radius: var(--radius-lg); padding: 32px; transition: transform var(--tb), border-color var(--tb), box-shadow var(--tb); }
.page-foundation-models a.fm-path:hover { transform: translateY(-4px); border-color: rgba(1,234,107,0.5); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.page-foundation-models .fm-path-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-foundation-models .fm-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.page-foundation-models .fm-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--g200); }
.page-foundation-models .fm-path h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 10px; color: #fff; }
.page-foundation-models .fm-path p { font-size: 0.95rem; line-height: 1.65; color: var(--g200); }
.page-foundation-models .fm-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.9rem; font-weight: 700; color: var(--green); transition: gap var(--tf); }
.page-foundation-models a:hover > .fm-go { gap: 12px; }
.page-foundation-models .fm-cards .cap-card { display: block; }
/* 10 cards em 3 colunas: o último (Metodologia e limites) fecha a grade em largura total */
.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) .cap-card-icon { grid-row: 1 / span 2; margin-bottom: 0; }
.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) h3 { margin-bottom: 4px; }
.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) p { max-width: 720px; }
.page-foundation-models .fm-cards .cap-card h3 { font-size: 1.05rem; color: #fff; }
.page-foundation-models .fm-cards .cap-card p { color: var(--g200); font-size: 0.92rem; line-height: 1.65; }

.page-foundation-models .fm-cite { padding: 72px 0; }
.page-foundation-models .fm-cite-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-xl); padding: 32px 36px; box-shadow: 0 10px 32px rgba(0,0,0,0.04); }
.page-foundation-models .fm-cite-text { min-width: 0; }
.page-foundation-models .fm-cite-text .section-label { display: block; margin-bottom: 12px; }
.page-foundation-models .fm-cite-text p { font-size: 1rem; line-height: 1.6; color: var(--g900); }
.page-foundation-models .fm-copy { flex-shrink: 0; color: var(--g900); border-color: rgba(0,0,0,0.2); }
.page-foundation-models .fm-copy:hover { background: var(--g900); color: #fff; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 1100px) {
	.page-risco-desligamento .svc-stats--4,
.page-foundation-models .svc-stats--4,
.page-foundation-models .fm-stats--4,
.page-risco-desligamento .rd-steps,
.page-risco-desligamento .rd-use-grid { grid-template-columns: repeat(2, 1fr); }
	.page-risco-desligamento .rd-panels { grid-template-columns: 1fr; }
	.page-foundation-models .fm-cards { grid-template-columns: repeat(2, 1fr); }
	.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) { grid-column: auto; display: block; }
	.page-foundation-models .fm-cards .cap-card:last-child:nth-child(3n+1) .cap-card-icon { margin-bottom: 18px; }
}
@media (max-width: 760px) {
	.hero-rd, .hero-fm { padding: 128px 0 56px; }
	.hero-rd .hero-ctas .btn, .hero-fm .hero-ctas .btn { width: 100%; justify-content: center; }
	.page-risco-desligamento .svc-stats--4,
.page-foundation-models .svc-stats--4,
.page-foundation-models .fm-stats--4,
.page-foundation-models .fm-stats--lead,
.page-foundation-models .fm-stats--2,
.page-foundation-models .fm-paths,
.page-risco-desligamento .rd-steps,
.page-risco-desligamento .rd-use-grid,
.page-foundation-models .fm-cards { grid-template-columns: 1fr; }
	.page-risco-desligamento .rd-panel { padding: 22px; border-radius: var(--radius-lg); }
	.page-risco-desligamento .rd-bar-row { grid-template-columns: 1fr 48px; grid-template-areas: "label label" "track val"; gap: 4px 10px; }
	.page-risco-desligamento .rd-bar-label { grid-area: label; text-align: left; }
	.page-risco-desligamento .rd-bar-track { grid-area: track; }
	.page-risco-desligamento .rd-bar-val { grid-area: val; text-align: right; }
	.page-risco-desligamento .rd-avg { display: none; }
	.page-risco-desligamento .rd-axis { margin: 6px 58px 0 0; }
	.page-risco-desligamento .rd-resp-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
	.page-foundation-models .fm-cite-box { flex-direction: column; align-items: flex-start; padding: 24px; }
	.page-foundation-models .fm-copy { width: 100%; justify-content: center; }
	.page-foundation-models .fm-path { padding: 24px; }
}

/* ---- Risco: links para o portal completo ---- */
.page-risco-desligamento .rd-portal-row,
.page-foundation-models .rd-portal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-risco-desligamento .rd-portal-link,
.page-foundation-models .rd-portal-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green); padding: 10px 16px; border-radius: 9999px; border: 1px solid rgba(1,234,107,0.4); transition: background 150ms, border-color 150ms; }
.page-risco-desligamento .rd-portal-link:hover,
.page-foundation-models .rd-portal-link:hover { background: rgba(1,234,107,0.1); border-color: var(--green); }
.page-risco-desligamento .svc-light .rd-portal-link,
.page-foundation-models .svc-light .rd-portal-link { color: var(--svc-ink-green); border-color: rgba(7,122,60,0.4); }
.page-risco-desligamento .svc-light .rd-portal-link:hover,
.page-foundation-models .svc-light .rd-portal-link:hover { background: rgba(7,122,60,0.08); border-color: var(--svc-ink-green); }

/* =========================================================================
   Apps embutidos: estudo de FM (seção #estudo-leitura da página Foundation Models), portal do
   score (seção #portal-completo da página de Risco) e PatientFinder (página própria).
   Navegação das telas e moldura (iframe).
   ========================================================================= */
.page-patientfinder .fm-estudo-top,
.page-foundation-models .fm-estudo-top,
.page-risco-desligamento .fm-estudo-top { padding: 112px 0 8px; background: radial-gradient(ellipse at 15% 0%, rgba(1,234,107,0.07), transparent 50%), #000; }
.page-patientfinder .fm-crumb,
.page-foundation-models .fm-crumb,
.page-risco-desligamento .fm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--g400); margin-bottom: 18px; }
.page-patientfinder .fm-crumb a,
.page-foundation-models .fm-crumb a,
.page-risco-desligamento .fm-crumb a { color: var(--g400); transition: color 150ms; }
.page-patientfinder .fm-crumb a:hover,
.page-foundation-models .fm-crumb a:hover,
.page-risco-desligamento .fm-crumb a:hover { color: var(--green); }
.page-patientfinder .fm-crumb-now,
.page-foundation-models .fm-crumb-now,
.page-risco-desligamento .fm-crumb-now { color: var(--g300); }
.page-patientfinder .fm-estudo-h1,
.page-foundation-models .fm-estudo-h1,
.page-risco-desligamento .fm-estudo-h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: #fff; margin: 0; }
.page-patientfinder .fm-estudo-kicker,
.page-foundation-models .fm-estudo-kicker,
.page-risco-desligamento .fm-estudo-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.page-patientfinder .fm-estudo-kicker i,
.page-foundation-models .fm-estudo-kicker i,
.page-risco-desligamento .fm-estudo-kicker i { margin-right: 4px; }

.page-patientfinder .fm-subnav,
.page-foundation-models .fm-subnav,
.page-risco-desligamento .fm-subnav { position: relative; margin-top: 18px; background: rgba(0,0,0,0.88); border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.page-patientfinder .fm-subnav-list,
.page-foundation-models .fm-subnav-list,
.page-risco-desligamento .fm-subnav-list { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-patientfinder .fm-subnav-item,
.page-foundation-models .fm-subnav-item,
.page-risco-desligamento .fm-subnav-item { display: contents; }
.page-patientfinder .fm-subnav-group,
.page-foundation-models .fm-subnav-group,
.page-risco-desligamento .fm-subnav-group { display: contents; }
.page-patientfinder .fm-subnav-tab,
.page-foundation-models .fm-subnav-tab,
.page-risco-desligamento .fm-subnav-tab { order: 1; font: 500 13px/1 "Outfit", sans-serif; color: var(--g200); background: transparent; border: 1px solid rgba(255,255,255,0.12); border-radius: 9999px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: color 150ms, background 150ms, border-color 150ms; }
.page-patientfinder .fm-subnav-tab i,
.page-foundation-models .fm-subnav-tab i,
.page-risco-desligamento .fm-subnav-tab i { font-size: 11px; transition: transform 150ms; }
.page-patientfinder .fm-subnav-tab:hover,
.page-foundation-models .fm-subnav-tab:hover,
.page-risco-desligamento .fm-subnav-tab:hover { color: #fff; border-color: rgba(1,234,107,0.5); }
.page-patientfinder .fm-subnav-group.has-active .fm-subnav-tab,
.page-foundation-models .fm-subnav-group.has-active .fm-subnav-tab,
.page-risco-desligamento .fm-subnav-group.has-active .fm-subnav-tab { color: var(--green); border-color: rgba(1,234,107,0.55); }
.page-patientfinder .fm-subnav-group.is-open .fm-subnav-tab,
.page-foundation-models .fm-subnav-group.is-open .fm-subnav-tab,
.page-risco-desligamento .fm-subnav-group.is-open .fm-subnav-tab { background: rgba(1,234,107,0.1); color: var(--green); border-color: rgba(1,234,107,0.55); }
.page-patientfinder .fm-subnav-group.is-open .fm-subnav-tab i,
.page-foundation-models .fm-subnav-group.is-open .fm-subnav-tab i,
.page-risco-desligamento .fm-subnav-group.is-open .fm-subnav-tab i { transform: rotate(180deg); }
.page-patientfinder .fm-subnav-tab:focus-visible,
.page-foundation-models .fm-subnav-tab:focus-visible,
.page-risco-desligamento .fm-subnav-tab:focus-visible,
.page-patientfinder .fm-subnav-link:focus-visible,
.page-foundation-models .fm-subnav-link:focus-visible,
.page-risco-desligamento .fm-subnav-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.page-patientfinder .fm-subnav-home,
.page-foundation-models .fm-subnav-home,
.page-risco-desligamento .fm-subnav-home { order: 0; }
.page-foundation-models .fm-subnav-solo { order: 1; border: 1px solid rgba(255,255,255,0.12); padding: 8px 14px; }
.page-patientfinder .fm-subnav-links,
.page-foundation-models .fm-subnav-links,
.page-risco-desligamento .fm-subnav-links { order: 5; flex: 0 0 100%; display: none; flex-wrap: wrap; gap: 4px 6px; padding: 8px 0 2px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 4px; }
.page-patientfinder .fm-subnav-group.is-open .fm-subnav-links,
.page-foundation-models .fm-subnav-group.is-open .fm-subnav-links,
.page-risco-desligamento .fm-subnav-group.is-open .fm-subnav-links { display: flex; }
.page-patientfinder .fm-subnav-link,
.page-foundation-models .fm-subnav-link,
.page-risco-desligamento .fm-subnav-link { font-size: 13px; font-weight: 500; color: var(--g200); padding: 7px 12px; border-radius: 9999px; border: 1px solid transparent; white-space: nowrap; transition: color 150ms, background 150ms, border-color 150ms; }
.page-patientfinder .fm-subnav-link:hover,
.page-foundation-models .fm-subnav-link:hover,
.page-risco-desligamento .fm-subnav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.page-patientfinder .fm-subnav-link.is-active,
.page-foundation-models .fm-subnav-link.is-active,
.page-risco-desligamento .fm-subnav-link.is-active { color: #000; background: var(--green); border-color: var(--green); font-weight: 600; }

.page-patientfinder .fm-embed,
.page-foundation-models .fm-embed,
.page-risco-desligamento .fm-embed { padding: 72px 0 0; background: #000; }
.page-patientfinder .fm-embed .section-sub,
.page-foundation-models .fm-embed .section-sub,
.page-risco-desligamento .fm-embed .section-sub { max-width: 760px; }
.page-patientfinder .fm-embed .fm-subnav,
.page-foundation-models .fm-embed .fm-subnav,
.page-risco-desligamento .fm-embed .fm-subnav { margin-top: 0; }
.page-patientfinder .fm-embed .fm-frame-wrap,
.page-foundation-models .fm-embed .fm-frame-wrap,
.page-risco-desligamento .fm-embed .fm-frame-wrap { border-bottom: 1px solid rgba(255,255,255,0.07); }
.page-patientfinder .fm-frame-wrap,
.page-foundation-models .fm-frame-wrap,
.page-risco-desligamento .fm-frame-wrap { background: #000; }
.page-patientfinder .fm-frame,
.page-foundation-models .fm-frame,
.page-risco-desligamento .fm-frame { display: block; width: 100%; height: 900px; border: 0; background: #000; color-scheme: dark; }
.page-patientfinder .fm-noscript,
.page-foundation-models .fm-noscript,
.page-risco-desligamento .fm-noscript { max-width: 640px; margin: 0 auto; padding: 48px 20px; color: var(--g300); }
.page-patientfinder .fm-noscript a,
.page-foundation-models .fm-noscript a,
.page-risco-desligamento .fm-noscript a { color: var(--green); }

@media (max-width: 760px) {
  .page-patientfinder .fm-estudo-top,
.page-foundation-models .fm-estudo-top,
.page-risco-desligamento .fm-estudo-top { padding-top: 96px; }
  .page-patientfinder .fm-embed,
.page-foundation-models .fm-embed,
.page-risco-desligamento .fm-embed { padding-top: 56px; }
  .page-patientfinder .fm-subnav-links,
.page-foundation-models .fm-subnav-links,
.page-risco-desligamento .fm-subnav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .page-patientfinder .fm-subnav-links::-webkit-scrollbar,
.page-foundation-models .fm-subnav-links::-webkit-scrollbar,
.page-risco-desligamento .fm-subnav-links::-webkit-scrollbar { display: none; }
  .page-patientfinder .fm-subnav-link,
.page-foundation-models .fm-subnav-link,
.page-risco-desligamento .fm-subnav-link { font-size: 12.5px; padding: 6px 10px; }
}

/* Estudo atualizado (10/11/2026): link dentro do card de número e resumo do tutorial */
.page-foundation-models .fm-stat .fm-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--svc-ink-green); text-decoration: none; }
.page-foundation-models .fm-stat .fm-go:hover { text-decoration: underline; }
.page-foundation-models .fm-path-alt { margin: 0 0 24px; font-size: 0.92rem; color: var(--g300); }
.page-foundation-models .fm-path-alt a { color: var(--green); font-weight: 600; white-space: nowrap; }
.page-foundation-models .fm-path-alt a:hover { text-decoration: underline; }
