/* Naktahu public assessment grid ([naktahu_assessments]).
   Same look as the participant welcome card: pale mint ground, white
   rounded cards, Inter, blue-to-teal pill buttons. Everything is scoped to
   .nkg-wrap so it cannot leak into the theme. */

.nkg-wrap {
	--nkg-ink: #1B2437;
	--nkg-muted: #4B5160;
	--nkg-line: #DCEBE4;
	--nkg-blue: #0F83B8;
	--nkg-teal: #3ECFBF;
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--nkg-ink);
	box-sizing: border-box;
	width: 100%;
}
.nkg-wrap *, .nkg-wrap *::before, .nkg-wrap *::after { box-sizing: border-box; }
.nkg-wrap [hidden] { display: none !important; }

.nkg-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 0 0 26px; }
.nkg-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.nkg-tab {
	cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; line-height: 1;
	padding: 0 20px; min-height: 44px; border-radius: 999px;
	border: 1px solid #B9C0CB; background: #fff; color: var(--nkg-ink);
}
.nkg-tab span { font-weight: 500; font-size: 13px; opacity: .75; margin-left: 4px; }
.nkg-tab.is-active { background: var(--nkg-ink); border-color: var(--nkg-ink); color: #fff; }
.nkg-tab:focus-visible, .nkg-btn:focus-visible { outline: 3px solid var(--nkg-ink); outline-offset: 3px; }


.nkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 28px; }

.nkg-card {
	background: #fff; border: 1px solid var(--nkg-line); border-radius: 24px; overflow: hidden;
	display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(27, 36, 55, .06);
	transition: transform .15s, box-shadow .15s;
}
.nkg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 36, 55, .12); }

.nkg-cover {
	height: 184px; position: relative; display: flex; align-items: center; justify-content: center;
	background-color: #DCEFF5; background-size: cover; background-position: center; color: #7A8CA3;
}
.nkg-card.is-paid .nkg-cover { background-color: #F6EEDD; }
.nkg-tag { display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 16px; top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 7px 12px; border-radius: 999px; background: #D7F3EA; color: #0B5A4E; }
.nkg-card.is-paid .nkg-tag { background: #FFE9A8; color: #5C4300; }

.nkg-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.nkg-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1C1B18; }
.nkg-title { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--nkg-ink); }
.nkg-desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--nkg-muted); }

.nkg-meta { display: inline-flex; align-self: flex-start; border: 1px solid #B9C0CB; border-radius: 12px; overflow: hidden; font-size: 14px; color: var(--nkg-muted); margin-top: 2px; }
.nkg-meta span { display: flex; align-items: center; gap: 8px; padding: 9px 14px; }
.nkg-meta span + span { border-left: 1px solid #B9C0CB; }
.nkg-meta svg { color: #6B7280; flex-shrink: 0; }

.nkg-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.nkg-tag.nkg-tag-icon { padding: 8px 10px; }
.nkg-price { display: flex; flex-direction: column; gap: 2px; }
.nkg-price strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.nkg-btn { white-space: nowrap; }
.nkg-card.is-paid .nkg-price strong { font-size: 21px; }
.nkg-card.is-paid .nkg-btn { gap: 8px; padding: 0 18px; }
.nkg-price small { font-size: 12.5px; color: #6B6455; }

.nkg-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
	font-size: 15px; font-weight: 700; text-decoration: none; color: #fff;
	background: linear-gradient(135deg, var(--nkg-blue), var(--nkg-teal));
	transition: transform .12s;
}
.nkg-btn:hover { transform: translateY(-2px); color: #fff; }
.nkg-card.is-paid .nkg-btn { background: linear-gradient(135deg, #FFD76A, #F2A81D); color: #1B2437; }
.nkg-card.is-paid .nkg-btn:hover { color: #1B2437; }

.nkg-empty { padding: 28px; text-align: center; color: var(--nkg-muted); background: #fff; border: 1px solid var(--nkg-line); border-radius: 24px; }

@media (max-width: 600px) {
	.nkg-grid { gap: 20px; }
	.nkg-card { border-radius: 22px; }
	.nkg-cover { height: 150px; }
	.nkg-body { padding: 22px 20px; }
	.nkg-title { font-size: 23px; }
	.nkg-foot { flex-wrap: nowrap; }
	.nkg-btn { justify-content: center; min-height: 52px; padding: 0 20px; }
}

/* ---- Order-received page: "Your assessment" cards ------------------- */
.nkg-ty { margin: 28px 0; background: #E9F5F0; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.nkg-ty .nkg-ty-card { flex-direction: row; min-height: 230px; }
.nkg-ty .nkg-ty-card:hover { transform: none; box-shadow: 0 6px 24px rgba(27, 36, 55, .06); }
.nkg-ty .nkg-cover { width: 300px; height: auto; flex-shrink: 0; }
.nkg-ty .nkg-body { padding: 28px 32px; }
.nkg-ty .nkg-title { font-size: 27px; margin: 0; }
.nkg-ty .nkg-desc { max-width: 560px; }
.nkg-ty .nkg-foot { padding-top: 6px; }
.nkg-ty .nkg-tag { background: #FFE9A8; color: #5C4300; }
.nkg-ty .is-progress .nkg-tag { background: #DCEFF5; color: #0B4F6C; }
.nkg-ty .is-done .nkg-tag { background: #D7F3EA; color: #0B5A4E; }
.nkg-ty .is-void .nkg-tag { background: #E7E9EE; color: #3F4654; }
.nkg-ty .is-progress .nkg-cover, .nkg-ty .is-done .nkg-cover { background-color: #DCEFF5; }
.nkg-ty .is-void .nkg-cover { background-color: #EEF0F3; }
.nkg-wrap a.nkg-btn, .nkg-wrap a.nkg-btn:hover, .nkg-wrap a.nkg-btn:visited { color: #fff !important; text-decoration: none !important; }
.nkg-ty-wait { background: #fff; border: 1px dashed #B9C0CB; border-radius: 24px; padding: 26px 32px; display: flex; align-items: center; gap: 18px; }
.nkg-ty-wait strong { display: block; font-size: 17px; }
.nkg-ty-wait p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--nkg-muted); }
.nkg-ty-spin { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--nkg-line); border-top-color: var(--nkg-blue); animation: nkg-spin 1s linear infinite; }
@keyframes nkg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nkg-ty-spin { animation: none; } }
@media (max-width: 700px) {
	.nkg-ty { padding: 16px; border-radius: 22px; }
	.nkg-ty .nkg-ty-card { flex-direction: column; }
	.nkg-ty .nkg-cover { width: auto; height: 150px; }
	.nkg-ty .nkg-body { padding: 22px 20px; }
	.nkg-ty .nkg-title { font-size: 23px; }
	.nkg-ty-wait { padding: 20px; }
}
.nkg-wrap .nkg-card.is-paid a.nkg-btn, .nkg-wrap .nkg-card.is-paid a.nkg-btn:hover, .nkg-wrap .nkg-card.is-paid a.nkg-btn:visited { color: #1B2437 !important; }
.nkg-wrap .nkg-ty-card.is-ready a.nkg-btn { color: #fff !important; }
