/* RUMO A — telas do parceiro (cadastro, login, painel), fiéis ao Claude Design.
   Tokens e fontes vêm de site.css. Tudo escopado em .rp-* pra não vazar. */

body.rumoa-partner-page { margin: 0; font-family: var(--font-body); }
body.rumoa-partner-page a { color: var(--brand-blue); text-decoration: none; }
body.rumoa-partner-page a:hover { color: var(--brand-blue-hover); }

.rp-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rp-logo { font-family: var(--font-heading); font-weight: 800; font-size: 20px; display: flex; gap: 4px; }
.rp-logo .r { background: linear-gradient(135deg, #046BD2, #1656FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rp-logo .a { color: var(--brand-accent); }
.rp-logo img { height: 42px !important; width: auto !important; }

/* campos e botões (cadastro / login / config) */
.rp .field { display: flex; flex-direction: column; gap: 6px; }
.rp .field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.rp .field input, .rp .field select {
	background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
	padding: 12px 14px; font-size: 15px; font-family: var(--font-body); color: var(--text-primary); outline: none;
	width: 100%; box-sizing: border-box;
}
.rp .field input:focus, .rp .field select:focus { border-color: var(--brand-action); }
.rp .hint { font-size: 12px; color: var(--text-muted); }
.rp .btn-primary {
	background: var(--brand-action); color: #fff; border: none; border-radius: var(--radius-sm);
	padding: 14px 28px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--font-body);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.rp .btn-primary:hover { background: var(--brand-action-hover); color: #fff; }
.rp .btn-whats { background: #1EBE5D; }
.rp .btn-whats:hover { background: #17A34F; }
.rp .alert { border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.rp .alert-error { background: #FEE2E2; color: #991B1B; }
.rp .alert-warn { background: #FEF3C7; color: #92400E; }
.rp .alert-ok { background: #DCFCE7; color: #166534; }
.rp .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.rp .check input { margin-top: 3px; }
.rp .pass { position: relative; }
.rp .pass input { padding-right: 86px; }
.rp .pass-toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px;
	border: 0; border-radius: 4px; background: var(--surface-light); color: var(--text-primary);
	font: 600 12px var(--font-body); cursor: pointer;
}
.rp a:focus-visible, .rp button:focus-visible, .rp input:focus-visible, .rp select:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.rp .hp { position: absolute; left: -9999px; }
.rp [hidden] { display: none !important; }
.rp .rp-banco { display: flex; flex-direction: column; gap: 16px; }
.rp input[type=file] { padding: 9px 10px; }

/* ----------------------------------------------------------- cadastro -- */
.rp-cadastro { background: var(--surface-light); min-height: 100vh; }
.rp-cadastro .navlink { color: #fff; font-weight: 600; font-size: 14px; }
@media (max-width: 820px) {
	.rp-cadastro .rp-grid { grid-template-columns: 1fr !important; }
	.rp-cadastro header, .rp-cadastro section { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 480px) { .rp-cadastro .rp-grid-2 { grid-template-columns: 1fr !important; } }

/* -------------------------------------------------------------- login -- */
.rp-login .btn-primary { width: 100%; }

/* -------------------------------------------------------------- painel -- */
.rp-dash .sidelink {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
	color: var(--text-on-dark-muted); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
	border-left: 2px solid transparent;
}
.rp-dash .sidelink svg { flex-shrink: 0; }
.rp-dash .sidelink:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.rp-dash .sidelink.active { background: rgba(22, 86, 255, .14); color: #fff; border-left: 2px solid var(--brand-action); }
.rp-dash .sidegroup { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4B5B78; padding: 16px 12px 6px; }
.rp-dash .tab {
	padding: 10px 4px; font-size: 15px; font-weight: 700; color: var(--text-muted); cursor: pointer;
	border-bottom: 2px solid transparent; font-family: var(--font-heading); text-decoration: none;
}
.rp-dash .tab:hover { color: var(--text-primary); }
.rp-dash .tab.active { color: var(--brand-action); border-bottom-color: var(--brand-action); }
.rp-dash .btn-primary { padding: 10px 18px; font-size: 13px; }
.rp-dash th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; border-bottom: 1px solid var(--border-subtle); }
.rp-dash td { padding: 12px 14px; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--border-subtle); }
.rp-dash .pagebtn {
	width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--border-subtle); background: #fff;
	color: var(--text-primary); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.rp-dash .pagebtn.active { background: var(--brand-action); color: #fff; border-color: var(--brand-action); }
.rp-dash .pagebtn.disabled { opacity: .4; pointer-events: none; }
.rp-dash .lesson-card { display: block; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; color: inherit; }
.rp-dash .lesson-card:hover { box-shadow: var(--shadow-md); color: inherit; }
.rp-dash .video-wrap { position: relative; aspect-ratio: 16 / 9; max-width: 720px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-navy); margin-bottom: 20px; }
.rp-dash .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-dash .lesson-body p { margin: 0 0 14px; }
.rp-dash .material-empty {
	width: 100%; height: 220px; border-radius: 16px; background: #fff; border: 1px dashed var(--border-subtle);
	display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px;
}
.rp-dash .material img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; display: block; }
.rp-dash [data-rumoa-faq]:hover, .rp-dash [data-rumoa-faq]:focus { background: none; }

@media (max-width: 820px) {
	.rp-dash .dash-shell { flex-direction: column !important; }
	.rp-dash .dash-sidebar {
		width: 100% !important; min-height: auto !important; flex-direction: row !important; align-items: center !important;
		overflow-x: auto !important; padding: 10px 12px !important; gap: 8px !important; border-right: none !important;
		border-bottom: 1px solid rgba(255, 255, 255, .06) !important; box-sizing: border-box;
	}
	.rp-dash .dash-sidebar .sidegroup { display: none !important; }
	.rp-dash .dash-sidebar-nav { display: flex !important; flex: 1 !important; gap: 4px !important; }
	.rp-dash .dash-sidebar .sidelink { white-space: nowrap !important; border-left: none !important; border-bottom: 2px solid transparent !important; padding: 8px 10px !important; }
	.rp-dash .dash-sidebar .sidelink.active { border-left: none !important; border-bottom: 2px solid var(--brand-action) !important; }
	.rp-dash .dash-profile { display: none !important; }
	.rp-dash .dash-spacer { display: none !important; }
	.rp-dash .dash-topbar { padding: 14px 16px !important; }
	.rp-dash .dash-content { padding: 16px !important; }
	.rp-dash .stat-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
	.rp-dash .stat-grid-3 { grid-template-columns: 1fr !important; }
	.rp-dash .stat-grid-ganhos { grid-template-columns: 1fr !important; }
	.rp-dash .materiais-grid { grid-template-columns: 1fr !important; }
	.rp-dash .dash-hero-card { padding: 18px !important; }
	.rp-dash .dash-hero-card h1 { font-size: 20px !important; }
	.rp-dash .copy-row { flex-wrap: wrap; }
}
