/* JA Ceará – Verificação de certificados */
.jace-cert {
	--jc-navy: #22404d;
	--jc-teal: #00a0af;
	--jc-teal-ink: #00707a;
	--jc-mint: #e6f7f8;
	--jc-yellow: #e3e24f;
	--jc-ink: #1d2a30;
	--jc-muted: #5b6b72;
	--jc-line: #d9e3e6;
	--jc-red: #b42318;
	--jc-red-bg: #fdf0ef;
	--jc-amber-bg: #f6f7f2;

	box-sizing: border-box;
	max-width: 680px;
	margin: 48px auto;
	padding: 0 16px;
	font-family: inherit;
	color: var(--jc-ink);
	line-height: 1.5;
}
.jace-cert *,
.jace-cert *::before,
.jace-cert *::after { box-sizing: inherit; }

.jace-cert__head { margin-bottom: 28px; }
.jace-cert__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--jc-yellow);
	color: var(--jc-navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.jace-cert__title {
	margin: 0 0 8px;
	color: var(--jc-navy);
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 700;
	line-height: 1.15;
}
.jace-cert__sub { margin: 0; color: var(--jc-muted); font-size: 16px; }

.jace-cert__form {
	padding: 20px;
	border-radius: 14px;
	background: var(--jc-navy);
}
.jace-cert__label {
	display: block;
	margin-bottom: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}
.jace-cert__row { display: flex; gap: 10px; flex-wrap: wrap; }
.jace-cert .jace-cert__input {
	flex: 1 1 240px;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #fff;
	color: var(--jc-ink);
	font: 600 17px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: none;
}
.jace-cert .jace-cert__input::placeholder { color: #9aa8ad; font-weight: 500; text-transform: none; }
.jace-cert .jace-cert__input:focus { outline: none; border-color: var(--jc-yellow); }
.jace-cert .jace-cert__btn {
	flex: 0 0 auto;
	height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 10px;
	background: var(--jc-yellow);
	color: var(--jc-navy);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
}
.jace-cert .jace-cert__btn:hover { filter: brightness(.95); }
.jace-cert .jace-cert__btn:active { transform: translateY(1px); }
.jace-cert .jace-cert__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.jace-cert__result {
	margin-top: 24px;
	padding: 24px;
	border: 1px solid var(--jc-line);
	border-left-width: 6px;
	border-radius: 14px;
	background: #fff;
}
.jace-cert__result--valid { border-color: var(--jc-teal); background: var(--jc-mint); }
.jace-cert__result--revoked { border-color: var(--jc-red); background: var(--jc-red-bg); }
.jace-cert__result--missing { border-color: #b8c3c7; background: var(--jc-amber-bg); }

.jace-cert__status { display: flex; gap: 14px; align-items: flex-start; }
.jace-cert__icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 50%;
	color: #fff;
	background: var(--jc-muted);
}
.jace-cert__result--valid .jace-cert__icon { background: var(--jc-teal-ink); }
.jace-cert__result--revoked .jace-cert__icon { background: var(--jc-red); }
.jace-cert__status-title {
	margin: 4px 0 4px;
	color: var(--jc-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}
.jace-cert__result--revoked .jace-cert__status-title { color: var(--jc-red); }
.jace-cert__status-text { margin: 0; color: var(--jc-ink); font-size: 15px; }

.jace-cert__data {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 20px 0 0;
	border: 1px solid var(--jc-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--jc-line);
}
.jace-cert__item { margin: 0; padding: 12px 14px; background: #fff; }
.jace-cert__item--wide,
.jace-cert__item--wide ~ .jace-cert__item:last-child:nth-child(even) { grid-column: 1 / -1; }
.jace-cert__item dt {
	margin: 0 0 2px;
	color: var(--jc-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.jace-cert__item dd { margin: 0; color: var(--jc-ink); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.jace-cert__item--wide dd { font-size: 19px; color: var(--jc-navy); }
.jace-cert__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.jace-cert__checked { margin: 12px 0 0; color: var(--jc-muted); font-size: 13px; }

@media (max-width: 520px) {
	.jace-cert { margin: 28px auto; }
	.jace-cert__form { padding: 16px; }
	.jace-cert .jace-cert__btn { flex: 1 1 100%; }
	.jace-cert__data { grid-template-columns: 1fr; }
	.jace-cert__result { padding: 18px; }
}
