/* Styles for /verify/ and /certificate/view.html
 * Layered on top of porg.css + lbx.css.  Kept simple and self-contained.
 */

.verify-container {
	max-width: 760px;
}

/* Lookup form */
.verify-lookup {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: stretch;
	margin: 1.5rem 0 .5rem;
}
.verify-lookup label {
	width: 100%;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #1a1a1a;
	margin: 0 0 .15rem;
}
.verify-lookup input[type="text"] {
	flex: 1 1 240px;
	min-width: 0;
	padding: .65rem .9rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1rem;
	letter-spacing: .02em;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #fff;
	outline: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}
.verify-lookup input[type="text"]:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .08);
}
.verify-lookup button {
	flex: 0 0 auto;
	cursor: pointer;
	font-family: inherit;
	font-size: .95rem;
}
.verify-helptext {
	font-size: .85rem;
	color: #555;
	margin: .25rem 0 1.5rem;
}
.verify-helptext code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .85rem;
	color: #1a1a1a;
	background: rgba(0, 0, 0, .05);
	padding: 1px 4px;
}

/* Result panel */
.verify-result {
	margin: 1.25rem 0 2.5rem;
}
.verify-result:empty {
	display: none;
}
.verify-result-card {
	border: 1px solid #ddd;
	border-left-width: 6px;
	padding: 1.25rem 1.5rem 1.5rem;
	background: #fff;
}
.verify-result-valid    { border-left-color: #2a8a3e; }
.verify-result-revoked  { border-left-color: #c63420; }
.verify-result-notfound { border-left-color: #888; }

.verify-status-badge {
	display: flex;
	align-items: center;
	gap: .65rem;
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 1rem;
	letter-spacing: .005em;
}
.verify-status-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}
.verify-result-valid    .verify-status-icon { background: #2a8a3e; }
.verify-result-revoked  .verify-status-icon { background: #c63420; }
.verify-result-notfound .verify-status-icon { background: #888; }
.verify-result-valid    .verify-status-text { color: #2a8a3e; }
.verify-result-revoked  .verify-status-text { color: #c63420; }
.verify-result-notfound .verify-status-text { color: #444; }

/* Detail table */
.verify-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: .4rem 1.25rem;
	margin: 0 0 1rem;
	font-size: .95rem;
}
.verify-details dt {
	font-weight: 600;
	color: #555;
	font-size: .85rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding-top: .15rem;
}
.verify-details dd {
	margin: 0;
	color: #1a1a1a;
	line-height: 1.5;
}
.verify-details dd code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .92rem;
	background: rgba(0, 0, 0, .05);
	padding: 1px 6px;
}
.verify-recipient {
	font-size: 1.1rem;
	font-weight: 700;
}
.verify-team-names {
	display: inline;
	font-size: .85rem;
	font-weight: 400;
	color: #555;
}
.verify-project {
	font-style: italic;
}
.verify-citation {
	color: #444;
}

.verify-cert-link {
	margin: 1.25rem 0 0;
}
.verify-revoked-help,
.verify-notfound-help {
	margin-top: 1rem;
	font-size: .9rem;
	color: #444;
}
.verify-notfound-help li {
	margin-bottom: .35rem;
	line-height: 1.55;
}

/* Sample list */
.verify-sample-list {
	margin: .5rem 0 1.5rem;
	padding-left: 1.25rem;
}
.verify-sample-list li {
	margin-bottom: .35rem;
	font-size: .9rem;
}
.verify-sample-list a {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88rem;
	color: #1a1a1a;
}

/* Mobile: stack the lookup form on narrow screens */
@media (max-width: 540px) {
	.verify-lookup {
		gap: .65rem;
	}
	.verify-lookup input[type="text"] {
		flex: 1 1 100%;
	}
	.verify-lookup button {
		flex: 1 1 100%;
	}
	.verify-details {
		grid-template-columns: 1fr;
		gap: .15rem 0;
	}
	.verify-details dt {
		padding-top: .75rem;
	}
}

/* ===== /certificate/view.html ===== */

.cert-page {
	background: #f0f0f0;
	min-height: 100vh;
	padding: 0;
}
.cert-page main {
	width: 100% !important;
	margin-left: 0 !important;
	max-width: 100%;
}
.cert-page header[role="banner"] { display: none; }
.cert-page footer { display: none; }

.cert-toolbar {
	display: flex;
	gap: .75rem;
	flex-wrap: wrap;
	justify-content: center;
	padding: 1.25rem 1rem;
	background: #fff;
	border-bottom: 1px solid #ddd;
}

.cert-canvas {
	display: flex;
	justify-content: center;
	padding: 2rem 1rem 3rem;
}
.cert-canvas .cert-frame {
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 792 / 612;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
	overflow: hidden;
}
.cert-canvas .cert-frame svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cert-missing {
	max-width: 600px;
	margin: 3rem auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #ddd;
	border-left: 6px solid #c63420;
}
.cert-missing h2 { margin-top: 0; font-size: 1.4rem; }
.cert-missing p  { font-size: .95rem; color: #444; line-height: 1.6; }

/* When printing, drop the chrome and let the SVG take the full page */
@media print {
	body { background: #fff !important; }
	.cert-toolbar { display: none !important; }
	.cert-canvas { padding: 0 !important; }
	.cert-canvas .cert-frame {
		max-width: 100%;
		box-shadow: none;
		page-break-after: always;
	}
	@page { size: letter landscape; margin: 0; }
}
