/* Relações Exteriores · Links — visual editorial */
.rel {
	--rel-ink: #0f2a47;
	--rel-accent: #b8892d;
	--bg: #f6f4ef;
	--surface: #ffffff;
	--surface-2: #fbfaf7;
	--text: #141a22;
	--muted: #5d6573;
	--line: #e5e1d7;
	--line-2: #d3cdbf;
	--accent-soft: color-mix(in srgb, var(--rel-accent) 12%, transparent);
	--serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background .3s, color .3s;
}
.rel[data-theme="dark"] {
	--bg: #0b1420;
	--surface: #111d2c;
	--surface-2: #152337;
	--text: #edf0f4;
	--muted: #98a3b3;
	--line: rgba(255, 255, 255, .09);
	--line-2: rgba(255, 255, 255, .16);
	--accent-soft: color-mix(in srgb, var(--rel-accent) 18%, transparent);
}
.rel *, .rel *::before, .rel *::after { box-sizing: border-box; }
.rel a { color: inherit; }
.rel--embed { min-height: 0; border-radius: 20px; overflow: hidden; }
body.rel-body { margin: 0; background: #f6f4ef; }

.rel-wrap { width: 100%; max-width: 580px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px max(40px, env(safe-area-inset-bottom)); }
.rel-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabeçalho */
.rel-head { text-align: center; padding-bottom: 26px; }
.rel-topbar { display: flex; justify-content: space-between; margin-bottom: 22px; }
.rel-iconbtn {
	width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 999px;
	background: var(--surface); color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.rel-iconbtn:hover, .rel-iconbtn:focus-visible { color: var(--text); border-color: var(--line-2); outline: none; }
.rel-iconbtn svg { width: 17px; height: 17px; }
.rel-iconbtn.is-done { color: var(--rel-accent); border-color: var(--rel-accent); }
.rel-moon { display: none; }
.rel[data-theme="dark"] .rel-moon { display: contents; }
.rel[data-theme="dark"] .rel-sun { display: none; }

.rel-brand { display: inline-block; text-decoration: none; }
.rel-logo { display: block; max-width: 260px; max-height: 74px; margin: 0 auto; object-fit: contain; }
.rel-logo--dark { display: none; }
.rel[data-theme="dark"] .rel-logo--light { display: none; }
.rel[data-theme="dark"] .rel-logo--dark { display: block; }
.rel-wordmark { display: block; font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -.015em; line-height: 1.05; color: var(--rel-ink); }
.rel[data-theme="dark"] .rel-wordmark { color: var(--text); }
.rel-wordmark.is-fallback { display: none; }
.rel-brand.is-text .rel-logo { display: none !important; }
.rel-brand.is-text .rel-wordmark { display: block; }

.rel-tagline { margin: 14px auto 0; max-width: 410px; color: var(--muted); font-size: 15px; }
.rel-socials { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.rel-socials a {
	width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); color: var(--text);
	transition: transform .2s, border-color .2s, color .2s;
}
.rel-socials a:hover, .rel-socials a:focus-visible { transform: translateY(-2px); border-color: var(--rel-accent); color: var(--rel-accent); outline: none; }
.rel-socials svg { width: 19px; height: 19px; }

/* Próximo curso */
.rel-course {
	position: relative; overflow: hidden; border-radius: 20px; margin-bottom: 8px;
	background: var(--rel-ink); color: #fff;
	box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--rel-ink) 80%, #000);
}
.rel-course::before { /* meridianos decorativos */
	content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
	background:
		radial-gradient(circle, transparent 54%, rgba(255, 255, 255, .08) 55%, transparent 56%),
		radial-gradient(circle, transparent 68%, rgba(255, 255, 255, .07) 69%, transparent 70%),
		repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 35px);
	-webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%);
	mask-image: radial-gradient(circle, #000 60%, transparent 71%);
}
.rel-course-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.rel-course-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.rel-course:hover .rel-course-media img { transform: scale(1.03); }
.rel-course-body { position: relative; padding: 24px 22px 22px; }
.rel-course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rel-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rel-accent); }
.rel-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.rel-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: rel-pulse 1.8s infinite; }
@keyframes rel-pulse { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.rel-course-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.08; letter-spacing: -.015em; }
.rel-course-sub { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; color: rgba(255, 255, 255, .82); }
.rel-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.rel-tags li { font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .92); }
.rel-course-meta { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.rel-course-meta svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; color: var(--rel-accent); }

.rel-cd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .1); }
.rel-cd-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.rel-cd-units { display: flex; gap: 12px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.rel-cd-units b { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; margin-right: 2px; }
.rel-cd.is-over { display: none; }

.rel-course-ctas { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
@media (min-width: 440px) { .rel-course-ctas { grid-template-columns: 1.4fr 1fr; } }

/* Botões */
.rel-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 12px;
	font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.rel-btn svg { width: 17px; height: 17px; transition: transform .2s; }
.rel-btn:hover svg { transform: translateX(3px); }
.rel .rel-btn--primary { background: var(--rel-accent); color: #fff; }
.rel .rel-btn--primary:hover, .rel .rel-btn--primary:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--rel-accent); outline: none; }
.rel .rel-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.rel .rel-btn--ghost:hover, .rel .rel-btn--ghost:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .06); outline: none; }

/* Títulos de seção */
.rel-sec { margin-top: 34px; }
.rel-sec-title { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rel-sec-title::before { content: ""; width: 18px; height: 2px; background: var(--rel-accent); }
.rel-sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Publicações */
.rel-lead {
	display: block; text-decoration: none; border-radius: 16px; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rel-lead:hover, .rel-lead:focus-visible { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 18px 36px -24px rgba(15, 42, 71, .45); outline: none; }
.rel-lead-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--rel-ink); overflow: hidden; }
.rel-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.rel-lead:hover .rel-lead-img img { transform: scale(1.03); }
.rel-lead-img.is-empty::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.rel-flag { position: absolute; left: 12px; top: 12px; z-index: 1; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--rel-accent); color: #fff; }
.rel-lead-body { display: block; padding: 16px 18px 18px; }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.rel-cat { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--rel-accent); }
.rel-lead-title { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.18; letter-spacing: -.01em; }
.rel-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.rel-item .rel-by { margin-top: 6px; font-size: 12.5px; }
.rel-audio { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
.rel-audio svg { width: 15px; height: 15px; color: var(--rel-accent); }
.rel-audio--sm svg { width: 13px; height: 13px; }

.rel-list { margin-top: 6px; }
.rel-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px 2px; text-decoration: none; border-bottom: 1px solid var(--line); }
.rel-item:last-child { border-bottom: 0; }
.rel-item-body { flex: 1; min-width: 0; }
.rel-item-title { display: block; margin-top: 5px; font-family: var(--serif); font-weight: 600; font-size: 17.5px; line-height: 1.25; transition: color .2s; }
.rel-item:hover .rel-item-title, .rel-item:focus-visible .rel-item-title { color: var(--rel-accent); }
.rel-item:focus-visible { outline: 2px solid var(--rel-accent); outline-offset: 2px; border-radius: 6px; }
.rel-thumb { flex: 0 0 78px; height: 78px; border-radius: 10px; overflow: hidden; background: var(--line); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--surface); transition: border-color .2s, color .2s; }
.rel-more svg { width: 16px; height: 16px; transition: transform .2s; }
.rel-more:hover { border-color: var(--rel-accent); color: var(--rel-accent); }
.rel-more:hover svg { transform: translateX(3px); }

/* Links */
.rel-links { display: grid; gap: 10px; }
.rel-card {
	position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line); text-decoration: none;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.rel-card:hover, .rel-card:focus-visible { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 30px -22px rgba(15, 42, 71, .5); outline: none; }
.rel-card:active { transform: scale(.99); }
.rel-ico { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--rel-ink) 7%, transparent); color: var(--rel-ink); transition: background .2s, color .2s; }
.rel[data-theme="dark"] .rel-ico { background: rgba(255, 255, 255, .06); color: var(--text); }
.rel-ico svg { width: 20px; height: 20px; }
.rel-card:hover .rel-ico { background: var(--rel-ink); color: #fff; }
.rel[data-theme="dark"] .rel-card:hover .rel-ico { background: var(--rel-accent); }
.rel-txt { flex: 1; min-width: 0; }
.rel-t { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -.005em; }
.rel-s { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.rel-badge { display: inline-block; margin: 0 0 5px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rel-accent); background: var(--accent-soft); white-space: nowrap; }
.rel-go { color: var(--muted); transition: transform .2s, color .2s; }
.rel-go svg { width: 17px; height: 17px; display: block; }
.rel-card:hover .rel-go { color: var(--text); transform: translate(2px, -2px); }
.rel-card.is-hl { border-color: color-mix(in srgb, var(--rel-accent) 45%, var(--line)); }
.rel-card.is-hl::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rel-accent); }
.rel-card.is-hl .rel-ico { background: var(--accent-soft); color: var(--rel-accent); }

/* Temas */
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chips a { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s; }
.rel-chips a:hover, .rel-chips a:focus-visible { background: var(--rel-ink); border-color: var(--rel-ink); color: #fff; outline: none; }
.rel[data-theme="dark"] .rel-chips a:hover { background: var(--rel-accent); border-color: var(--rel-accent); }

/* Newsletter */
.rel-news { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-top: 34px; padding: 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--rel-accent) 30%, transparent); }
.rel-news-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--rel-accent); color: #fff; }
.rel-news-ico svg { width: 21px; height: 21px; }
.rel-news h2 { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.rel-news p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.rel-news .rel-btn { grid-column: 1 / -1; margin-top: 12px; }

/* Rodapé */
.rel-foot { margin-top: 40px; text-align: center; font-size: 12.5px; color: var(--muted); }
.rel-foot-mark { display: block; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--text); opacity: .55; margin-bottom: 4px; }
.rel-foot p { margin: 0; }

/* Entrada */
.rel-in { opacity: 0; transform: translateY(10px); animation: rel-up .6s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rel-up { to { opacity: 1; transform: none; } }
@media (min-width: 640px) { .rel-wrap { padding-top: 40px; } .rel-course-body { padding: 28px; } }
@media (prefers-reduced-motion: reduce) { .rel-in { animation: none; opacity: 1; transform: none; } .rel-live i { animation: none; } }
.rel[data-theme="dark"] .rel-course { border: 1px solid rgba(255, 255, 255, .1); }
