/* TechZyre People: team + students. Uses theme tokens when present, with safe fallbacks. */
.tzp-team, .tzp-students { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.tzp-team { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); }
.tzp-students { grid-template-columns: repeat(auto-fit, minmax(210px, 260px)); gap: 22px; }
.tzp-empty { padding: 32px; border: 1px dashed var(--mist, #E7DFD0); border-radius: 2px; color: var(--clay, #6E675C); }

/* Photos */
.tzp-photo { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; background: var(--mist, #E7DFD0); }
.tzp-photo--initials { display: grid; place-items: center; font-family: var(--f-display, Georgia, serif); font-size: clamp(40px, 6vw, 64px); color: var(--ink, #14120E); background: linear-gradient(0deg, #E7DFD0, #E7DFD0); letter-spacing: -.02em; }

/* Team card */
.tzp-member { display: flex; flex-direction: column; background: #FBF8F2; border: 1px solid var(--mist, #E7DFD0); border-radius: 2px; overflow: hidden; min-width: 0; }
.tzp-member__photo { overflow: hidden; }
.tzp-member__photo img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.tzp-member:hover .tzp-member__photo img { transform: scale(1.03); }
.tzp-member__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tzp-member__name { margin: 0 !important; font-size: 24px !important; line-height: 1.2 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.tzp-member__role { margin: 0 !important; font-family: var(--f-mono, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--vermilion-ink, #C23A00); line-height: 1.5; overflow-wrap: anywhere; }
.tzp-member__bio { margin: 4px 0 0 !important; font-size: 15px; line-height: 1.6; color: #3A362F; overflow-wrap: anywhere; }
.tzp-member__link { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 14px; color: var(--ink, #14120E); text-decoration: none; }
.tzp-member__link:hover { color: var(--vermilion-ink, #C23A00); }
.tzp-verified { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: #E3F1E8; color: #1E6B3A; font-family: var(--f-body, sans-serif); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tzp-verified svg { color: #1E8A4A; flex: none; }

/* Filter */
.tzp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tzp-filter button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--mist, #E7DFD0); border-radius: 999px; background: transparent; color: var(--ink, #14120E); cursor: pointer; }
.tzp-filter button:hover { border-color: var(--ink, #14120E); }
.tzp-filter button.is-on { background: var(--ink, #14120E); border-color: var(--ink, #14120E); color: var(--paper, #F6F2EA); }
.tzp-student.is-hidden { display: none; }

/* Student card */
.tzp-student { min-width: 0; }
.tzp-student__btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; background: #FBF8F2; border: 1px solid var(--mist, #E7DFD0); border-radius: 2px; overflow: hidden; transition: transform 300ms, box-shadow 300ms, border-color 300ms; }
.tzp-student__btn:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(20, 18, 14, .35); border-color: var(--ink, #14120E); }
.tzp-student__btn:focus-visible { outline: 3px solid var(--vermilion, #FF4D00); outline-offset: 3px; }
.tzp-student__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; min-width: 0; flex: 1; }
.tzp-student__name { font-family: var(--f-display, Georgia, serif); font-size: 22px; line-height: 1.2; color: var(--ink, #14120E); overflow-wrap: anywhere; }
.tzp-student__title { font-size: 14px; line-height: 1.5; color: var(--clay, #6E675C); overflow-wrap: anywhere; }
.tzp-student__cta { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink, #14120E); }
.tzp-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.tzp-status--ok { background: #E3F1E8; color: #1E6B3A; }
.tzp-status--bad { background: #FBE6E3; color: #A32A1C; padding-left: 10px; }
.tzp-status--off { background: #EFEAE0; color: #6E675C; padding-left: 10px; }

/* Dialog */
.tzp-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 2px; background: var(--paper, #F6F2EA); color: var(--ink, #14120E); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: auto; }
.tzp-dialog::backdrop { background: rgba(12, 31, 26, .72); backdrop-filter: blur(3px); }
.tzp-dialog[open] { animation: tzp-in 260ms cubic-bezier(.2, .7, .2, 1); }
@keyframes tzp-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tzp-dialog__close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; width: 40px; height: 40px; border: 1px solid var(--mist, #E7DFD0); border-radius: 50%; background: #FBF8F2; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; color: var(--ink, #14120E); }
.tzp-dialog__close:hover { background: var(--ink, #14120E); color: var(--paper, #F6F2EA); }
.tzp-dialog__body { padding: 28px clamp(18px, 4vw, 40px) 36px; }
.tzp-pop__head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-right: 40px; }
.tzp-pop__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
.tzp-pop__photo .tzp-photo { width: 96px; height: 96px; font-size: 34px; }
.tzp-pop__eyebrow { margin: 0 0 4px !important; font-family: var(--f-mono, monospace); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay, #6E675C); }
.tzp-pop__name { margin: 0 !important; font-size: clamp(26px, 4vw, 36px) !important; line-height: 1.1 !important; overflow-wrap: anywhere; }
.tzp-pop__title { margin: 6px 0 0 !important; color: var(--clay, #6E675C); font-size: 15px; }
.tzp-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 2px; margin-bottom: 18px; }
.tzp-verdict svg { width: 26px; height: 26px; flex: none; }
.tzp-verdict b { display: block; font-size: 16px; }
.tzp-verdict span { font-size: 14px; opacity: .85; }
.tzp-verdict--ok { background: #E3F1E8; color: #1E6B3A; }
.tzp-verdict--bad { background: #FBE6E3; color: #A32A1C; }
.tzp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 20px; border-top: 1px solid var(--ink, #14120E); }
.tzp-facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--mist, #E7DFD0); min-width: 0; }
.tzp-facts dt { font-family: var(--f-mono, monospace); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay, #6E675C); }
.tzp-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.tzp-preview { position: relative; width: 100%; aspect-ratio: 297 / 210; border: 1px solid var(--mist, #E7DFD0); background: #fff; overflow: hidden; margin-bottom: 20px; }
.tzp-preview__frame { position: absolute; inset: 0; }
.tzp-preview iframe { position: absolute; top: 0; left: 0; width: 1123px; height: 794px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tzp-preview.is-loading::after { content: "Loading certificate…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--clay, #6E675C); }
.tzp-pop__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tzp-copy { font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border: 0; background: none; text-decoration: underline; cursor: pointer; color: var(--ink, #14120E); }
.tzp-pop__none { color: var(--clay, #6E675C); }
@media (max-width: 560px) {
	.tzp-pop__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.tzp-pop__actions .tz-btn { width: 100%; justify-content: center; }
	.tzp-students { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tzp-student__body { padding: 14px; }
	.tzp-student__name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tzp-dialog[open] { animation: none; } .tzp-student__btn, .tzp-member__photo img { transition: none; } }
