/* ============================================================
   FLIBBR — verify.css
   Drives /verify/ (page-verify.php).

   Lifted verbatim from locked canonical
   `flibbr-design-mockup-final-verify.html` (v1, locked 4 May 2026).

   SCOPE
   This file covers verify-specific selectors only:
     - .verify-search, .verify-search-*
     - .verify-filters, .verify-filter-label, .verify-pill
     - .verify-main, .verify-cohort, .verify-cohort-*
     - .verify-section, .verify-section-*
     - .verify-cred-grid, .verify-cred-card, .verify-cred-*
     - .verify-no-results, .verify-no-results-*
     - .verify-lightbox, .verify-lightbox-*

   Site header + footer chassis remain in header-footer.css.
   Container, body, focus rings remain in base.css.
   Tokens are global in tokens.css.

   ONE LOCAL TOKEN
   --terracotta (#b4431b) is verify-archive only — sampled from the
   certificate colour band, used exclusively on credential IDs as a
   visual rhyme with the artifact being verified. Defined here, not
   in tokens.css, because it is genuinely scoped to this surface
   (canon comment lines 145–149).
   ============================================================ */

/* Local token: terracotta — credential IDs only. */
.verify-cred-id,
.verify-lightbox-caption-id {
	--terracotta: #b4431b;
}

/* ----------------------------------------------------------
   SEARCH BAR — sticky beneath site-header
---------------------------------------------------------- */
.verify-search {
	background: var(--paper-warm);
	border-bottom: 1px solid var(--rule-soft);
	position: sticky;
	top: 56px; /* clears site-header */
	z-index: 30;
}
.verify-search-row {
	display: flex;
	gap: var(--s-4);
	align-items: center;
	padding-block: var(--s-5);
	flex-wrap: wrap;
}
.verify-search-input-wrap {
	flex: 1;
	min-width: 280px;
	position: relative;
}
.verify-search-input {
	width: 100%;
	padding: var(--s-4) var(--s-5) var(--s-4) calc(var(--s-5) + var(--s-6));
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 4px;
	outline: none;
	transition: border-color var(--motion-duration-ui) var(--motion-ease-ui),
				box-shadow var(--motion-duration-ui) var(--motion-ease-ui);
}
.verify-search-input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(42, 37, 102, 0.12);
}
.verify-search-input::placeholder { color: var(--ink-quiet); }
.verify-search-icon {
	position: absolute;
	left: var(--s-4); top: 50%;
	transform: translateY(-50%);
	width: 18px; height: 18px;
	color: var(--ink-quiet);
	pointer-events: none;
}
.verify-search-meta {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink-quiet);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.verify-search-meta strong { color: var(--ink); font-weight: 500; }

.verify-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	align-items: center;
	padding-bottom: var(--s-5);
}
.verify-filter-label {
	font-family: var(--sans);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-quiet);
	font-weight: 500;
	margin-right: var(--s-3);
}
.verify-pill {
	/* button-defaults reset (op-learning #10) */
	display: block; width: auto; border: 0; padding: 0; font: inherit;
	padding: var(--s-2) var(--s-4);
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-soft);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 999px;
	cursor: pointer;
	transition: all var(--motion-duration-ui) var(--motion-ease-ui);
}
.verify-pill:hover {
	border-color: var(--ink-quiet);
	color: var(--ink);
}
.verify-pill.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* ----------------------------------------------------------
   COHORT
---------------------------------------------------------- */
.verify-main { padding-block: var(--s-8) var(--s-9); }

.verify-cohort { margin-bottom: var(--s-9); }
.verify-cohort:last-child { margin-bottom: 0; }

.verify-cohort-header {
	border-bottom: 2px solid var(--ink);
	padding-bottom: var(--s-5);
	margin-bottom: var(--s-7);
}
.verify-cohort-eyebrow {
	font-family: var(--sans);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	font-weight: 600;
	margin: 0 0 var(--s-3);
}
.verify-cohort-title {
	font-family: var(--serif);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin: 0 0 var(--s-3);
}
.verify-cohort-theme {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(18px, 2vw, 22px);
	color: var(--ink-soft);
	margin: 0 0 var(--s-5);
}
.verify-cohort-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-7);
	font-size: 14px;
}
.verify-cohort-meta-item { display: flex; flex-direction: column; gap: var(--s-1); }
.verify-cohort-meta-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-quiet);
	font-weight: 500;
}
.verify-cohort-meta-value {
	font-family: var(--serif);
	font-size: 16px;
	color: var(--ink);
	font-weight: 500;
}

/* role section sub-heading within cohort */
.verify-section { margin-bottom: var(--s-8); }
.verify-section:last-child { margin-bottom: 0; }
.verify-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-4);
	margin-bottom: var(--s-6);
	padding-bottom: var(--s-3);
	border-bottom: 1px solid var(--rule-soft);
}
.verify-section-title {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink);
	margin: 0;
}
.verify-section-count {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink-quiet);
	font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   CREDENTIAL CARD GRID
---------------------------------------------------------- */
.verify-cred-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--s-7) var(--s-5);
}
.verify-cred-card {
	/* button-defaults reset (op-learning #10) */
	display: block; width: 100%; border: 0; padding: 0; font: inherit;
	text-align: left; color: inherit;
	background: transparent;
	cursor: pointer;
	transition: transform var(--motion-duration-content) var(--motion-ease-content);
}
.verify-cred-card:hover { transform: translateY(-2px); }
.verify-cred-card:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 6px;
	border-radius: 2px;
}
.verify-cred-thumb {
	aspect-ratio: 1240 / 1754;
	background: var(--paper-warm);
	border: 1px solid var(--rule);
	margin-bottom: var(--s-4);
	overflow: hidden;
	position: relative;
	transition: border-color var(--motion-duration-content) var(--motion-ease-content),
				box-shadow var(--motion-duration-content) var(--motion-ease-content);
}
.verify-cred-card:hover .verify-cred-thumb {
	border-color: var(--ink-quiet);
	box-shadow: 0 12px 32px rgba(20, 20, 19, 0.10);
}
.verify-cred-thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}
.verify-cred-thumb-hidden {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	padding: var(--s-5);
	color: var(--ink-quiet);
	font-family: var(--serif);
	font-style: italic;
	font-size: 14px;
	line-height: 1.5;
}
.verify-cred-name {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 500;
	color: var(--ink);
	margin: 0 0 var(--s-1);
	line-height: 1.25;
	letter-spacing: -0.005em;
}
.verify-cred-name.is-hidden {
	font-style: italic;
	color: var(--ink-quiet);
	font-weight: 400;
}
.verify-cred-id {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--terracotta);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	font-weight: 500;
	margin: 0;
}

.verify-no-results {
	text-align: center;
	padding-block: var(--s-9);
	color: var(--ink-quiet);
}
.verify-no-results-title {
	font-family: var(--serif);
	font-size: 24px;
	font-style: italic;
	color: var(--ink-soft);
	margin: 0 0 var(--s-3);
}
.verify-no-results-detail {
	font-family: var(--sans);
	font-size: 14px;
	margin: 0;
}

/* ----------------------------------------------------------
   LIGHTBOX
---------------------------------------------------------- */
.verify-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 19, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 110;
	padding: var(--s-5);
	cursor: zoom-out;
}
.verify-lightbox.is-open { display: flex; }
.verify-lightbox-content {
	max-width: 880px;
	width: 100%;
	cursor: default;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-5);
}
.verify-lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	background: white;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.verify-lightbox-caption {
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--sans);
	font-size: 14px;
}
.verify-lightbox-caption-name {
	display: block;
	color: white;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	margin-bottom: var(--s-2);
}
.verify-lightbox-caption-id {
	font-family: var(--sans);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.65);
	margin-top: var(--s-2);
	display: inline-block;
}
.verify-lightbox-close {
	position: absolute;
	top: var(--s-5);
	right: var(--s-5);
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: background var(--motion-duration-ui) var(--motion-ease-ui);
}
.verify-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
}
.verify-lightbox-close svg {
	width: 20px; height: 20px;
	display: block;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 720px) {
	.verify-search { position: static; }
	.verify-cred-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-6) var(--s-4); }
	.verify-cred-name { font-size: 16px; }
}
