/* Student Certificate Verification: every rule is scoped to .scv-wrap; colors and sizes come from the
   CSS variables printed from Verification Page Settings. Fonts are inherited from the site. */
.scv-wrap { --scv-primary: #142B46; --scv-secondary: #2878C8; --scv-bg: #F5F8FC; --scv-card: #FFFFFF; --scv-text: #475569;
	--scv-btn-bg: #2878C8; --scv-btn-text: #FFFFFF; --scv-valid: #15803D; --scv-revoked: #B42318; --scv-expired: #B54708;
	--scv-field-border: #CBD5E1; --scv-field-focus: #2878C8; --scv-radius: 6px; --scv-btn-radius: 4px; --scv-space: 40px;
	max-width: 860px; margin: 0 auto; color: var(--scv-text); line-height: 1.6; box-sizing: border-box; }
.scv-wrap *, .scv-wrap *::before, .scv-wrap *::after { box-sizing: border-box; }
.scv-wrap [hidden] { display: none !important; }
.scv-wrap .scv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.scv-wrap .scv-panel { background: var(--scv-bg); border-radius: var(--scv-radius); padding: var(--scv-space); text-align: center; border-top: 4px solid var(--scv-secondary); }
.scv-wrap .scv-logo img { max-height: 70px; width: auto; margin: 0 auto 18px; display: block; }
.scv-wrap .scv-heading { margin: 0 0 10px; color: var(--scv-primary); font-size: clamp(24px, 3vw, 34px); line-height: 1.25; font-weight: 800; }
.scv-wrap .scv-subtitle { margin: 0 auto 26px; max-width: 620px; font-size: 16px; }
.scv-wrap .scv-form { margin: 0; }
.scv-wrap .scv-row { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.scv-wrap .scv-input {
	flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 18px; font: inherit; font-size: 16px; letter-spacing: .02em; color: var(--scv-primary);
	background: #FFFFFF; border: 1px solid var(--scv-field-border); border-radius: var(--scv-btn-radius); box-shadow: none; outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.scv-wrap .scv-input:focus { border-color: var(--scv-field-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--scv-field-focus) 18%, transparent); }
.scv-wrap .scv-input[aria-invalid="true"] { border-color: var(--scv-revoked); }
.scv-wrap .scv-button, .scv-wrap button.scv-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 28px; font: inherit; font-size: 14px; font-weight: 700;
	letter-spacing: .05em; text-transform: uppercase; color: var(--scv-btn-text); background: var(--scv-btn-bg); border: 0; border-radius: var(--scv-btn-radius);
	cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.scv-wrap .scv-button:hover, .scv-wrap .scv-button:focus-visible, .scv-wrap button.scv-button:hover, .scv-wrap button.scv-button:focus { background: var(--scv-primary); color: var(--scv-btn-text); transform: translateY(-1px); }
.scv-wrap .scv-button:focus-visible { outline: 3px solid var(--scv-field-focus); outline-offset: 2px; }
.scv-wrap .scv-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.scv-wrap .scv-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scv-wrap .scv-help { margin: 12px auto 0; max-width: 640px; font-size: 14px; opacity: .85; }
.scv-wrap .scv-error { margin: 10px auto 0; max-width: 640px; color: var(--scv-revoked); font-size: 14px; font-weight: 700; }
.scv-wrap .scv-info { margin: 18px auto 0; max-width: 640px; font-size: 14px; }

/* step 1: certificate type selector above the search field */
.scv-wrap .scv-cats { max-width: 640px; margin: 0 auto 16px; padding: 0; border: 0; min-width: 0; }
.scv-wrap .scv-cats-title { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--scv-primary); text-align: center; }
.scv-wrap .scv-cats-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scv-wrap .scv-cat-training { --scv-cat: var(--scv-secondary); }
.scv-wrap .scv-cat-certification { --scv-cat: var(--scv-primary); }
.scv-wrap .scv-cat { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin: 0; padding: 8px 16px;
	background: #FFFFFF; border: 1px solid var(--scv-field-border); border-radius: var(--scv-btn-radius); cursor: pointer;
	font-size: 15px; font-weight: 700; color: var(--scv-primary); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.scv-wrap .scv-cat:hover { border-color: var(--scv-cat); }
.scv-wrap .scv-cat-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.scv-wrap .scv-cat:has(.scv-cat-input:checked) { border-color: var(--scv-cat); background: color-mix(in srgb, var(--scv-cat) 8%, #FFFFFF); box-shadow: 0 0 0 1px var(--scv-cat); }
.scv-wrap .scv-cat:has(.scv-cat-input:focus-visible) { outline: 3px solid var(--scv-field-focus); outline-offset: 2px; }
.scv-wrap .scv-cat-ico { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: color-mix(in srgb, var(--scv-cat) 10%, #FFFFFF); color: var(--scv-cat); transition: background-color .2s ease, color .2s ease; }
.scv-wrap .scv-cat:has(.scv-cat-input:checked) .scv-cat-ico { background: var(--scv-cat); color: #FFFFFF; }
.scv-wrap .scv-cat-ico svg, .scv-wrap .scv-cat-chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.scv-wrap .scv-loading { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; font-weight: 700; color: var(--scv-primary); }
.scv-wrap .scv-spinner { width: 20px; height: 20px; border: 3px solid var(--scv-field-border); border-top-color: var(--scv-secondary); border-radius: 50%; animation: scv-spin .8s linear infinite; }
@keyframes scv-spin { to { transform: rotate(360deg); } }

.scv-wrap .scv-result:empty { display: none; }
.scv-wrap .scv-result { margin-top: 24px; }
.scv-wrap .scv-card { --scv-state: var(--scv-secondary); background: var(--scv-card); border-radius: var(--scv-radius); padding: calc(var(--scv-space) * .8);
	border: 1px solid #E3EAF3; border-top: 4px solid var(--scv-state); box-shadow: 0 18px 44px rgba(20, 43, 70, .10); text-align: left; animation: scv-in .4s ease both; }
@keyframes scv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scv-wrap .scv-state-valid { --scv-state: var(--scv-valid); }
.scv-wrap .scv-state-revoked { --scv-state: var(--scv-revoked); }
.scv-wrap .scv-state-expired { --scv-state: var(--scv-expired); }
.scv-wrap .scv-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.scv-wrap .scv-card-headings { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.scv-wrap .scv-cat-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 14px; font-weight: 800;
	color: var(--scv-cat); background: color-mix(in srgb, var(--scv-cat) 10%, #FFFFFF); border: 1px solid color-mix(in srgb, var(--scv-cat) 30%, #FFFFFF); }
.scv-wrap .scv-cat-chip svg { width: 17px; height: 17px; }
.scv-wrap .scv-card-title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--scv-primary); }
.scv-wrap .scv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em;
	color: #FFFFFF; background: var(--scv-state); }
.scv-wrap .scv-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scv-wrap .scv-status-msg { margin: 0 0 18px; font-weight: 700; color: var(--scv-state); }
.scv-wrap .scv-fields { margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.scv-wrap .scv-field { padding: 12px 0; border-bottom: 1px solid #E8EEF5; }
.scv-wrap .scv-field-description { grid-column: 1 / -1; }
.scv-wrap .scv-field dt { margin: 0 0 3px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.scv-wrap .scv-field dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--scv-primary); overflow-wrap: anywhere; }
.scv-wrap .scv-download.is-disabled { opacity: .6; cursor: default; }
.scv-wrap .scv-notice { margin: 0; padding: 12px 16px; background: var(--scv-bg); border-left: 3px solid var(--scv-expired); font-size: 14px; }
.scv-wrap .scv-card-msg { display: flex; align-items: center; gap: 14px; border-top-color: var(--scv-expired); }
.scv-wrap .scv-card-msg.scv-msg-notfound { border-top-color: var(--scv-revoked); }
.scv-wrap .scv-card-msg p { margin: 0; font-weight: 700; color: var(--scv-primary); }
.scv-wrap .scv-msg-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--scv-bg); position: relative; }
.scv-wrap .scv-msg-ico::before { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--scv-revoked); }
.scv-wrap .scv-footer-note { margin: 18px 0 0; text-align: center; font-size: 13px; opacity: .8; }

@media (max-width: 600px) {
	.scv-wrap .scv-panel { padding: calc(var(--scv-space) * .6) 18px; }
	.scv-wrap .scv-row { flex-direction: column; }
	.scv-wrap .scv-button { width: 100%; }
	.scv-wrap .scv-fields { grid-template-columns: minmax(0, 1fr); }
	.scv-wrap .scv-cats-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.scv-wrap .scv-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.scv-wrap .scv-card { animation: none; }
	.scv-wrap .scv-spinner { animation-duration: 2s; }
}
