/* =========================================================
   SerformanceP — TEXTO DA CURADORIA e seções da edição na página inicial (plugin Acervo 1.25)
   O texto corre numa coluna de leitura; os visuais (infográfico, territórios,
   temas, lentes) abrem na largura toda. Três cores, Open Sans.
   ========================================================= */

/* com o texto em blocos Parágrafo, os Estilos globais desse bloco entram na página e
   põem outra fonte em todo <p> (inclusive na abertura): aqui vale a da marca */
.sp-ed :is(p, li, dd, dt, figcaption) { font-family: inherit; }
.sp-ed .sp-ed-credito, .sp-ed .sp-cur .sp-ed-credito { font-family: ui-monospace, "Courier New", monospace; }

/* ---------- coluna de leitura ---------- */
.sp-cur-secao { padding-top: clamp(40px, 5vw, 64px); }
.sp-cur { display: flex; flex-direction: column; gap: var(--sp-e5); }
.sp-cur > * { width: 100%; max-width: 44rem; margin: 0; }
.sp-cur > .sp-cur-largo { max-width: none; }
.sp-ed .sp-cur :where(p, li, figcaption, h2, h3) { font-family: inherit; }
.sp-ed .sp-cur > p { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.7; text-wrap: pretty; }
.sp-ed .sp-cur > p em { font-style: italic; }
.sp-ed .sp-cur > h2 {
	max-width: none; margin-top: clamp(40px, 6vw, 80px); padding-top: var(--sp-e5); border-top: 3px solid var(--sp-tinta);
	font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
.sp-ed .sp-cur > h2 + p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; font-weight: 600; }
.sp-cur > .sp-cur-largo, .sp-cur > .sp-cur-obra, .sp-cur > .wp-block-image { margin-block: var(--sp-e4); }
.sp-cur > :first-child { margin-top: 0; }

/* links no texto: tinta com sublinhado vermelho */
.sp-ed .sp-cur > :is(p, ul, ol, figure, .wp-block-group) a:not(.sp-ed-acao):not([tabindex="-1"]) {
	color: var(--sp-tinta); text-decoration: underline; text-decoration-color: var(--sp-destaque);
	text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.sp-ed .sp-cur > :is(p, ul, ol, figure, .wp-block-group) a:not(.sp-ed-acao):not([tabindex="-1"]):hover {
	background: var(--sp-destaque); color: var(--sp-papel); text-decoration-color: var(--sp-papel);
}
.sp-cur a:focus-visible { outline: 3px solid var(--sp-foco); outline-offset: 3px; }

/* imagem citada (Magritte), com legenda de créditos */
.sp-ed .sp-cur > .wp-block-image { max-width: 40rem; }
.sp-cur > .wp-block-image img { display: block; width: 100%; height: auto; border: 2px solid var(--sp-tinta); }
.sp-ed .sp-cur > .wp-block-image figcaption {
	margin: var(--sp-e2) 0 0; font-size: .8125rem; line-height: 1.5; text-align: left; color: var(--sp-tinta);
}
.sp-ed .sp-cur > .wp-block-image figcaption a { text-underline-offset: 3px; }

/* ficha de serviço no fim */
.sp-ed .sp-cur > .sp-cur-servico {
	max-width: 44rem; display: flex; flex-direction: column; gap: var(--sp-e4); margin-top: var(--sp-e5);
	padding: clamp(24px, 4vw, 40px); background: var(--sp-tinta); color: var(--sp-papel);
}
.sp-ed .sp-cur-servico p { margin: 0; color: var(--sp-papel); font-size: 1.0625rem; line-height: 1.6; }
.sp-ed .sp-cur-servico .sp-cur-servico__titulo { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.2; padding-bottom: var(--sp-e4); border-bottom: 3px solid var(--sp-destaque); }
.sp-ed .sp-cur-servico strong { font-weight: 800; }
.sp-ed .sp-cur-servico a { color: var(--sp-papel) !important; text-decoration-color: var(--sp-destaque) !important; }
.sp-ed .sp-cur-servico a:hover { background: var(--sp-destaque) !important; }

/* ---------- 1. infográfico: duas leituras → lentes ---------- */
.sp-cur-info { display: flex; flex-direction: column; align-items: stretch; padding: clamp(24px, 4vw, 48px) 0; border-block: 3px solid var(--sp-tinta); }
/* ordem: as leituras, a seta, a legenda (o destino da seta) e as três lentes lado a lado, sem centro */
.sp-cur-info__leituras { order: 1; } .sp-cur-info__juncao { order: 2; } .sp-cur-info__legenda { order: 3; } .sp-cur-info__lentes { order: 4; }
.sp-cur-info__leituras { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-e3); justify-items: center; }
@media (min-width: 720px) { .sp-cur-info__leituras { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--sp-e5); } }
.sp-cur-info__leitura {
	width: 100%; max-width: 30rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: var(--sp-e5) var(--sp-e4); border: 2px solid var(--sp-tinta); background: var(--sp-papel); box-sizing: border-box;
}
.sp-cur-icone { width: 88px; height: 88px; display: block; margin-bottom: var(--sp-e2); }
.sp-ed .sp-cur-info p { margin: 0; }
.sp-ed .sp-cur-info__num { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sp-destaque); }
.sp-ed .sp-cur-info__titulo { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.sp-ed .sp-cur-info__conceito { font-size: 1rem; line-height: 1.45; }
.sp-ed .sp-cur-info__conceito em { font-style: italic; font-weight: 700; }
.sp-ed .sp-cur-info__nota { font-size: .875rem; line-height: 1.45; opacity: .8; }
.sp-cur-info__mais { align-self: center; font-size: 2.5rem; font-weight: 300; line-height: 1; color: var(--sp-destaque); }

/* junção: as duas leituras se encontram e descem numa seta até as lentes */
.sp-cur-info__juncao { position: relative; width: 3px; height: 56px; margin: var(--sp-e2) auto var(--sp-e3); }
.sp-cur-info__juncao span { position: absolute; left: 0; top: 0; bottom: 14px; width: 3px; background: var(--sp-tinta); }
.sp-cur-info__juncao::after {
	content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 16px; transform: translateX(-50%);
	background: var(--sp-destaque); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@media (min-width: 720px) {
	/* chave: desce do centro de cada leitura, junta no meio e segue em seta */
	.sp-cur-info__juncao { width: auto; height: 36px; margin: 0 25% 0; border: 3px solid var(--sp-tinta); border-top: 0; }
	.sp-cur-info__juncao span { left: 50%; top: 100%; bottom: auto; height: 34px; transform: translateX(-50%); }
	.sp-cur-info__juncao::after { bottom: -50px; }
}

/* as três lentes: círculos que se sobrepõem */
.sp-cur-info__lentes {
	--sp-d: min(72vw, 15rem);
	list-style: none; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0;
}
.sp-cur-info__lente {
	position: relative; flex: none; width: var(--sp-d); height: var(--sp-d); border-radius: 50%; border: 3px solid var(--sp-tinta);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
	padding: calc(var(--sp-d) * .16); box-sizing: border-box;
}
.sp-cur-info__lente + .sp-cur-info__lente { margin-top: calc(var(--sp-d) * -.24); }
.sp-cur-info__lnum { font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--sp-destaque); }
.sp-cur-info__lnome { font-size: clamp(1rem, 1.5vw, 1.1875rem); font-weight: 800; line-height: 1.15; text-wrap: balance; }
@media (max-width: 719px) {
	.sp-cur-info__lente:first-child { padding-bottom: calc(var(--sp-d) * .3); }
	.sp-cur-info__lente:last-child { padding-top: calc(var(--sp-d) * .3); }
}
@media (min-width: 720px) {
	.sp-cur-info .sp-cur-info__lentes { flex-direction: row; justify-content: center; margin-top: var(--sp-e5); --sp-d: clamp(12.5rem, 22vw, 17rem); }
	.sp-ed .sp-cur-info .sp-cur-info__legenda { margin-top: 64px; }
	.sp-cur-info__lente:nth-child(2) { padding-inline: calc(var(--sp-d) * .25); }
	.sp-cur-info__lente + .sp-cur-info__lente { margin-top: 0; margin-left: calc(var(--sp-d) * -.22); }
	/* o nome fica na parte de cada lente que não se sobrepõe */
	.sp-cur-info__lente:first-child { padding-right: calc(var(--sp-d) * .26); }
	.sp-cur-info__lente:last-child { padding-left: calc(var(--sp-d) * .26); }
}
.sp-cur-info .sp-cur-info__lentes { margin-top: var(--sp-e5); }
.sp-ed .sp-cur-info__legenda {
	margin: 0 auto; max-width: 32rem; text-align: center; font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	font-weight: 700; line-height: 1.35; text-wrap: balance;
}

/* ---------- 2. territórios ---------- */
.sp-cur-terr { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-e6) var(--sp-e6); }
@media (min-width: 900px) { .sp-cur-terr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-cur-terr__item { display: flex; flex-direction: column; gap: var(--sp-e3); padding-top: var(--sp-e4); border-top: 3px solid var(--sp-tinta); min-width: 0; }
.sp-cur-terr__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-e4); margin-bottom: var(--sp-e2); }
.sp-cur-terr__lente { width: 112px; height: 112px; display: block; }
.sp-ed .sp-cur-terr p, .sp-ed .sp-cur-terr h3 { margin: 0; }
.sp-ed .sp-cur-terr__num { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: .9; letter-spacing: -.03em; color: var(--sp-destaque); }
.sp-ed .sp-cur-terr__nome { font-size: clamp(1.375rem, 2.2vw, 1.625rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.sp-ed .sp-cur-terr__nome a { color: var(--sp-tinta); text-decoration: underline; text-decoration-color: var(--sp-destaque); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sp-ed .sp-cur-terr__onde { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.sp-ed .sp-cur-terr__onde .sp-ed-ponto { padding: 0 4px; }
.sp-ed .sp-cur-terr__texto { font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.sp-ed .sp-cur-terr__rot { margin-top: var(--sp-e2); font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.sp-ed .sp-cur-terr__rot::before { content: ""; width: 7px; height: 7px; background: var(--sp-destaque); transform: rotate(45deg); flex: none; }
.sp-ed .sp-cur-terr__palavras { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sp-ed .sp-cur-terr__palavras li {
	margin: 0; padding: 6px 12px; background: var(--sp-mudo-claro); font-size: .875rem; font-weight: 700; line-height: 1.3;
}

/* ---------- 3. temas das inscrições: barras ---------- */
.sp-cur-temas { display: flex; flex-direction: column; gap: var(--sp-e4); max-width: 52rem; }
.sp-cur-temas__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--sp-e4); padding-bottom: var(--sp-e3); border-bottom: 3px solid var(--sp-tinta); }
.sp-ed .sp-cur-temas__titulo { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 800; line-height: 1.2; }
.sp-ed .sp-cur-temas__unidade { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sp-cur-temas__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-cur-temas__item {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0;
	border-bottom: 1px solid var(--sp-mudo-medio);
}
@media (min-width: 600px) { .sp-cur-temas__item { grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: var(--sp-e4); padding: 6px 0; } }
.sp-cur-temas__item:hover { background: var(--sp-mudo-claro); }
.sp-ed .sp-cur-temas__nome { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.sp-cur-temas__trilho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sp-cur-temas__barra {
	flex: 0 0 auto; width: calc(var(--sp-p) * (100% - 6.5rem)); height: 14px; background: var(--sp-tinta); border-radius: 0 4px 4px 0;
}
.sp-cur-temas__item--maior .sp-cur-temas__barra { background: var(--sp-destaque); }
.sp-ed .sp-cur-temas__valor { flex: none; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.sp-cur-temas__un { font-weight: 600; font-size: .875rem; }

/* ---------- 4. lentes do painel ---------- */
.sp-ed .sp-cur-lentes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-e6); }
@media (min-width: 900px) { .sp-ed .sp-cur-lentes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sp-ed .sp-cur-lentes .sp-ed-lente { display: flex; flex-direction: column; gap: var(--sp-e4); padding: var(--sp-e4) 0 0; border-top: 3px solid var(--sp-tinta); border-bottom: 0; }
.sp-ed .sp-cur-lentes .sp-ed-lente__num {
	width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--sp-tinta); display: flex; align-items: center; justify-content: center;
	letter-spacing: .06em; box-sizing: border-box;
}
.sp-ed .sp-cur-lentes .sp-ed-lente__nome { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }

/* ---------- 5. obra citada ---------- */
.sp-ed .sp-cur > .sp-cur-obra { max-width: 52rem; }
.sp-cur-obra { display: flex; flex-direction: column; gap: var(--sp-e4); }
.sp-cur-obra__player { position: relative; aspect-ratio: 16 / 9; background: var(--sp-tinta); }
.sp-cur-obra__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-cur-obra__imagem { position: relative; display: block; line-height: 0; background: var(--sp-tinta); overflow: hidden; }
.sp-cur-obra__imagem img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.sp-cur-obra__imagem:hover img { transform: scale(1.02); }
.sp-cur-obra__vazia { display: block; aspect-ratio: 16 / 9; }
.sp-ed .sp-cur-obra__legenda { display: flex; flex-direction: column; gap: 6px; }
.sp-ed .sp-cur-obra__legenda p { margin: 0; }
.sp-ed .sp-cur-obra__titulo { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 700; line-height: 1.3; }
.sp-ed .sp-cur-obra__meta { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.sp-ed .sp-cur-obra__acoes { display: flex; flex-wrap: wrap; gap: var(--sp-e3); margin-top: var(--sp-e3) !important; }

/* ---------- página inicial: seções da edição atual ---------- */
.sp-hm > .sp-ed-faixa { margin-top: clamp(56px, 8vw, 112px); }
.sp-hm .sp-ed-faixa :where(p, li, h2) { font-family: inherit; }
