/* BBM Hasil Kerja: arsip per kebutuhan + halaman proyek.
   Memakai token --bbm-* dan komponen .bbm-* dari #bbm-css situs. */

.hk { --hk-gap: 16px; --hk-photo-bg: #E9E6E1; flex: 1 1 100%; width: 100%; min-width: 0; }
.hk ::selection { background: rgba(255, 136, 0, .28); color: var(--bbm-ink); }
.hk a:focus-visible,
.hk button:focus-visible,
.hk [tabindex]:focus-visible { outline: 3px solid var(--bbm-orange); outline-offset: 3px; }
.hk ul[role="list"] { list-style: none; margin: 0; padding: 0; }

/* ---------- Hero ---------- */
.hk-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hk-hero .bbm-phero-sub { font-size: 1.125rem; }
.hk-hero-action { padding-bottom: 4px; }

.hk-jump { margin-top: 32px; }
.hk-jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-jump a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: 999px;
	background: var(--bbm-white); border: 1px solid var(--bbm-line);
	font-weight: 600; font-size: .95rem; color: var(--bbm-ink); text-decoration: none;
	transition: border-color .2s, background .2s, color .2s;
}
.hk-jump a span { color: var(--bbm-muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.hk-jump a:hover { border-color: var(--bbm-ink); }

.hk-preview-note {
	margin: 24px auto 0 !important; padding: 12px 16px; border: 1px dashed var(--bbm-orange);
	border-radius: var(--bbm-radius-sm); color: var(--bbm-orange-ink); font-weight: 500; font-size: .95rem;
}

/* ---------- Baris kebutuhan ---------- */
.hk-rows { padding: 40px 20px 72px; }
.hk-row {
	display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px;
	padding: 48px 0; border-top: 1px solid var(--bbm-line); scroll-margin-top: 110px;
}
.hk-rows .bbm-wrap > .hk-row:first-child { border-top: 0; }
.hk-row-head { display: flex; flex-direction: column; }
.hk .hk-row-title { font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.hk .hk-row-count { margin-top: 10px; font-weight: 600; color: var(--bbm-orange-ink); font-variant-numeric: tabular-nums; }
.hk .hk-row-desc { margin-top: 12px; max-width: 34ch; line-height: 1.6; color: var(--bbm-ink-2); }

.hk-strip-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
.hk-strip-nav[hidden] { display: none; }
.hk-strip-btn {
	display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
	border-radius: 50%; border: 1px solid var(--bbm-line); background: var(--bbm-white); color: var(--bbm-ink);
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.hk-strip-btn:hover:not(:disabled) { background: var(--bbm-ink); border-color: var(--bbm-ink); color: #fff; }
.hk-strip-btn:disabled { opacity: .35; cursor: default; }

.hk-strip-wrap { min-width: 0; }
.hk .hk-strip {
	display: grid; grid-auto-flow: column; grid-auto-columns: 268px; gap: var(--hk-gap);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scrollbar-width: none; padding: 4px 2px 6px;
}
.hk-strip::-webkit-scrollbar { display: none; }
.hk-card-item { scroll-snap-align: start; }

.hk-card {
	display: flex; flex-direction: column; height: 100%;
	background: var(--bbm-card); border: 1px solid var(--bbm-line); border-radius: var(--bbm-radius);
	overflow: hidden; text-decoration: none !important; color: inherit;
	transition: border-color .25s, box-shadow .25s, transform .25s;
}
.hk-card:hover { border-color: #D6D1CA; box-shadow: var(--bbm-shadow); transform: translateY(-2px); }
.hk-card-media { position: relative; display: block; aspect-ratio: 1; background: var(--hk-photo-bg); overflow: hidden; }
.hk .hk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.hk-card:hover .hk-card-media img { transform: scale(1.04); }
.hk-badge {
	position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px;
	background: var(--bbm-ink); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.hk-card-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.hk-card-title { font-weight: 600; font-size: 1.06rem; line-height: 1.3; color: var(--bbm-ink); }
.hk-card-meta { font-size: .88rem; line-height: 1.45; color: var(--bbm-muted); }

.hk-strip-progress { height: 2px; margin-top: 18px; background: var(--bbm-line); border-radius: 2px; overflow: hidden; }
.hk-strip-progress[hidden] { display: none; }
.hk-strip-progress span {
	display: block; height: 100%; width: var(--hk-size, 100%); background: var(--bbm-orange);
	transform: translateX(var(--hk-pos, 0)); transition: transform .15s linear;
}

.hk-empty {
	max-width: 640px; padding: 40px; border: 1px solid var(--bbm-line); border-radius: var(--bbm-radius);
	background: var(--bbm-card);
}
.hk .hk-empty p { margin-top: 12px; line-height: 1.65; }

/* ---------- Halaman proyek ---------- */
.hk-hero-single h1 { max-width: 22ch !important; text-wrap: balance; }
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.hk-chips li, .hk-chip-link {
	padding: 7px 14px; border-radius: 999px; background: var(--bbm-white); border: 1px solid var(--bbm-line);
	font-size: .9rem; font-weight: 600; color: var(--bbm-ink-2);
}

.hk-chips li:has(> .hk-chip-link) { padding: 0; border: 0; background: none; }
.hk-chip-link { display: inline-block; color: var(--bbm-ink) !important; text-decoration: none; transition: border-color .2s; }
.hk-chip-link:hover { border-color: var(--bbm-ink); }

.hk-stage-section { padding: 48px 20px 8px; }
.hk-stage-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.hk-slides {
	display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
	overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	border-radius: var(--bbm-radius); background: var(--hk-photo-bg); scrollbar-width: none;
}
.hk-slides::-webkit-scrollbar { display: none; }
.hk .hk-slide { margin: 0; aspect-ratio: 1; scroll-snap-align: start; scroll-snap-stop: always; }
.hk .hk-slide img { width: 100%; height: 100%; object-fit: cover; }

.hk-thumbs { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.hk-thumb {
	width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
	border: 2px solid transparent; background: var(--hk-photo-bg); opacity: .62;
	transition: opacity .2s, border-color .2s;
}
.hk .hk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hk-thumb:hover,
.hk-thumb:focus-visible { opacity: 1; }
.hk-thumb[aria-current="true"] { opacity: 1; border-color: var(--bbm-orange); }
.hk .hk-counter { margin-left: auto; font-size: .92rem; font-weight: 500; color: var(--bbm-muted); font-variant-numeric: tabular-nums; }

.hk-panel {
	position: sticky; top: 112px; padding: 28px; border-radius: var(--bbm-radius);
	background: var(--bbm-card); border: 1px solid var(--bbm-line);
}
.hk .hk-panel-lead { margin-bottom: 20px; font-size: 1.08rem; line-height: 1.6; color: var(--bbm-ink); }
.hk-data { margin: 0; }
.hk-data-row { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--bbm-line); }
.hk-data dt { font-size: .9rem; font-weight: 500; color: var(--bbm-muted); }
.hk-data dd { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.45; color: var(--bbm-ink); font-variant-numeric: tabular-nums; }

/* Fakta yang belum dijawab bengkel: hanya terlihat di draft, tidak boleh terbit. */
.hk .hk-panel-lead.is-pending,
.hk .hk-data-row.is-pending dd,
.hk .hk-story p.is-pending { color: var(--bbm-ink); font-weight: 500; }
.hk .hk-panel-lead.is-pending > span,
.hk .hk-data-row.is-pending dd,
.hk .hk-story p.is-pending { background: #FFF1E0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hk .hk-data-row.is-pending dd,
.hk .hk-story p.is-pending { padding: 2px 8px; border-radius: 6px; justify-self: start; }
.hk .hk-panel-lead.is-pending { background: #FFF1E0; padding: 10px 12px; border-radius: 10px; }

.hk-panel-actions { display: grid; gap: 14px; margin-top: 24px; }
.hk-panel-actions .bbm-btn { width: 100%; }
.hk-panel-link {
	justify-self: center; font-weight: 600; font-size: .95rem; color: var(--bbm-orange-ink) !important;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.hk-panel-link:hover { text-decoration-thickness: 2px; }

.hk-story-section { padding: 56px 20px 8px; }
.hk-story { max-width: 68ch; }
.hk .hk-story h2 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); line-height: 1.2; margin: 44px 0 12px; }
.hk .hk-story h2:first-child { margin-top: 0; }
.hk .hk-story p { margin: 0 0 1em; font-size: 1.06rem; line-height: 1.75; }
.hk .hk-story a { color: var(--bbm-orange-ink); font-weight: 600; text-underline-offset: 3px; }

.hk-related { padding-top: 32px; padding-bottom: 32px; }
.hk-related .hk-row { border-top: 1px solid var(--bbm-line) !important; }
.hk-cta { padding-top: 40px; }
.hk-story-section + .hk-cta { padding-top: 80px; }
.hk-rows { overflow-x: clip; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
	.hk-stage-grid { grid-template-columns: 1fr; gap: 28px; }
	.hk-panel { position: static; }
	.hk-row { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
	.hk .hk-row-desc { max-width: 52ch; }
	.hk-strip-nav { display: none !important; }
}

@media (max-width: 640px) {
	.hk-hero-grid { grid-template-columns: 1fr; gap: 20px; }
	.hk-hero-action .bbm-btn { width: 100%; }
	.hk-jump { margin-inline: -20px; }
	.hk .hk-preview-note { width: calc(100% - 40px); }
	.hk-jump ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 4px; scrollbar-width: none; }
	.hk-jump ul::-webkit-scrollbar { display: none; }
	.hk-jump a { white-space: nowrap; }
	.hk-rows { padding: 16px 20px 40px; }
	.hk .hk-strip { grid-auto-columns: 74%; width: calc(100% + 40px); margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
	.hk-stage-section { padding: 24px 20px 0; }
	.hk-stage-section .bbm-wrap { padding: 0; }
	.hk-thumb { width: 60px; height: 60px; }
	.hk-panel { padding: 22px 20px; }
	.hk-data-row { grid-template-columns: 108px 1fr; }
	.hk-story-section { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.hk-card, .hk .hk-card-media img, .hk-strip-progress span { transition: none; }
	.hk-card:hover { transform: none; }
	.hk-card:hover .hk-card-media img { transform: none; }
}
