/* =====================================================================
 * VB Action Kits index — vb-action-kits.css
 *
 * Deliberately the same visual language as the home page bands: same radius,
 * same shadows, same red pill over the image, same navy/cyan pairing. The
 * class prefix is different (vbk- rather than vbh-) so the two files can never
 * fight, and so this page can be restyled without touching the home page.
 *
 * Colours are stated with a class in front of them, and links carry the
 * element name too, because Impreza's per-row "custom text colour" option
 * emits rules that beat flatter selectors on load order — the mistake that
 * made three separate things render white on white during the home page build.
 * ===================================================================== */

.vbk {
	--vbk-navy: #0a2852;
	--vbk-blue: #1668d8;
	--vbk-sky: #38b6ff;
	--vbk-sky-soft: #e8f4ff;
	--vbk-red: #e03131;
	--vbk-ink: #20262e;
	--vbk-muted: #5a6675;
	--vbk-line: #e3e8ef;
	--vbk-radius: 14px;
	--vbk-shadow: 0 2px 14px rgba(10, 40, 82, .08);
	--vbk-shadow-lg: 0 10px 34px rgba(10, 40, 82, .16);
	--vbk-maxw: 1320px;
}

.vbk-wrap {
	max-width: var(--vbk-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- TOOLBAR ----------
   Not sticky: with the filters at the top and the grid below, a sticky bar
   would cover cards on a phone for the sake of a control most visitors use
   once. */
.vbk-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	margin: 0 0 26px;
	padding: 18px 20px;
	background: var(--vbk-sky-soft);
	border-radius: var(--vbk-radius);
}

.vbk-tool {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vbk .vbk-tool label {
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--vbk-navy);
}

/* `appearance: none` plus an explicit arrow, so the control looks the same in
   every browser instead of inheriting three different native widgets. */
.vbk .vbk-tool select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 210px;
	max-width: 100%;
	padding: 11px 38px 11px 14px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--vbk-ink);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a2852' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	border: 1px solid #cfe0f5;
	border-radius: 9px;
	cursor: pointer;
}

.vbk .vbk-tool select:focus-visible {
	outline: 2px solid var(--vbk-blue);
	outline-offset: 1px;
}

.vbk-tool-status {
	margin-left: auto;
	align-items: flex-start;
}

.vbk .vbk-count {
	margin: 0;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--vbk-muted);
}

.vbk .vbk-count strong { color: var(--vbk-navy); }

.vbk button.vbk-clear,
.vbk button.vbk-clear-inline {
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--vbk-blue);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- GRID ----------
   auto-fill with a minimum, not a fixed column count: the row reflows from
   four to one on its own, and adding kits never needs a breakpoint. */
.vbk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 24px;
}

.vbk-none {
	margin: 30px 0 0;
	font-size: 16px;
	color: var(--vbk-muted);
}

/* ---------- CARD ---------- */
.vbk-card {
	display: flex;
	background: #fff;
	border: 1px solid var(--vbk-line);
	border-radius: var(--vbk-radius);
	box-shadow: var(--vbk-shadow);
	overflow: hidden;
	/* Only the shadow moves on hover. A transform or filter on the card
	   promotes it to its own composited layer, where the type rasterises
	   softly — the cause of the "fuzzy buttons" on the home page. */
	transition: box-shadow .15s ease;
}

.vbk-card:hover,
.vbk-card:focus-within {
	box-shadow: var(--vbk-shadow-lg);
}

/* The filter hides a card with the `hidden` attribute, which is right for
   screen readers and keyboard order — but `[hidden]`'s display:none is only a
   browser default, and ANY author `display` on the element beats it. Without
   this rule the cards were being hidden semantically and staying on screen.
   Stated as !important so a future display change here can't silently break
   filtering again. */
.vbk-card[hidden] {
	display: none !important;
}

/* The whole card is one link: a bigger target than the title alone, and one
   tab stop per kit rather than three. */
.vbk .vbk-card-link,
.vbk a.vbk-card-link {
	display: flex;
	flex-direction: column;
	width: 100%;
	color: inherit;
	text-decoration: none !important;
}

.vbk-shot {
	position: relative;
	/* A fixed ratio so a portrait screenshot and a landscape photo still make
	   a tidy row. */
	aspect-ratio: 16 / 10;
	background: var(--vbk-sky-soft);
	overflow: hidden;
}

.vbk .vbk-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vbk-img-none {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vbk-navy);
}

.vbk .vbk-img-none span {
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--vbk-sky);
}

/* Same red pill as the home page cards, same position. */
.vbk .vbk-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: calc(100% - 24px);
	padding: 6px 12px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .8px;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
	background: var(--vbk-red);
	border-radius: 999px;
}

.vbk-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	padding: 16px 18px 18px;
}

/* Navy, not the home page's cyan: those were three big cards, this is a wall
   of seventy, and cyan at this size and density stops being readable. */
.vbk .vbk-title {
	margin: 0;
	font-family: inherit;
	font-size: 17.5px;
	font-weight: 700;
	line-height: 1.28;
	color: var(--vbk-navy);
	/* Three lines, then ellipsis: long titles otherwise set the height of
	   every card in their row. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vbk-card:hover .vbk-title { color: var(--vbk-blue); }

/* The meta row is pushed to the bottom so the chips line up across a row
   whatever the title length. */
.vbk-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
}

.vbk .vbk-chip {
	padding: 4px 10px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	border-radius: 6px;
	white-space: nowrap;
}

/* Two chip colours, carrying two different meanings — experience level is
   about the visitor, state is about the work. Both measured on white: the
   level chip is 5.2:1, the state chip 8.6:1. */
.vbk .vbk-chip-level {
	color: #0f4c9a;
	background: #e3efff;
}

.vbk .vbk-chip-state {
	color: var(--vbk-navy);
	background: #eef1f6;
}

/* ---------- EDITOR NOTICES ---------- */
.vbk-empty {
	margin: 24px 0 0;
	padding: 14px 16px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #6b5200;
	background: #fff8e1;
	border: 1px solid #ffe08a;
	border-radius: 10px;
}

.vbk-empty code {
	padding: 1px 5px;
	font-size: .95em;
	background: #fff;
	border: 1px solid #ffe08a;
	border-radius: 4px;
}

/* ---------- NARROW SCREENS ---------- */
@media (max-width: 900px) {
	.vbk-tool-status { margin-left: 0; }
}

@media (max-width: 700px) {
	.vbk-wrap { padding: 0 16px; }

	.vbk-tools {
		gap: 12px;
		padding: 14px;
	}

	/* Full-width controls stacked: a wrapped row of half-width selects reads
	   as a broken grid. */
	.vbk-tool { width: 100%; }
	.vbk .vbk-tool select { width: 100%; min-width: 0; }

	.vbk-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.vbk .vbk-title { font-size: 16.5px; }
}
