/* =====================================================================================
   "Shelves by kind" catalogue (Brian picked mockup B, 2026-10-19;
   docs/designbook/designbook_shell/02-portfolio.md, last section)
   Layered over boredkiwi-level-select.css: loaded right after it from head.sub.php, and
   every selector keeps the `html body` prefix so it wins on specificity / order.
   Ported from the approved mock (scratchpad layout/b/mock-B.html). Not ported: the mock's
   tech-stack line on BuildHub (decision: no infrastructure details on the card).
   ===================================================================================== */
:root {
	--mb-mint: #2a9a78;
	--mb-mint-deep: #13604a;
	--mb-mint-tint: #dcf4ea;
	--mb-grey: #6c716b;
	--mb-grey-tint: #ebe9e3;
	--mb-plank: #85371f;
}
#ProductListWrap { overflow-x: clip; }

/* ---- Shelf jump bar + stage legend ------------------------------------------------ */
html body #ProductListWrap .mb-jumpbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 18px 32px; padding: 32px 0 64px;
}
html body #ProductListWrap .mb-jump { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
html body #ProductListWrap .mb-jump a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px 0 14px;
	border: 2.5px solid var(--ls-ink); border-radius: 999px; background: var(--ls-cream); color: var(--ls-ink);
	font-family: var(--ls-ui); font-size: 15px; font-weight: 600; text-decoration: none;
	box-shadow: 0 4px 0 var(--ls-ink); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
html body #ProductListWrap .mb-jump a b {
	display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box;
	border-radius: 999px; background: var(--ls-rust); color: var(--ls-cream); font-family: var(--ls-display);
	font-size: 13px; font-weight: 400;
}
@media (hover: hover) { html body #ProductListWrap .mb-jump a:hover { background: #fbeee0; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ls-ink); } }
html body #ProductListWrap .mb-jump a:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ls-ink); }
html body #ProductListWrap .mb-jump a:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 4px; }

html body #ProductListWrap .mb-legend {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0; padding: 0; list-style: none;
	font-family: var(--ls-ui); font-size: 14px; font-weight: 500; color: rgba(22, 32, 25, .8);
}
html body #ProductListWrap .mb-legend li { display: inline-flex; align-items: center; gap: 8px; }
html body #ProductListWrap .mb-legend .mb-dot { width: 18px; height: 18px; flex-shrink: 0; }
html body #ProductListWrap .mb-dot--live { background: var(--ls-gold); clip-path: polygon(50% 0%, 60.9% 9.4%, 75% 6.7%, 79.7% 20.3%, 93.3% 25%, 90.6% 39.1%, 100% 50%, 90.6% 60.9%, 93.3% 75%, 79.7% 79.7%, 75% 93.3%, 60.9% 90.6%, 50% 100%, 39.1% 90.6%, 25% 93.3%, 20.3% 79.7%, 6.7% 75%, 9.4% 60.9%, 0% 50%, 9.4% 39.1%, 6.7% 25%, 20.3% 20.3%, 25% 6.7%, 39.1% 9.4%); }
html body #ProductListWrap .mb-dot--testing { border: 2.5px solid var(--mb-mint); border-radius: 4px; background: var(--mb-mint-tint); box-sizing: border-box; transform: rotate(-8deg); }
html body #ProductListWrap .mb-dot--concept { border: 2.5px dashed var(--mb-grey); border-radius: 4px; background: var(--mb-grey-tint); box-sizing: border-box; }

/* ---- Sections: Spotlight has its own tab and no World number ---------------------- */
html body #ProductListWrap .mb-section { scroll-margin-top: 110px; position: relative; padding-bottom: 104px; }
html body #ProductListWrap .mb-section.mb-featured { counter-increment: none; }
html body #ProductListWrap .mb-featured .bk-section-heading::before { content: attr(data-tab); content: attr(data-tab) / ""; }
html body #ProductListWrap .mb-section .bk-section-heading { margin-bottom: 52px; }

/* The shelf plank every shelf's cards stand on (paper-cut strip, cream die-cut edge) */
html body #ProductListWrap .mb-section::after {
	content: ""; position: absolute; left: -12px; right: -12px; bottom: 64px; height: 16px;
	border-radius: 4px; background:
		repeating-linear-gradient(100deg, rgba(255, 253, 248, .06) 0 2px, transparent 2px 9px), var(--mb-plank);
	box-shadow: 0 -4px 0 var(--ls-cream), 0 7px 0 rgba(22, 32, 25, .18);
}

/* ---- Shelf grid ------------------------------------------------------------------ */
html body #ProductListWrap .mb-shelf-grid {
	display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 56px 32px; padding: 20px 0 0; counter-reset: bk-level;
}
html body #ProductListWrap .mb-shelf-grid.mb-cols-5 { --cols: 5; gap: 56px 26px; }

/* Card = sticker tile (live .item), made non-anchor so it can hold a secondary link;
   the title link is stretched over the whole tile. */
html body #ProductListWrap .mb-card .item {
	display: flex; flex-direction: column; padding: 28px 16px 18px; text-align: left;
}
html body #ProductListWrap .mb-card .title { margin: 0 0 8px; text-align: left; }
html body #ProductListWrap .mb-card .title a { color: inherit; text-decoration: none; }
html body #ProductListWrap .mb-card .title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
html body #ProductListWrap .mb-card:has(.title a:focus-visible) { outline: 3px solid var(--ls-rust); outline-offset: 12px; }
html body #ProductListWrap .mb-card .title a:focus-visible { outline: none; }
html body #ProductListWrap .mb-pitch {
	margin: 0 0 14px; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: rgba(22, 32, 25, .82);
}
html body #ProductListWrap .mb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
html body #ProductListWrap .mb-chip {
	display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 1px 10px 0; box-sizing: border-box;
	border: 1.5px solid rgba(22, 32, 25, .55); border-radius: 999px; background: var(--ls-cream); color: var(--ls-ink);
	font-family: var(--ls-ui); font-size: 12px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}
html body #ProductListWrap .mb-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
html body #ProductListWrap .mb-chip--pending { border-style: dashed; color: rgba(22, 32, 25, .7); }
html body #ProductListWrap .mb-chip--private { border-color: var(--ls-ink); background: var(--ls-ink); color: var(--ls-cream); }
html body #ProductListWrap .mb-soon {
	flex-basis: 100%; margin: 4px 0 0; font-family: var(--ls-ui); font-size: 13px; font-weight: 600;
	letter-spacing: .04em; color: var(--mb-mint-deep);
}
html body #ProductListWrap .mb-soon--live { color: var(--ls-rust-deep); }
html body #ProductListWrap .mb-soon--concept { color: var(--mb-grey); }

/* Secondary action (web player / website): chunky key, sits above the stretched link */
html body #ProductListWrap .mb-btn {
	position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; margin-top: 14px; padding: 0 16px; box-sizing: border-box;
	border: 2.5px solid var(--ls-ink); border-radius: 999px; background: var(--ls-cream); color: var(--ls-ink);
	font-family: var(--ls-ui); font-size: 14px; font-weight: 600; text-decoration: none;
	box-shadow: 0 4px 0 var(--ls-ink); transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
html body #ProductListWrap .mb-btn--primary { background: var(--ls-rust); color: var(--ls-cream); }
html body #ProductListWrap .mb-btn--mint { border-color: var(--mb-mint-deep); background: var(--mb-mint-tint); color: var(--mb-mint-deep); box-shadow: 0 4px 0 var(--mb-mint-deep); }
@media (hover: hover) { html body #ProductListWrap .mb-btn:hover { transform: translateY(-1px); filter: brightness(1.04); } }
html body #ProductListWrap .mb-btn:active { transform: translateY(4px); box-shadow: none; }
html body #ProductListWrap .mb-btn:focus-visible { outline: 3px solid var(--ls-rust); outline-offset: 4px; }
html body #ProductListWrap .mb-btn svg { width: 16px; height: 16px; }

/* ---- Stage stickers (corner) ------------------------------------------------------ */
html body #ProductListWrap .mb-card .status-badge.is-live { pointer-events: none; }
html body #ProductListWrap .mb-stamp {
	position: absolute; top: -14px; right: -12px; z-index: 4; pointer-events: none;
	display: grid; place-items: center; padding: 7px 11px 5px;
	border-radius: 6px; font-family: var(--ls-display); font-size: 14px; font-weight: 400;
	letter-spacing: .06em; line-height: 1; text-transform: uppercase; white-space: nowrap;
	transform: rotate(7deg);
	filter: drop-shadow(2px 3px 0 rgba(22, 32, 25, .25));
}
/* rubber-stamp look: solid border + inner dashed rule */
html body #ProductListWrap .mb-stamp::before {
	content: ""; position: absolute; inset: 3px; border-radius: 3px; border: 1.5px dashed currentColor; opacity: .55;
}
html body #ProductListWrap .mb-stamp--testing {
	background: var(--mb-mint-tint); color: var(--mb-mint-deep);
	box-shadow: 0 0 0 2.5px var(--mb-mint), 0 0 0 5.5px var(--ls-cream);
}
html body #ProductListWrap .mb-stamp--concept {
	background: var(--mb-grey-tint); color: var(--mb-grey); transform: rotate(-5deg);
	box-shadow: 0 0 0 2.5px var(--mb-grey), 0 0 0 5.5px var(--ls-cream);
}

/* Testing: icon in full colour (nearly done). Concept: faded + dashed tile. */
html body #ProductListWrap .mb-card.is-concept .item {
	background: #f1ece2;
	box-shadow: 0 0 0 5px var(--ls-cream), 0 0 0 6.5px rgba(22, 32, 25, .35), 8px 10px 0 6.5px rgba(120, 72, 40, .14);
}
html body #ProductListWrap .mb-card.is-concept .list-item-thumbnail .product-thumbnail { filter: grayscale(.85) opacity(.75); }
html body #ProductListWrap .mb-card.is-concept .title { color: #3c443d; }

/* Medallion colours follow the stage (rust = live, mint = testing, grey = concept) */
html body #ProductListWrap .mb-card.is-testing::before { background: var(--mb-mint-deep); }
html body #ProductListWrap .mb-card.is-concept::before { background: var(--mb-grey); }

/* ---- Spotlight (featured) row: two wide tiles --------------------------------------- */
html body #ProductListWrap .mb-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding: 16px 0 0; }
html body #ProductListWrap .mb-feature-grid > .item-link::before { content: none; }
html body #ProductListWrap .mb-feature .item {
	display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); grid-template-areas: "icon body";
	column-gap: 28px; align-items: center; padding: 28px 28px 26px; --ls-tilt: -.6deg;
}
html body #ProductListWrap .mb-feature:nth-child(2) .item { --ls-tilt: .7deg; }
html body #ProductListWrap .mb-feature .list-item-thumbnail { grid-area: icon; margin: 0; padding: 24px; }
html body #ProductListWrap .mb-feature-body { grid-area: body; display: flex; flex-direction: column; min-width: 0; }
html body #ProductListWrap .mb-kicker {
	align-self: flex-start; margin: 0 0 10px; padding: 4px 11px 3px; border-radius: 999px;
	background: var(--ls-rust-tint); color: var(--ls-rust-deep); font-family: var(--ls-ui);
	font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
}
html body #ProductListWrap .mb-feature .title { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 10px; }
html body #ProductListWrap .mb-feature .mb-pitch { font-size: 16px; }
html body #ProductListWrap .mb-feature .status-badge.is-live { width: 76px; height: 76px; top: -22px; right: -18px; font-size: 18px; }
html body #ProductListWrap .mb-store { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
html body #ProductListWrap .mb-store .mb-btn { margin-top: 0; }
html body #ProductListWrap .mb-store .mb-chip { min-height: 44px; padding: 0 14px; font-size: 13px; }

/* ---- Studio tools: BuildHub case-study tile (landscape screenshot) ------------------ */
html body #ProductListWrap .mb-case { grid-column: 1 / -1; }
html body #ProductListWrap .mb-case .item {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-rows: 1fr auto auto auto 1fr;
	grid-template-areas: "icon ." "icon title" "icon pitch" "icon meta" "icon .";
	column-gap: 36px; padding: 28px; --ls-tilt: -.4deg;
}
html body #ProductListWrap .mb-case .list-item-thumbnail { grid-area: icon; margin: 0; }
html body #ProductListWrap .mb-case .title { grid-area: title; font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 10px; }
html body #ProductListWrap .mb-case .mb-pitch { grid-area: pitch; font-size: 16px; }
html body #ProductListWrap .mb-case .mb-meta { grid-area: meta; }
html body #ProductListWrap .mb-case .list-item-thumbnail { aspect-ratio: 2560 / 1720; padding: 10px; }
html body #ProductListWrap .mb-case .list-item-thumbnail::after { display: none; }
html body #ProductListWrap .mb-case .list-item-thumbnail .product-thumbnail {
	width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; object-position: top left;
	border-radius: 8px; filter: none; box-shadow: 0 0 0 2px var(--ls-cream), 0 6px 10px rgba(120, 72, 40, .2);
}

/* ---- 970: 2-up shelves ----------------------------------------------------------- */
@media (max-width: 1200px) {
	html body #ProductListWrap .mb-shelf-grid.mb-cols-5 { --cols: 3; }
}
@media (max-width: 970px) {
	html body #ProductListWrap .mb-shelf-grid, html body #ProductListWrap .mb-shelf-grid.mb-cols-5 { --cols: 2; gap: 52px 28px; }
	html body #ProductListWrap .mb-feature-grid { grid-template-columns: 1fr; gap: 44px; }
	html body #ProductListWrap .mb-case { grid-column: 1 / -1; }
}

/* ---- Phone: shelves become a list of horizontal sticker rows ---------------------- */
@media (max-width: 640px) {
	html body #ProductListWrap .mb-jumpbar { padding: 20px 0 48px; gap: 18px; }
	html body #ProductListWrap .mb-jump { gap: 8px; }
	html body #ProductListWrap .mb-jump a { min-height: 44px; padding: 0 12px 0 10px; font-size: 14px; gap: 6px; }
	html body #ProductListWrap .mb-legend { font-size: 13px; gap: 8px 14px; }
	html body #ProductListWrap .mb-section { padding-bottom: 84px; }
	html body #ProductListWrap .mb-section::after { left: -6px; right: -6px; bottom: 48px; height: 13px; }
	html body #ProductListWrap .mb-section .bk-section-heading { margin-bottom: 40px; }

	html body #ProductListWrap .mb-shelf-grid, html body #ProductListWrap .mb-shelf-grid.mb-cols-5 { --cols: 1; gap: 40px; padding-top: 12px; }
	html body #ProductListWrap .mb-card .item {
		display: grid; grid-template-columns: 92px minmax(0, 1fr);
		grid-template-areas: "icon title" "icon pitch" "meta meta" "cta cta";
		column-gap: 14px; align-items: start; padding: 22px 14px 16px;
	}
	html body #ProductListWrap .mb-card .list-item-thumbnail { grid-area: icon; margin: 0 0 10px; padding: 10px; }
	html body #ProductListWrap .mb-card .title { grid-area: title; margin: 2px 64px 6px 0; font-size: 20px; }
	html body #ProductListWrap .mb-card .mb-pitch { grid-area: pitch; margin-bottom: 10px; font-size: 14px; }
	html body #ProductListWrap .mb-card .mb-meta { grid-area: meta; margin-top: 2px; }
	html body #ProductListWrap .mb-card .mb-btn { grid-area: cta; width: 100%; margin-top: 14px; }
	/* level medallion moves to the tile's left edge */
	html body #ProductListWrap .mb-shelf-grid > .item-link::before { left: 16px; transform: none; top: -16px; }
	html body #ProductListWrap .mb-card .status-badge.is-live { width: 54px; height: 54px; top: -16px; right: -6px; font-size: 12.5px; }
	html body #ProductListWrap .mb-stamp { top: -13px; right: -6px; font-size: 12.5px; padding: 6px 9px 4px; }

	html body #ProductListWrap .mb-feature-grid { gap: 40px; padding-top: 8px; }
	html body #ProductListWrap .mb-feature .item {
		grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "icon kick" "body body";
		column-gap: 16px; row-gap: 14px; padding: 22px 16px 18px;
	}
	html body #ProductListWrap .mb-feature .list-item-thumbnail { padding: 12px; }
	html body #ProductListWrap .mb-feature-body { display: contents; }
	html body #ProductListWrap .mb-feature .mb-kicker { grid-area: kick; align-self: end; justify-self: start; margin: 0; }
	html body #ProductListWrap .mb-feature .title { grid-area: auto / 1 / auto / -1; font-size: 30px; margin: 0; }
	html body #ProductListWrap .mb-feature .mb-pitch, html body #ProductListWrap .mb-feature .mb-store { grid-area: auto / 1 / auto / -1; margin: 0; }
	html body #ProductListWrap .mb-feature .mb-store .mb-btn { flex: 1 1 140px; }
	html body #ProductListWrap .mb-feature .status-badge.is-live { width: 64px; height: 64px; top: -18px; right: -6px; font-size: 15px; }

}
@media (max-width: 970px) {
	html body #ProductListWrap .mb-case .item {
		grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
		grid-template-areas: "icon" "title" "pitch" "meta"; padding: 26px 18px 18px;
	}
	html body #ProductListWrap .mb-case .list-item-thumbnail { margin-bottom: 16px; }
	html body #ProductListWrap .mb-case .title { margin-right: 0; font-size: 28px; }
	html body #ProductListWrap .mb-case .mb-pitch { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
	html body #ProductListWrap .mb-jump a, html body #ProductListWrap .mb-btn { transition: none; }
}

/* Korean: "운영 중" is wider than "LIVE" — keep it inside the bigger Spotlight burst too. */
html:lang(ko) body #ProductListWrap .mb-feature .status-badge.is-live { font-size: 13px; }
html:lang(ko) body #ProductListWrap .mb-stamp { letter-spacing: 0; }

/* Detail page / modal status pill for the new stages */
html body .bk-project-detail-status.is-testing { border-color: var(--mb-mint-deep); background: var(--mb-mint-tint); color: var(--mb-mint-deep); }
html body .bk-project-detail-status.is-concept { border-color: var(--mb-grey); background: var(--mb-grey-tint); color: var(--mb-grey); }
