/* The free tools catalogue.
 *
 * Built on the theme's own custom properties where they exist, with a
 * fallback on every single one. On PropXConnect it inherits the site's
 * palette and typefaces and looks native in all four of its themes; on a
 * theme that defines none of them it still renders as a clean light card
 * grid rather than as unstyled text.
 *
 * That is why every colour below reads var(--thing, #literal) and never a
 * bare literal.
 */

/* THE PALETTE IS DECLARED ON BOTH, the colour and typeface only on .pxft.
   The single-tool page puts its own headings and breadcrumb OUTSIDE the
   catalogue container, where none of these variables resolved and every
   colour quietly fell back to inherit. It needs the variables; it must not
   have .pxft's colour and font-family, which would repaint the theme's own
   h1 in body-text colour. */
.pxft, .pxft-single {
	--pxft-card: var(--raise, #fff);
	--pxft-line: var(--line, #e2e6e8);
	--pxft-rule: var(--rule, #cdd5d8);
	--pxft-ink: var(--text, #15202b);
	--pxft-dim: var(--dim, #5c6b73);
	--pxft-faint: var(--faint, #8a989f);
	--pxft-act: var(--act, #d25710);
	--pxft-act-hi: var(--act-hi, #ea6d22);
	--pxft-act-ink: var(--act-ink, #fff);
	--pxft-brand: var(--brand, #00647f);
	--pxft-wash: var(--wash, rgba(0, 100, 127, .08));
}

.pxft {
	color: var(--pxft-ink);
	font-family: var(--body, inherit);
}

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

/* ---------- the bar ---------- */

.pxft-bar {
	display: flex; flex-wrap: wrap; gap: 14px;
	align-items: center; justify-content: space-between;
	margin: 0 0 18px;
}

.pxft-search { position: relative; flex: 1 1 260px; max-width: 340px; }
.pxft-q {
	width: 100%; padding: 11px 38px 11px 14px;
	/* 16px: anything smaller makes iOS zoom the page on focus. */
	font-size: 16px; font-family: inherit; line-height: 1.3;
	color: var(--pxft-ink);
	background: var(--pxft-card);
	border: 1px solid var(--pxft-rule); border-radius: 9px;
	-webkit-appearance: none; appearance: none;
}
.pxft-q:focus {
	outline: 0; border-color: var(--pxft-brand);
	box-shadow: 0 0 0 3px var(--pxft-wash);
}
.pxft-q::-webkit-search-cancel-button { display: none; }
.pxft-clear {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border: 0; border-radius: 50%;
	background: none; color: var(--pxft-faint);
	font-size: 20px; line-height: 1; cursor: pointer;
}
.pxft-clear:hover { color: var(--pxft-ink); }

.pxft-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pxft-plats { margin: 0 0 16px; }

.pxft-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 13px; min-height: 38px;
	font: inherit; font-size: 13.5px; font-weight: 500;
	color: var(--pxft-dim); cursor: pointer;
	background: transparent;
	border: 1px solid var(--pxft-line); border-radius: 999px;
	transition: border-color .12s, color .12s, background-color .12s;
}
.pxft-chip:hover { color: var(--pxft-ink); border-color: var(--pxft-rule); }
.pxft-chip.is-on {
	color: var(--pxft-act-ink); background: var(--pxft-act);
	border-color: var(--pxft-act);
}
.pxft-chip i {
	font-style: normal; font-size: 11px; font-weight: 700;
	font-family: var(--num, ui-monospace, monospace);
	opacity: .72;
}

.pxft-sorts { display: flex; gap: 16px; margin: 0 0 20px; }
.pxft-sort {
	padding: 4px 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 13.5px; color: var(--pxft-faint);
	border-bottom: 2px solid transparent;
}
.pxft-sort:hover { color: var(--pxft-ink); }
.pxft-sort.is-on { color: var(--pxft-ink); border-bottom-color: var(--pxft-act); font-weight: 600; }

.pxft-none, .pxft-empty { color: var(--pxft-dim); padding: 28px 0; }

/* ---------- the grid ---------- */

.pxft-grid {
	display: grid; gap: 20px;
	/* auto-fill, not auto-fit: with two cards left after a filter, auto-fit
	   would stretch them across the whole row and they would tower over the
	   unfiltered layout. */
	grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
}
@media (max-width: 640px) {
	.pxft-grid { grid-template-columns: 1fr; gap: 16px; }
}

.pxft-card {
	display: flex; flex-direction: column;
	background: var(--pxft-card);
	border: 1px solid var(--pxft-line); border-radius: 13px;
	overflow: hidden;
	transition: border-color .14s, transform .14s;
}
.pxft-card:hover { border-color: var(--pxft-rule); }
.pxft-card[hidden] { display: none; }
.pxft-card.is-feat { border-color: var(--pxft-act); }

/* ---------- the still ---------- */

.pxft-shot {
	position: relative; display: block; aspect-ratio: 16 / 9;
	background: var(--bg-deep, #0e1416); overflow: hidden;
}
.pxft-shot img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	/* NO EXTRA ZOOM, AND THE ARITHMETIC SAYS WHY.

	   hqdefault is 480x360 with a 45px black bar top and bottom — 12.5% each.
	   Covering a 16:9 box scales the image by width, so 75% of its height is
	   shown and exactly 12.5% is cropped off each end. The bars go, the frame
	   is whole, and nothing of the picture is lost.

	   An earlier scale(1.35) on top of that cut the titles off the ends of
	   every thumbnail. */
	transition: transform .3s ease;
}
.pxft-card:hover .pxft-shot img { transform: scale(1.04); }

.pxft-play {
	position: absolute; left: 50%; top: 50%;
	width: 54px; height: 38px; margin: -19px 0 0 -27px;
	border-radius: 9px; background: rgba(12, 20, 23, .72);
	border: 1px solid rgba(255, 255, 255, .22);
	transition: background-color .15s;
}
.pxft-play::after {
	content: ""; position: absolute; left: 21px; top: 11px;
	border-style: solid; border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}
a.pxft-shot:hover .pxft-play { background: var(--pxft-act); }

.pxft-badge {
	position: absolute; top: 10px; left: 10px;
	padding: 4px 9px; border-radius: 5px;
	font-family: var(--num, ui-monospace, monospace);
	font-size: 10px; font-weight: 700; letter-spacing: .09em;
	background: var(--pxft-act); color: var(--pxft-act-ink);
}
.pxft-badge.is-updated { background: var(--pxft-brand); color: #fff; }
.pxft-badge.is-bare { position: static; display: inline-block; margin: 14px 0 0 16px; }

/* ---------- the body ---------- */

.pxft-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1 1 auto; }

.pxft-tags {
	margin: 0 0 7px; font-size: 11px; font-weight: 600;
	letter-spacing: .07em; text-transform: uppercase;
	color: var(--pxft-faint);
}

.pxft-name {
	margin: 0 0 9px; font-family: var(--disp, inherit);
	font-size: 18px; line-height: 1.22; font-weight: 700;
	letter-spacing: var(--disp-track, 0);
	color: var(--pxft-ink);
}
/* The name links to the tool's own page. Styled as the heading it already
   was rather than as a link, so the card does not grow a row of blue text —
   the underline on hover is enough to say it is clickable. */
.pxft-name a { color: inherit; text-decoration: none; }
.pxft-name a:hover, .pxft-name a:focus-visible { text-decoration: underline; }

.pxft-desc { font-size: 14px; line-height: 1.55; color: var(--pxft-dim); }
.pxft-desc p { margin: 0 0 9px; }
.pxft-desc p:last-child { margin-bottom: 0; }

.pxft-spec {
	margin: 11px 0 0; padding: 7px 11px;
	font-family: var(--num, ui-monospace, monospace); font-size: 12px;
	color: var(--pxft-ink); background: var(--pxft-wash);
	border-radius: 7px;
}

.pxft-note {
	margin: 10px 0 0; padding-left: 11px;
	border-left: 2px solid var(--pxft-rule);
	font-size: 12.5px; line-height: 1.45; color: var(--pxft-faint);
}

.pxft-plat {
	margin: 10px 0 0; font-size: 11.5px; letter-spacing: .05em;
	text-transform: uppercase; color: var(--pxft-faint);
}

/* Pushed to the bottom so every card's button sits on the same line,
   whatever the description length above it. */
.pxft-dl { margin: 15px 0 0; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.pxft-btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 10px 16px; min-height: 42px;
	font-size: 14px; font-weight: 600; text-decoration: none;
	color: var(--pxft-act-ink); background: var(--pxft-act);
	border-radius: 9px;
	transition: background-color .13s;
}
.pxft-btn:hover, .pxft-btn:focus { background: var(--pxft-act-hi); color: var(--pxft-act-ink); }
.pxft-btn span { font-size: 15px; }

/* The per-tool link. Quiet beside the download, because it is for sending
   to somebody rather than the thing most visitors came to press. */
.pxft-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 13px; min-height: 42px;
	font-size: 12.5px; text-decoration: none;
	color: var(--pxft-faint); background: transparent;
	border: 1px solid var(--pxft-line); border-radius: 9px;
	transition: color .13s, border-color .13s;
	margin-left: auto;
}
.pxft-link:hover, .pxft-link:focus { color: var(--pxft-ink); border-color: var(--pxft-rule); }
.pxft-link.is-done { color: var(--pxft-brand); border-color: var(--pxft-brand); }

/* ---------- see all ---------- */

.pxft-all {
	display: inline-flex; align-items: center;
	padding: 9px 15px; min-height: 38px;
	font-size: 13.5px; font-weight: 600; text-decoration: none;
	color: var(--pxft-brand); background: transparent;
	border: 1px solid var(--pxft-brand); border-radius: 999px;
	transition: background-color .13s, color .13s;
	white-space: nowrap;
}
.pxft-all:hover, .pxft-all:focus { background: var(--pxft-brand); color: #fff; }
.pxft-all[hidden] { display: none; }

/* NONE, not 1.35. This rule exists to stop the hover zoom ANIMATING for
   somebody who has asked for less motion — it was holding the thumbnail at
   the old 1.35 zoom, which is the over-crop that was removed everywhere else
   in 1.3.0. On a machine set to reduce motion the bars came back. */
@media (prefers-reduced-motion: reduce) {
	.pxft-shot img, .pxft-card, .pxft-btn, .pxft-chip { transition: none; }
	.pxft-card:hover .pxft-shot img { transform: none; }
}

/* ======================================================================
   ONE TOOL, AS A PAGE
   ====================================================================== */

.pxft-crumb {
	font-size: 13px; color: var(--pxft-dim); margin: 0 0 10px;
	display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.pxft-crumb a { color: var(--pxft-brand); text-decoration: none; }
.pxft-crumb a:hover { text-decoration: underline; }

.pxft-one-meta {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	margin: 10px 0 0; font-size: 13px; color: var(--pxft-dim);
}

/* THE PICTURE BESIDE THE WORDS on a wide screen, stacked on a narrow one.
   A 16:9 still at full page width is enormous and pushes the download
   button — the thing the visitor came for — below the fold. */
.pxft-one {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
	margin-top: 26px;
}
@media (min-width: 860px) {
	.pxft-one { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
}
.pxft-one-shot { border-radius: 12px; overflow: hidden; }
/* Bigger than on a card: here the description is the content of the page
   rather than a line under a picture. */
.pxft-one-body .pxft-desc { font-size: 15.5px; line-height: 1.65; color: var(--pxft-ink); }
.pxft-one-body .pxft-desc p { margin: 0 0 12px; }
.pxft-one-body .pxft-dl { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.pxft-more { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--pxft-line); }
.pxft-more-h {
	margin: 0 0 18px; font-size: 13px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--pxft-dim); font-weight: 700;
}
.pxft-more-all { margin: 20px 0 0; }

/* ---------- the support note ----------
 *
 * Built from the same custom properties as everything else, so it inherits
 * each site's palette rather than carrying its own colours. It must not be
 * mistaken for a tool: no card border radius matching .pxft-card, no
 * thumbnail, and an accent rule down the left that nothing else here has.
 */
.pxft-promo {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	background: var(--pxft-wash);
	border: 1px solid var(--pxft-line);
	border-left: 3px solid var(--pxft-act);
	border-radius: 11px;
}
.pxft-promo-txt { flex: 1 1 260px; min-width: 0; }
.pxft-promo-head { margin: 0; font-weight: 600; color: var(--pxft-ink); }
.pxft-promo-line { margin: 3px 0 0; color: var(--pxft-dim); }

.pxft-promo-go {
	display: inline-flex; align-items: center; gap: 7px;
	text-decoration: none; white-space: nowrap;
	color: var(--pxft-act-ink); background: var(--pxft-act);
	border-radius: 9px;
	transition: background-color .13s;
}
.pxft-promo-go:hover, .pxft-promo-go:focus { background: var(--pxft-act-hi); color: var(--pxft-act-ink); }

/* THE ONE ABOVE THE GRID, AND THE ONLY ONE.
   A line of text, not a panel: no background, no border, no button. It sits
   between somebody and the tools they came for, so it reads once and gets
   out of the way. The heading and the line run together as a single
   sentence, which is why they are inline and the separator is on ::after
   rather than in the markup. */
.pxft-promo--strip {
	margin: 0 0 20px; padding: 0;
	background: none; border: 0; border-radius: 0;
	gap: 9px;
}
.pxft-promo--strip .pxft-promo-head,
.pxft-promo--strip .pxft-promo-line {
	display: inline; margin: 0;
	font-size: 13px; line-height: 1.6;
}
.pxft-promo--strip .pxft-promo-head { font-weight: 600; color: var(--pxft-dim); }
.pxft-promo--strip .pxft-promo-head::after { content: " \2014 "; }
.pxft-promo--strip .pxft-promo-line { font-weight: 400; color: var(--pxft-faint); }
/* Not flex-grow, so the link follows the sentence instead of being thrown
   to the far right of the page with white space between. */
.pxft-promo--strip .pxft-promo-txt { flex: 0 1 auto; }
.pxft-promo--strip .pxft-promo-go {
	padding: 0; min-height: 0; border: 0; background: none;
	font-size: 13px; font-weight: 500; color: var(--pxft-act);
}
.pxft-promo--strip .pxft-promo-go:hover,
.pxft-promo--strip .pxft-promo-go:focus {
	background: none; color: var(--pxft-act-hi); text-decoration: underline;
}

/* The fuller panel, at the foot of the catalogue and on a tool page. */
.pxft-promo--foot, .pxft-promo--single {
	margin: 38px 0 0; padding: 20px 22px;
}
.pxft-promo--foot .pxft-promo-head,
.pxft-promo--single .pxft-promo-head { font-size: 17px; }
.pxft-promo--foot .pxft-promo-line,
.pxft-promo--single .pxft-promo-line { font-size: 14.5px; }
.pxft-promo--foot .pxft-promo-go,
.pxft-promo--single .pxft-promo-go {
	padding: 11px 18px; min-height: 44px; font-size: 14px; font-weight: 600;
}

.pxft-promo--single { margin: 34px 0 0; }

@media (max-width: 560px) {
	.pxft-promo { align-items: flex-start; }
	.pxft-promo-go { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.pxft-promo-go { transition: none; }
}

/* The mark. Fixed box so a replacement of any shape lands in the same
   footprint, and object-fit so it is never stretched to fit it. */
.pxft-promo-mark {
	flex: 0 0 auto; display: block;
	width: 44px; height: 44px; object-fit: contain;
}
.pxft-promo--strip .pxft-promo-mark { width: 20px; height: 20px; }

@media (max-width: 560px) {
	.pxft-promo-mark { width: 34px; height: 34px; }
}
