/* CV Engine — galeri template (carousel & grid). Mewarisi font halaman. */
.cvt {
	--cvt-ink: #0f172a;
	--cvt-muted: #64748b;
	--cvt-line: #e2e8f0;
	--cvt-brand: #1a56db;
	--cvt-card-w: 280px;
	position: relative;
	color: var(--cvt-ink);
}
.cvt *, .cvt *::before, .cvt *::after { box-sizing: border-box; }

.cvt-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 48px; }
.cvt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--cvt-line); border-radius: 999px; background: #fff; color: var(--cvt-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cvt-chip:hover { border-color: var(--cvt-brand); color: var(--cvt-brand); }
.cvt-chip.is-on { background: var(--cvt-ink); border-color: var(--cvt-ink); color: #fff; }
.cvt-chip-n { font-weight: 500; opacity: .6; }
.cvt-chip:focus-visible, .cvt-nav:focus-visible, .cvt-use:focus-visible, .cvt-swatch:focus-visible, .cvt-track:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }

.cvt-stage { position: relative; }
.cvt-track { display: grid; gap: 28px; }
.cvt--carousel .cvt-track { grid-auto-flow: column; grid-auto-columns: var(--cvt-card-w); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 6px 4px 18px; scrollbar-width: none; }
.cvt--carousel .cvt-track::-webkit-scrollbar { display: none; }
/* Grid halaman template: 3 kolom ala resume.io, jarak antarbaris lebih lega dari antarkolom. */
.cvt--grid .cvt-track { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 64px; max-width: 1180px; margin-inline: auto; }
.cvt-card { display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.cvt--grid .cvt-card { gap: 22px; }
.cvt-card[hidden] { display: none; }

.cvt-thumb { position: relative; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 10px; background: #f1f5f9; outline: 1px solid rgba(15, 23, 42, .06); outline-offset: -1px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 30px -18px rgba(15, 23, 42, .35); transition: transform .25s ease, box-shadow .25s ease; }
.cvt-card:hover .cvt-thumb { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 28px 48px -22px rgba(15, 23, 42, .45); }
.cvt-frame { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; background: #fff; pointer-events: none; transform-origin: 0 0; transform: scale(var(--cvt-scale, .3527)); }
.cvt-use { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px); display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; background: var(--cvt-brand); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .2s, transform .2s, background .15s; box-shadow: 0 10px 24px -10px rgba(26, 86, 219, .8); }
.cvt-use:hover { background: #1640b0; color: #fff; }
.cvt-card:hover .cvt-use, .cvt-use:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.cvt-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, .18)); opacity: 0; transition: opacity .2s; pointer-events: none; }
.cvt-card:hover .cvt-thumb::after { opacity: 1; }

.cvt-meta { display: grid; gap: 6px; padding: 0 4px; }
.cvt-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cvt-name { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--cvt-ink); }
.cvt-style { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; color: var(--cvt-muted); }
.cvt-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; line-height: 1; }
.cvt-desc { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: #475569; max-width: 46ch; }
.cvt-usage { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #15803d; }
.cvt-swatches { display: flex; gap: 6px; }
.cvt-swatch { width: 18px; height: 18px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--cvt-line); cursor: pointer; }
.cvt-swatch.is-on { box-shadow: 0 0 0 2px var(--c); }

.cvt-nav { position: absolute; top: calc(var(--cvt-card-w) * 1.414 / 2 - 4px); z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--cvt-line); border-radius: 50%; background: #fff; color: var(--cvt-ink); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .4); transition: opacity .2s, color .15s; }
.cvt-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cvt-nav:hover { color: var(--cvt-brand); }
.cvt-nav[disabled] { opacity: 0; pointer-events: none; }
.cvt-nav--prev { left: -22px; }
.cvt-nav--next { right: -22px; }
.cvt-empty { margin: 24px 0 0; text-align: center; color: var(--cvt-muted); }

@media (max-width: 1023px) {
	.cvt { --cvt-card-w: 240px; }
	.cvt--grid .cvt-track { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 48px; }
	.cvt-nav { display: none; }
}
@media (max-width: 767px) {
	.cvt { --cvt-card-w: 72vw; }
	.cvt-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding-inline: 18px; scrollbar-width: none; }
	.cvt-chip { flex: none; }
	.cvt-use { opacity: 1; transform: translate(-50%, 0); min-height: 42px; font-size: 14px; }
	.cvt--grid .cvt-track { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 36px; }
	.cvt-filters { margin-bottom: 28px; }
	.cvt-name { font-size: 16px; }
}
@media (max-width: 479px) {
	.cvt--grid .cvt-track { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.cvt-thumb, .cvt-use, .cvt-nav { transition: none; }
	.cvt-track { scroll-behavior: auto; }
}

/* Contoh CV per profesi */
.cvx { color: #0f172a; }
.cvx *, .cvx *::before, .cvx *::after { box-sizing: border-box; }
.cvx-search { position: relative; display: block; max-width: 560px; margin: 0 auto 36px; }
.cvx-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: #64748b; stroke-width: 2; stroke-linecap: round; }
.cvx-search-input { width: 100%; min-height: 54px; padding: 0 18px 0 48px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: #0f172a; box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .3); }
.cvx-search-input:focus { outline: 3px solid #93b4f5; outline-offset: 1px; border-color: #1a56db; }
.cvx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cvx-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.cvx-card:hover { border-color: #c7d7fb; box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .35); }
.cvx-card[hidden] { display: none; }
.cvx-thumb { display: block; border-radius: 8px; }
.cvx-body { display: grid; gap: 10px; min-width: 0; }
.cvx-tpl { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1a56db; }
.cvx-role { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.25; color: #0f172a; }
.cvx-list { display: grid; gap: 8px; margin: 2px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: #475569; }
.cvx-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #1a56db; }
.cvx-more[open] summary { margin-bottom: 8px; }
.cvx-cta { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 18px; border-radius: 8px; background: #1a56db; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.cvx-cta:hover { background: #1640b0; color: #fff; }
.cvx-cta:focus-visible { outline: 3px solid #93b4f5; outline-offset: 2px; }
.cvx-empty { margin: 24px 0 0; text-align: center; color: #64748b; }
@media (max-width: 1023px) { .cvx-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .cvx-card { grid-template-columns: minmax(0, 1fr); } .cvx-thumb { max-width: 220px; } }

.cvt-badge { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
