/*
 * PAK Filter Search — front-end styles.
 *
 * Everything is scoped under .pakf and sets its own values rather than
 * inheriting them, so a theme's global rules for table/input/button can't
 * reshape the widget.
 */

.pakf {
	/* Overridden per-site from the accent colour in Settings → Filter Search. */
	--pakf-accent: #b7b747;
	--pakf-accent-ink: #231f20;
	--pakf-accent-text: #6f6f2b;
	--pakf-accent-soft: #f6f6e9;

	--pakf-ink: #231f20;
	--pakf-muted: #4a463d;
	/* The site's heading face; body text inherits from the theme. */
	--pakf-heading-font: Roboto, "Helvetica Neue", Arial, sans-serif;
	--pakf-faint: #8d8b86;
	--pakf-line: #e4e2dc;
	--pakf-line-2: #d5d2c9;
	--pakf-surface: #ffffff;
	--pakf-surface-2: #f8f7f3;
	--pakf-surface-3: #f0efe8;
	--pakf-chip-bg: #f4f2ec;
	--pakf-radius: 0;
	--pakf-shadow: 0 1px 2px rgba(35, 31, 32, .05), 0 8px 24px -14px rgba(35, 31, 32, .22);
	/* The theme's own faces; numerals stay aligned via tabular-nums. */
	--pakf-mono: inherit;

	box-sizing: border-box;
	color: var(--pakf-ink);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.pakf *,
.pakf *::before,
.pakf *::after {
	box-sizing: border-box;
}

.pakf p {
	margin: 0 0 12px;
}

.pakf button {
	font-family: inherit;
	line-height: 1.4;
}

.pakf-missing {
	padding: 12px 14px;
	border: 1px solid #e0b4b4;
	background: #fdf3f3;
	border-radius: var(--pakf-radius);
	color: #7a2a2a;
}

/* ---------- search field (shared) ---------- */

.pakf-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0;
	background: var(--pakf-surface);
	border: 1.5px solid var(--pakf-line-2);
	border-radius: var(--pakf-radius);
	box-shadow: var(--pakf-shadow);
	transition: border-color .16s, box-shadow .16s;
}

.pakf-field:focus-within {
	border-color: var(--pakf-accent);
	box-shadow: var(--pakf-shadow), 0 0 0 4px var(--pakf-accent-soft);
}

.pakf-field__ic {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	margin-left: 16px;
	color: var(--pakf-faint);
}

.pakf-input.pakf-input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--pakf-ink);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.4;
	padding: 18px 14px;
	outline: none;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}

.pakf-input::placeholder {
	color: var(--pakf-faint);
	opacity: 1;
}

.pakf-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.pakf-clear {
	display: none;
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--pakf-faint);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0 14px;
}

.pakf-clear:hover {
	color: var(--pakf-ink);
}

.pakf-field.is-filled .pakf-clear {
	display: block;
}

.pakf-submit.pakf-submit {
	flex: 0 0 auto;
	margin: 6px;
	border: 0;
	border-radius: var(--pakf-radius);
	background: var(--pakf-accent);
	color: var(--pakf-accent-ink);
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 14px 28px;
	text-transform: none;
	transition: filter .15s;
}

.pakf-submit:hover {
	filter: brightness(1.08);
}

.pakf-examples {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
	font-size: 12.5px;
	color: inherit;
	opacity: .7;
}

.pakf-examples > span {
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 11px;
}

.pakf-chip.pakf-chip {
	border: 1px solid var(--pakf-line-2);
	background: var(--pakf-surface-2);
	color: var(--pakf-muted);
	font-family: var(--pakf-mono);
	font-size: 12px;
	padding: 5px 10px;
	border-radius: var(--pakf-radius);
	cursor: pointer;
	transition: .14s;
	text-transform: none;
	letter-spacing: 0;
}

.pakf-chip:hover {
	border-color: var(--pakf-accent);
	color: var(--pakf-accent-text);
	background: var(--pakf-surface);
}

/*
 * theme="dark": the block sits on one of the site's near-black bands, so text
 * that inherits its colour goes light. The field itself stays white.
 */
.pakf-on-dark {
	color: #f4f2ec;
}

.pakf-on-dark .pakf-examples > span,
.pakf.pakf-on-dark .pakf-home__count {
	color: #f4f2ec;
}

.pakf-on-dark .pakf-chip {
	background: rgba(244, 242, 236, .08);
	border-color: rgba(244, 242, 236, .28);
	color: #e8e5db;
}

.pakf-on-dark .pakf-chip:hover {
	background: var(--pakf-accent);
	border-color: var(--pakf-accent);
	color: var(--pakf-accent-ink);
}

/*
 * card="yes": the block stands on its own surface rather than bleeding into
 * whatever band sits above it. An olive edge ties it to the brand.
 */
.pakf-card {
	width: 100%;
	background: var(--pakf-surface);
	border: 1px solid var(--pakf-line);
	border-top: 3px solid var(--pakf-accent);
	box-shadow: 0 2px 4px rgba(35, 31, 32, .04), 0 24px 48px -28px rgba(35, 31, 32, .45);
	padding: clamp(26px, 3.4vw, 40px) clamp(18px, 3.4vw, 44px) clamp(24px, 3vw, 34px);
}

/* Inside the card the surface is known, so colours stop inheriting. */
.pakf .pakf-card .pakf-home__title,
.pakf-card .pakf-home__title {
	color: var(--pakf-ink);
}

.pakf .pakf-card .pakf-home__sub {
	color: var(--pakf-muted);
	opacity: 1;
}

.pakf .pakf-card .pakf-home__count,
.pakf .pakf-card .pakf-examples {
	color: var(--pakf-faint);
	opacity: 1;
}

.pakf-card .pakf-field {
	box-shadow: none;
	border-color: var(--pakf-line-2);
}

.pakf-card .pakf-field:focus-within {
	border-color: var(--pakf-accent);
	box-shadow: 0 0 0 4px var(--pakf-accent-soft);
}

/* The card's own divider between the field and the helper row. */
.pakf-card .pakf-examples {
	margin-top: 18px;
}

.pakf .pakf-card .pakf-home__count {
	margin-top: 8px;
}

/* ---------- home widget ---------- */

.pakf-home {
	position: relative;
	max-width: 880px;
}

/*
 * "Cross-referenced to" strip. Brands render as logos where one has been
 * uploaded (slug brand-<name>) and as uniform badges until then, so the row
 * keeps its shape either way.
 */
.pakf-brands {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-top: 24px;
}

.pakf-brands__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--pakf-faint);
}

.pakf-brands__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pakf-brands__item {
	display: flex;
	align-items: center;
	margin: 0;
}

.pakf-brands__logo {
	display: block;
	height: 30px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .62;
	transition: filter .18s, opacity .18s;
}

.pakf-brands__item:hover .pakf-brands__logo {
	filter: none;
	opacity: 1;
}

.pakf-brands__badge {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--pakf-line-2);
	background: var(--pakf-surface);
	color: var(--pakf-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pakf-align-center .pakf-brands {
	justify-content: center;
}

/*
 * Standalone strip: the label sits above the row, and until logos are
 * uploaded the brands read as plain names rather than boxed badges.
 */
.pakf-brandblock .pakf-brands {
	flex-direction: column;
	gap: 16px;
	margin-top: 0;
}

.pakf-brandblock .pakf-brands__list {
	gap: 16px 34px;
}

.pakf-brandblock .pakf-brands__badge {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: clamp(16px, 1.6vw, 20px);
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.pakf-brandblock .pakf-brands__logo {
	height: 38px;
	max-width: 160px;
}

.pakf .pakf-brands__note {
	max-width: 74ch;
	margin: 16px auto 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: inherit;
	opacity: .58;
}

.pakf-align-left .pakf-brands__note {
	margin-left: 0;
}

.pakf-on-dark .pakf-brands__badge {
	background: rgba(244, 242, 236, .06);
	border-color: rgba(244, 242, 236, .22);
	color: #e8e5db;
}

.pakf-on-dark .pakf-brands__logo {
	filter: grayscale(1) brightness(2.4);
}

.pakf-align-center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.pakf-align-center .pakf-examples,
.pakf-align-center .pakf-home__count {
	justify-content: center;
}

.pakf-align-center .pakf-field {
	text-align: left;
}

/* Colours inherit: the box sits on the dark hero as readily as on white. */
.pakf .pakf-home__title {
	margin: 0 0 8px;
	font-family: var(--pakf-heading-font);
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	color: inherit;
}

.pakf .pakf-home__sub {
	margin: 0 0 18px;
	color: inherit;
	opacity: .78;
	font-size: 16px;
	line-height: 1.7;
}

/* Small olive kicker above the heading, as the site's own sections use. */
.pakf .pakf-eyebrow {
	margin: 0 0 10px;
	font-family: var(--pakf-heading-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .23em;
	text-transform: uppercase;
	color: var(--pakf-accent-text);
}

.pakf-home__form {
	position: relative;
	margin: 0;
}

.pakf .pakf-home__count {
	display: flex;
	gap: 6px;
	margin: 12px 0 0;
	font-size: 12px;
	color: inherit;
	opacity: .6;
}

/* Credibility row: the catalogue's size, stated plainly. */
.pakf .pakf-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 18px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--pakf-line);
}

.pakf-stat dt {
	font-family: var(--pakf-heading-font);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--pakf-accent-text);
	font-variant-numeric: tabular-nums;
}

.pakf-stat dd {
	margin: 4px 0 0;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pakf-faint);
}

.pakf-browselink {
	display: inline-block;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--pakf-accent-text);
	text-decoration: none;
	border-bottom: 2px solid var(--pakf-accent);
	padding-bottom: 2px;
}

.pakf-browselink:hover {
	color: var(--pakf-ink);
	border-bottom-color: var(--pakf-ink);
}

.pakf-on-dark .pakf-stat dt {
	color: var(--pakf-accent);
}

.pakf-on-dark .pakf-stat dd,
.pakf-on-dark .pakf-browselink {
	color: #e8e5db;
}

@media (max-width: 480px) {
	.pakf .pakf-stats {
		grid-template-columns: 1fr;
		gap: 12px;
		text-align: left;
	}
}

/* suggestions */

.pakf-sugg {
	position: absolute;
	z-index: 60;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: 60vh;
	overflow-y: auto;
	background: var(--pakf-surface);
	border: 1px solid var(--pakf-line);
	border-radius: var(--pakf-radius);
	box-shadow: 0 12px 32px -10px rgba(20, 26, 40, .28);
	text-align: left;
}

.pakf-sugg[hidden] {
	display: none;
}

.pakf-sugg__item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 14px;
	border: 0;
	border-bottom: 1px solid var(--pakf-line);
	background: transparent;
	cursor: pointer;
	text-align: left;
}

.pakf-sugg__item:last-child {
	border-bottom: 0;
}

.pakf-sugg__item:hover,
.pakf-sugg__item.is-active {
	background: var(--pakf-surface-2);
}

.pakf-sugg__main {
	min-width: 0;
	flex: 1 1 auto;
}

.pakf-sugg__part {
	display: block;
	font-family: var(--pakf-mono);
	font-weight: 700;
	font-size: 14px;
	color: var(--pakf-accent-text);
}

.pakf-sugg__why {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--pakf-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pakf-sugg__why b {
	color: var(--pakf-ink);
	font-weight: 600;
}

.pakf-sugg__thumb {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	object-fit: contain;
	background: var(--pakf-surface-2);
	border: 1px solid var(--pakf-line);
	border-radius: var(--pakf-radius);
}

.pakf-sugg__all {
	display: block;
	width: 100%;
	padding: 11px 14px;
	border: 0;
	border-top: 1px solid var(--pakf-line);
	background: var(--pakf-surface-2);
	color: var(--pakf-accent-text);
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
}

.pakf-sugg__all:hover {
	background: var(--pakf-accent-soft);
}

.pakf-sugg__msg {
	padding: 16px 14px;
	color: var(--pakf-muted);
	font-size: 13.5px;
}

/* ---------- catalogue ---------- */

.pakf-catalog {
	width: 100%;
}

.pakf-hero__title {
	margin: 0 0 8px;
	font-family: var(--pakf-heading-font);
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	color: var(--pakf-ink);
}

.pakf .pakf-hero__sub {
	margin: 0 0 18px;
	color: var(--pakf-muted);
	max-width: 68ch;
	font-size: 16px;
	line-height: 1.7;
}

.pakf-controls {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.pakf-type.pakf-type {
	-webkit-appearance: none;
	appearance: none;
	width: auto;
	max-width: 100%;
	margin: 0;
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--pakf-ink);
	background-color: var(--pakf-surface);
	border: 1px solid var(--pakf-line-2);
	border-radius: var(--pakf-radius);
	padding: 10px 34px 10px 12px;
	cursor: pointer;
	height: auto;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b94a3' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right 11px center;
}

.pakf-count {
	margin-left: auto;
	font-size: 13px;
	color: var(--pakf-muted);
	font-variant-numeric: tabular-nums;
}

.pakf-count b {
	color: var(--pakf-ink);
	font-weight: 700;
}

.pakf-results {
	margin-top: 22px;
}

.pakf-tablewrap {
	border: 1px solid var(--pakf-line);
	border-radius: var(--pakf-radius);
	background: var(--pakf-surface);
	box-shadow: var(--pakf-shadow);
}

.pakf-table.pakf-table {
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	width: 100%;
	min-width: 720px;
	margin: 0;
	font-size: 14px;
	background: transparent;
}

.pakf-table th,
.pakf-table td {
	border: 0;
	background: transparent;
}

.pakf-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	background: var(--pakf-accent);
	color: var(--pakf-accent-ink);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--pakf-line);
	white-space: nowrap;
}

.pakf-table thead th.pakf-num {
	text-align: right;
}

.pakf-table tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--pakf-line);
	vertical-align: top;
}

.pakf-row {
	cursor: pointer;
	transition: background .12s;
}

.pakf-row:hover td {
	background: var(--pakf-surface-2);
}

.pakf-row.is-open td {
	background: var(--pakf-surface-3);
}

.pakf-row:focus-visible {
	outline: 2px solid var(--pakf-accent);
	outline-offset: -2px;
}

.pakf-part {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--pakf-mono);
	font-weight: 700;
	color: var(--pakf-accent-text);
	font-size: 14px;
	white-space: nowrap;
}

.pakf-caret {
	flex: 0 0 auto;
	color: var(--pakf-faint);
	transition: transform .18s;
}

.pakf-row.is-open .pakf-caret {
	transform: rotate(90deg);
	color: var(--pakf-accent-text);
}

.pakf-why {
	display: block;
	margin-top: 4px;
	font-family: var(--pakf-mono);
	font-size: 11px;
	color: var(--pakf-muted);
	white-space: nowrap;
}

.pakf-why b {
	color: var(--pakf-ink);
	background: var(--pakf-accent-soft);
	padding: 0 3px;
	border-radius: var(--pakf-radius);
}

.pakf-typechip {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--pakf-muted);
	background: var(--pakf-chip-bg);
	border: 1px solid var(--pakf-line-2);
	padding: 3px 9px;
	border-radius: var(--pakf-radius);
	white-space: nowrap;
}

.pakf-dim {
	font-family: var(--pakf-mono);
	font-size: 13px;
	color: var(--pakf-ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.pakf-dim.is-none {
	color: var(--pakf-faint);
}

.pakf-table td.pakf-num {
	text-align: right;
	font-family: var(--pakf-mono);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--pakf-muted);
}

.pakf-table td.pakf-num b {
	color: var(--pakf-ink);
}

.pakf mark {
	background: var(--pakf-accent-soft);
	color: var(--pakf-accent-text);
	padding: 0 2px;
	border-radius: var(--pakf-radius);
	font-weight: 600;
}

/* detail panel */

.pakf-detail > td {
	padding: 0 !important;
	border-bottom: 1px solid var(--pakf-line);
	background: var(--pakf-surface-2) !important;
}

.pakf-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	padding: 18px 18px 22px;
}

/*
 * Narrow screens: the results table scrolls sideways, but the open panel must
 * stay readable, so it sticks to the left edge at the width of what's visible
 * (measured into --pakf-panel-w by the script).
 */
@media (min-width: 761px) and (max-width: 899px) {
	.pakf-tablewrap {
		overflow-x: auto;
	}

	.pakf-panel {
		position: sticky;
		left: 0;
		width: var(--pakf-panel-w, 100%);
		max-width: 100%;
	}
}

@media (min-width: 900px) {
	.pakf-panel.has-image {
		grid-template-columns: 200px 1.1fr 1fr;
	}

	.pakf-panel:not(.has-image) {
		grid-template-columns: 1.15fr 1fr;
	}
}

.pakf-panel h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pakf-muted);
	font-weight: 700;
}

.pakf-panel h4 em {
	font-style: normal;
	color: var(--pakf-faint);
	font-weight: 600;
	font-family: var(--pakf-mono);
	letter-spacing: 0;
}

.pakf-photo {
	display: block;
	width: 100%;
	max-width: 200px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--pakf-surface);
	border: 1px solid var(--pakf-line);
	border-radius: var(--pakf-radius);
	padding: 8px;
}

.pakf-cta {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 16px;
	border-radius: var(--pakf-radius);
	background: var(--pakf-accent);
	color: var(--pakf-accent-ink) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.pakf-cta:hover {
	filter: brightness(1.06);
	color: var(--pakf-accent-ink);
}

.pakf-xgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px;
}

.pakf-xr {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12.5px;
	padding: 6px 10px;
	background: var(--pakf-surface);
	border: 1px solid var(--pakf-line);
	border-radius: var(--pakf-radius);
}

.pakf-xr__b {
	color: var(--pakf-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pakf-xr__o {
	font-family: var(--pakf-mono);
	color: var(--pakf-ink);
	font-weight: 600;
	white-space: nowrap;
}

.pakf-xr.is-hit {
	border-color: var(--pakf-accent);
	background: var(--pakf-accent-soft);
}

.pakf-xr.is-hit .pakf-xr__o {
	color: var(--pakf-accent-text);
}

.pakf-note {
	margin-top: 10px;
	font-size: 12px;
	color: var(--pakf-faint);
}

.pakf-apps {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 460px;
	overflow-y: auto;
}

.pakf-mk__name {
	font-size: 13px;
	font-weight: 700;
	color: var(--pakf-ink);
}

.pakf-mk__mods {
	margin-top: 2px;
	color: var(--pakf-muted);
	font-size: 12.5px;
	line-height: 1.55;
}

/* ---------- browse index (shown before a search) ---------- */

.pakf-browse__lead {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pakf-faint);
	text-align: center;
}

.pakf-browse__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
}

.pakf-typecard {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--pakf-line-2);
	border-left: 3px solid var(--pakf-accent);
	border-radius: var(--pakf-radius);
	background: var(--pakf-surface);
	cursor: pointer;
	text-align: left;
	transition: border-color .14s, box-shadow .14s, transform .14s;
}

.pakf-typecard:hover {
	border-color: var(--pakf-accent);
	box-shadow: 0 10px 24px -18px rgba(35, 31, 32, .5);
	transform: translateY(-1px);
}

.pakf-typecard__name {
	font-family: var(--pakf-heading-font);
	font-size: 16px;
	font-weight: 700;
	color: var(--pakf-ink);
}

.pakf-typecard__count {
	font-size: 12.5px;
	color: var(--pakf-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- result photos ---------- */

.pakf-col-thumb {
	width: 64px;
}

.pakf-cell-thumb {
	width: 64px;
}

.pakf-thumb {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
	background: var(--pakf-surface-2);
	border: 1px solid var(--pakf-line);
}

.pakf-thumb.is-empty {
	background: repeating-linear-gradient(
		-45deg,
		var(--pakf-surface-2),
		var(--pakf-surface-2) 4px,
		var(--pakf-surface) 4px,
		var(--pakf-surface) 8px
	);
}

.pakf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* states */

.pakf-prompt,
.pakf-empty,
.pakf-loading {
	padding: 52px 20px;
	text-align: center;
	color: var(--pakf-muted);
}

.pakf-prompt .pakf-big,
.pakf-empty .pakf-big {
	margin-bottom: 8px;
	font-size: 17px;
	color: var(--pakf-ink);
	font-weight: 680;
	letter-spacing: -.01em;
}

.pakf-prompt .pakf-sub {
	max-width: 46ch;
	margin: 0 auto;
	font-size: 14px;
}

.pakf-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
}

.pakf-page {
	min-width: 40px;
	padding: 10px 12px;
	border: 1px solid var(--pakf-line-2);
	border-radius: var(--pakf-radius);
	background: var(--pakf-surface);
	color: var(--pakf-ink);
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transition: border-color .14s, background .14s, color .14s;
}

.pakf-page:hover {
	border-color: var(--pakf-accent);
	color: var(--pakf-accent-text);
}

.pakf-page.is-current {
	background: var(--pakf-accent);
	border-color: var(--pakf-accent);
	color: var(--pakf-accent-ink);
	cursor: default;
}

.pakf-page.is-disabled {
	opacity: .38;
	cursor: default;
}

.pakf-page.is-disabled:hover {
	border-color: var(--pakf-line-2);
	color: var(--pakf-ink);
}

.pakf-page__gap {
	padding: 0 2px;
	color: var(--pakf-faint);
}

.pakf-more {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	border: 1px solid var(--pakf-line-2);
	border-radius: var(--pakf-radius);
	background: var(--pakf-surface);
	color: var(--pakf-ink);
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 650;
}

.pakf-more:hover {
	border-color: var(--pakf-accent);
	color: var(--pakf-accent-text);
}

.pakf-foot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
	padding-top: 14px;
	border-top: 1px solid var(--pakf-line);
	color: var(--pakf-faint);
	font-size: 12px;
}

.pakf-spin {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--pakf-line-2);
	border-top-color: var(--pakf-accent);
	border-radius: 50%;
	animation: pakf-spin .7s linear infinite;
	vertical-align: -3px;
	margin-right: 8px;
}

@keyframes pakf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pakf *,
	.pakf *::before,
	.pakf *::after {
		transition: none !important;
		animation-duration: .01ms !important;
	}
}

/*
 * Phones: a seven-column table cannot be read sideways, so each row becomes
 * a card and every cell carries its own label.
 */
@media (max-width: 760px) {
	.pakf-table,
	.pakf-table tbody,
	.pakf-table tr,
	.pakf-table td {
		display: block;
		width: 100%;
	}

	/* Doubled class: the desktop min-width uses one, so this must outrank it. */
	.pakf-table.pakf-table {
		min-width: 0;
		table-layout: auto;
	}

	.pakf-table thead {
		display: none;
	}

	.pakf-tablewrap {
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.pakf-row {
		position: relative;
		margin-bottom: 10px;
		padding: 12px 14px 10px;
		border: 1px solid var(--pakf-line);
		background: var(--pakf-surface);
		box-shadow: var(--pakf-shadow);
	}

	.pakf-row.is-open {
		border-color: var(--pakf-accent);
	}

	.pakf-table tbody td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 14px;
		padding: 5px 0;
		border-bottom: 0;
		text-align: left;
	}

	.pakf-table tbody td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--pakf-faint);
	}

	.pakf-table tbody td.pakf-cell-part,
	.pakf-table tbody td.pakf-cell-thumb {
		display: block;
		padding-bottom: 8px;
	}

	.pakf-table tbody td.pakf-cell-part::before,
	.pakf-table tbody td.pakf-cell-thumb::before {
		content: none;
	}

	.pakf-table td.pakf-num {
		text-align: right;
	}

	.pakf-cell-thumb .pakf-thumb {
		width: 64px;
		height: 64px;
	}

	/*
	 * The detail row is not a labelled cell — keep it a plain block, or the
	 * space-between rule above pushes the whole panel to one side.
	 */
	.pakf-table tbody tr.pakf-detail > td {
		display: block;
		padding: 0;
	}

	.pakf-table tbody tr.pakf-detail > td::before {
		content: none;
	}

	.pakf-detail {
		margin: -10px 0 10px;
		border: 1px solid var(--pakf-accent);
		border-top: 0;
		background: var(--pakf-surface-2);
	}

	/* Inside a card now, so it needs no sticky trick. */
	.pakf-panel {
		position: static;
		width: auto;
	}
}

/* phones */

@media (max-width: 600px) {
	.pakf-submit.pakf-submit {
		padding: 11px 14px;
	}

	.pakf-count {
		margin-left: 0;
		width: 100%;
	}

	.pakf-panel {
		padding: 14px 12px 18px;
	}
}

/* ---- the cross-reference gate ----
   Shown in place of the cross-reference list to a visitor who is not signed
   in. It states what exists rather than hiding that anything does, so the
   result still answers "do you make one for my machine?" — which is the
   question the search is there to answer. */
.pakf-gate {
	padding: 22px 24px;
	background: #F5F5EF;
	border: 1px solid #E2E2DA;
}

.pakf-gate__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.pakf-gate__count {
	padding: 6px 12px;
	background: #FFFFFF;
	border: 1px solid #D5D5C8;
	font-size: 14px;
	font-weight: 600;
	color: #33332E;
}

.pakf-gate__note {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #44443E;
}

.pakf-gate__cta {
	display: inline-block;
	min-height: 44px;
	padding: 12px 26px;
	background: var(--pak-dark, #101010);
	color: #FFFFFF !important;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.pakf-gate__cta:hover,
.pakf-gate__cta:focus {
	background: var(--pak-accent, #B7B747);
	color: var(--pak-dark, #101010) !important;
}
