/**
 * Primeira Cruz Editais — frontend
 */

.pc-editais-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.pc-editais-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.25rem 1.3rem;
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(4, 38, 9, 0.05);
}

.pc-editais-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.pc-editais-card__number,
.pc-edital-process__number {
	font-size: 0.82rem;
	color: #6b7280;
}

.pc-editais-card__title {
	margin: 0;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 1.1rem;
	line-height: 1.35;
	color: #042609;
}

.pc-editais-card__title a {
	color: inherit;
	text-decoration: none;
}

.pc-editais-card__title a:hover {
	color: #386b21;
}

.pc-editais-card__excerpt,
.pc-editais-card__period {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #64686d;
}

.pc-editais-card__link {
	margin-top: auto;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: #dd6923;
	text-decoration: none;
}

.pc-editais-card__link:hover {
	color: #c45a1a;
}

.pc-editais-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(106, 180, 62, 0.14);
	color: #386b21;
}

.pc-editais-badge--inscricoes {
	background: rgba(249, 115, 22, 0.14);
	color: #c2410c;
}

.pc-editais-badge--analise,
.pc-editais-badge--preliminar,
.pc-editais-badge--recurso {
	background: rgba(37, 99, 235, 0.12);
	color: #1d4ed8;
}

.pc-editais-badge--finalizado {
	background: rgba(4, 38, 9, 0.1);
	color: #042609;
}

.pc-editais-badge--cancelado {
	background: rgba(185, 28, 28, 0.12);
	color: #991b1b;
}

.pc-editais-empty {
	margin: 0;
	color: #64686d;
}

/* Página / bloco do processo */
.pc-edital-single,
.pc-edital-archive {
	padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.pc-edital-single__container,
.pc-edital-archive__container {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 1rem;
}

.pc-edital-single__title,
.pc-edital-archive__title {
	margin: 0 0 0.75rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	color: #042609;
}

.pc-edital-single__content {
	margin: 1.5rem 0 2rem;
	font-size: 1.05rem;
	line-height: 1.75;
	color: #64686d;
}

.pc-edital-process {
	padding: clamp(1.35rem, 3vw, 1.85rem);
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(4, 38, 9, 0.06);
}

.pc-edital-process__header {
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(56, 107, 33, 0.1);
}

.pc-edital-process__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	margin-bottom: 0.65rem;
}

.pc-edital-process__title {
	margin: 0 0 0.5rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	color: #042609;
}

.pc-edital-process__title a {
	color: inherit;
	text-decoration: none;
}

.pc-edital-process__lead {
	margin: 0 0 1rem;
	color: #64686d;
	line-height: 1.65;
}

.pc-edital-process__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.pc-edital-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.6rem;
	padding: 0.65rem 1.15rem;
	border-radius: 6px;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pc-edital-btn:hover {
	transform: translateY(-1px);
}

.pc-edital-btn--primary {
	background: #f97316;
	color: #fff;
}

.pc-edital-btn--primary:hover {
	background: #ea580c;
	color: #fff;
}

.pc-edital-btn--ghost {
	border: 1px solid rgba(56, 107, 33, 0.28);
	color: #386b21;
	background: transparent;
}

.pc-edital-btn--ghost:hover {
	border-color: #386b21;
	background: rgba(106, 180, 62, 0.08);
	color: #042609;
}

.pc-edital-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
	position: relative;
}

.pc-edital-timeline__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.9rem;
	align-items: start;
	padding: 1rem 1.05rem;
	border-radius: 8px;
	background: #f7faf5;
	border: 1px solid transparent;
}

.pc-edital-timeline__item.is-done {
	opacity: 0.78;
}

.pc-edital-timeline__item.is-current {
	background: rgba(249, 115, 22, 0.08);
	border-color: rgba(249, 115, 22, 0.35);
}

.pc-edital-timeline__marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 50%;
	background: #386b21;
	color: #fff;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
}

.pc-edital-timeline__item.is-current .pc-edital-timeline__marker {
	background: #f97316;
}

.pc-edital-timeline__item.is-upcoming .pc-edital-timeline__marker {
	background: #9ca3af;
}

.pc-edital-timeline__title {
	display: block;
	margin-bottom: 0.2rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 1.02rem;
	color: #042609;
}

.pc-edital-timeline__date {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #dd6923;
}

.pc-edital-timeline__desc {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #64686d;
}

.pc-edital-timeline__doc {
	margin: 0.65rem 0 0;
}

.pc-edital-timeline__doc .pc-edital-btn {
	min-height: 2.35rem;
	padding: 0.5rem 0.95rem;
	font-size: 0.85rem;
}

.pc-edital-timeline__now {
	display: inline-block;
	margin-top: 0.45rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: #f97316;
	color: #fff;
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pc-edital-archive__list {
	margin-top: 1.5rem;
}

/* Inscrições */
.pc-inscricao {
	margin-top: 2rem;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(4, 38, 9, 0.06);
	scroll-margin-top: 1.5rem;
}

.pc-inscricao__header {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(56, 107, 33, 0.1);
}

.pc-inscricao__header h2 {
	margin: 0 0 0.35rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	color: #042609;
}

.pc-inscricao__period {
	margin: 0 0 0.45rem;
	font-weight: 700;
	color: #dd6923;
}

.pc-inscricao__lead {
	margin: 0;
	color: #64686d;
	line-height: 1.6;
}

.pc-editais-notice {
	margin: 0 0 1.15rem;
	padding: 0.9rem 1.1rem;
	border-radius: 6px;
	font-size: 0.98rem;
	line-height: 1.55;
}

.pc-editais-notice--success {
	background: rgba(106, 180, 62, 0.12);
	border: 1px solid rgba(106, 180, 62, 0.35);
	color: #042609;
}

.pc-editais-notice--error {
	background: rgba(221, 105, 35, 0.1);
	border: 1px solid rgba(221, 105, 35, 0.35);
	color: #7a3410;
}

.pc-inscricao-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pc-inscricao-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.1rem;
}

.pc-inscricao-form__field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.pc-inscricao-form__field--full {
	grid-column: 1 / -1;
}

.pc-inscricao-form__field label {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	color: #042609;
}

.pc-inscricao-form__field label span {
	color: #f97316;
}

.pc-inscricao-form__field input,
.pc-inscricao-form__field select,
.pc-inscricao-form__field textarea {
	width: 100%;
	margin: 0;
	padding: 0.8rem 0.95rem;
	border: 1px solid rgba(56, 107, 33, 0.2);
	border-radius: 6px;
	background: #fbfdf9;
	color: #2f3438;
	font-size: 1rem;
	line-height: 1.4;
}

.pc-inscricao-form__field input:focus,
.pc-inscricao-form__field select:focus,
.pc-inscricao-form__field textarea:focus {
	outline: none;
	border-color: #6ab43e;
	box-shadow: 0 0 0 3px rgba(106, 180, 62, 0.2);
	background: #fff;
}

.pc-inscricao-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(56, 107, 33, 0.1);
}

.pc-inscricao-form__hint {
	margin: 0;
	flex: 1 1 14rem;
	font-size: 0.88rem;
	color: #7a8088;
	line-height: 1.5;
}

@media (max-width: 700px) {
	.pc-inscricao-form__grid {
		grid-template-columns: 1fr;
	}

	.pc-inscricao-form__footer {
		flex-direction: column;
		align-items: stretch;
	}
}

/* Comissão / avaliadores */
.pc-comissao {
	margin-top: 2rem;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(4, 38, 9, 0.06);
	scroll-margin-top: 1.5rem;
}

.pc-comissao__header {
	margin-bottom: 1.25rem;
}

.pc-comissao__header h2 {
	margin: 0 0 0.4rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	color: #042609;
}

.pc-comissao__header p {
	margin: 0;
	color: #64686d;
}

.pc-comissao__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.pc-comissao__card {
	padding: 1.1rem 1.15rem;
	background: #f7faf5;
	border-left: 3px solid #386b21;
	border-radius: 8px;
}

.pc-comissao__name {
	display: block;
	font-family: Montserrat, Arial, sans-serif;
	color: #042609;
	margin-bottom: 0.25rem;
}

.pc-comissao__area {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	color: #dd6923;
	margin-bottom: 0.45rem;
}

.pc-comissao__bio {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #64686d;
}

.pc-avaliacao-list {
	display: grid;
	gap: 1.25rem;
}

.pc-avaliacao-card {
	padding: 1.25rem;
	border: 1px solid rgba(56, 107, 33, 0.14);
	border-radius: 10px;
	background: #fff;
}

.pc-avaliacao-card__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
}

.pc-avaliacao-card__head strong {
	font-family: Montserrat, Arial, sans-serif;
	color: #042609;
}

.pc-avaliacao-card__meta,
.pc-avaliacao-card__resumo {
	margin: 0 0 0.75rem;
	color: #64686d;
	line-height: 1.55;
}

/* Resultado preliminar */
.pc-resultado {
	margin-top: 2rem;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(4, 38, 9, 0.06);
	scroll-margin-top: 1.5rem;
}

.pc-resultado__header {
	margin-bottom: 1.25rem;
}

.pc-resultado__header h2 {
	margin: 0 0 0.4rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	color: #042609;
}

.pc-resultado__header p {
	margin: 0;
	color: #64686d;
}

.pc-resultado__doc {
	margin: 0 0 1.25rem;
}

.pc-resultado__actions {
	margin-bottom: 1rem;
}

.pc-resultado--final {
	border-color: rgba(221, 105, 35, 0.22);
}

.pc-resultado--final .pc-resultado__header h2 {
	color: #042609;
}

.pc-resultado__table-wrap {
	overflow-x: auto;
}

.pc-resultado__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.pc-resultado__table th,
.pc-resultado__table td {
	padding: 0.85rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid rgba(56, 107, 33, 0.12);
	vertical-align: top;
}

.pc-resultado__table th {
	font-family: Montserrat, Arial, sans-serif;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #386b21;
	background: #f7faf5;
}

.pc-resultado__table tbody tr:hover {
	background: rgba(56, 107, 33, 0.04);
}

.pc-resultado__proto {
	font-size: 0.82rem;
	color: #64686d;
}

.pc-resultado__badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

.pc-resultado__badge--aprovado {
	background: rgba(56, 107, 33, 0.12);
	color: #286016;
}

.pc-resultado__badge--suplente {
	background: rgba(221, 105, 35, 0.14);
	color: #a84e14;
}

.pc-resultado__badge--reprovado {
	background: rgba(100, 104, 109, 0.14);
	color: #4a4e52;
}

/* Recursos */
.pc-recurso {
	margin-top: 2rem;
	padding: clamp(1.35rem, 3vw, 1.85rem);
	background: #fff;
	border: 1px solid rgba(56, 107, 33, 0.12);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(4, 38, 9, 0.06);
	scroll-margin-top: 1.5rem;
}

.pc-recurso__header {
	margin-bottom: 1.25rem;
}

.pc-recurso__header h2 {
	margin: 0 0 0.4rem;
	font-family: Montserrat, Arial, sans-serif;
	font-size: clamp(1.3rem, 3vw, 1.65rem);
	color: #042609;
}

.pc-recurso__period {
	margin: 0 0 0.5rem;
	font-weight: 700;
	color: #dd6923;
}

.pc-recurso__lead {
	margin: 0;
	color: #64686d;
	line-height: 1.55;
}

@media (max-width: 700px) {
	.pc-resultado__table thead {
		display: none;
	}

	.pc-resultado__table,
	.pc-resultado__table tbody,
	.pc-resultado__table tr,
	.pc-resultado__table td {
		display: block;
		width: 100%;
	}

	.pc-resultado__table tr {
		margin-bottom: 1rem;
		padding: 0.85rem;
		background: #f7faf5;
		border-radius: 8px;
	}

	.pc-resultado__table td {
		border: 0;
		padding: 0.35rem 0;
	}

	.pc-resultado__table td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #386b21;
		margin-bottom: 0.15rem;
	}
}

@media (max-width: 640px) {
	.pc-edital-process__actions {
		flex-direction: column;
		align-items: stretch;
	}
}
