:root {
	--apx-ink: #17212b;
	--apx-muted: #5c6873;
	--apx-blue: #075ea8;
	--apx-blue-dark: #064678;
	--apx-orange: #e87524;
	--apx-paper: #ffffff;
	--apx-soft: #f4f7f9;
	--apx-line: #d8e0e6;
	--apx-shadow: 0 14px 38px rgba(21, 43, 61, .12);
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	color: var(--apx-ink);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

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

html body #main-content {
	position: relative;
	top: auto;
	width: min(1120px, calc(100% - 32px));
	margin: 84px auto 32px;
	padding: clamp(20px, 4vw, 44px);
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 14px;
	background: var(--apx-paper);
	box-shadow: var(--apx-shadow);
	overflow-wrap: anywhere;
}

html body #header {
	max-width: 58vw;
}

html body #header img,
html body #header-section img {
	display: block;
	max-width: 100%;
	height: auto;
}

html body #header-section {
	right: max(16px, 5%);
	max-width: 38vw;
}

html body #cse-search-box {
	position: static !important;
	margin: 0 0 24px;
}

#cse-search-box > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#cse-search-box input[type="text"] {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 420px;
	padding: 9px 11px;
	border: 1px solid #aebbc6;
	border-radius: 7px;
	font: inherit;
}

#cse-search-box input[type="submit"] {
	padding: 9px 16px;
	border: 0;
	border-radius: 7px;
	background: var(--apx-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

#main-content p,
#main-content li,
#main-content td,
#main-content th {
	font-size: 1rem;
	line-height: 1.55;
}

#main-content p {
	margin: 0 0 1rem;
}

#main-content h1 {
	margin: 0 0 .65rem;
	font-size: clamp(1.65rem, 4vw, 2.4rem);
	line-height: 1.15;
}

#main-content h2,
#main-content h3 {
	margin-top: 1.7em;
	line-height: 1.25;
}

#main-content a {
	color: var(--apx-blue);
	text-underline-offset: .15em;
}

#main-content a:hover,
#main-content a:focus-visible {
	color: var(--apx-blue-dark);
}

#main-content a:focus-visible,
#main-content button:focus-visible,
#main-content input:focus-visible {
	outline: 3px solid rgba(232, 117, 36, .55);
	outline-offset: 3px;
}

#main-content img {
	max-width: 100%;
	height: auto;
}

#main-content iframe,
#main-content ins {
	max-width: 100%;
}

#main-content pre {
	max-width: 100%;
	overflow-x: auto;
	padding: 16px;
	border: 1px solid var(--apx-line);
	border-radius: 8px;
	background: #f7f8f8;
	font-size: .9rem;
	line-height: 1.45;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#main-content hr {
	width: 100%;
	height: 1px;
	margin: 32px 0;
	border: 0;
	background: var(--apx-line);
}

.apx-hero {
	margin: -8px 0 30px;
	padding: clamp(22px, 5vw, 48px);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(5, 74, 126, .96), rgba(5, 95, 168, .9)),
		#075ea8;
	color: #fff;
}

.apx-hero h1 {
	max-width: 760px;
	color: #fff;
}

.apx-hero p {
	max-width: 760px;
	margin-bottom: 0 !important;
	color: rgba(255, 255, 255, .9);
	font-size: 1.08rem !important;
}

.apx-eyebrow {
	margin-bottom: 8px !important;
	color: #ffd7b8 !important;
	font-size: .8rem !important;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.apx-link-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 0 0 28px;
}

.apx-link-card {
	display: block;
	min-height: 100%;
	padding: 18px;
	border: 1px solid var(--apx-line);
	border-radius: 10px;
	background: var(--apx-soft);
	color: var(--apx-ink) !important;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.apx-link-card:hover,
.apx-link-card:focus-visible {
	border-color: #88afd0;
	box-shadow: 0 8px 20px rgba(21, 43, 61, .1);
	transform: translateY(-2px);
}

.apx-link-card strong {
	display: block;
	margin-bottom: 4px;
	color: var(--apx-blue-dark);
	font-size: 1.05rem;
}

.apx-link-card span {
	display: block;
	color: var(--apx-muted);
	font-size: .92rem;
	line-height: 1.45;
}

.apx-callout {
	padding: 18px 20px;
	border-left: 4px solid var(--apx-orange);
	border-radius: 0 8px 8px 0;
	background: #fff7f0;
}

.apx-page-heading {
	margin-bottom: 24px;
	text-align: center;
}

.apx-page-heading p {
	color: var(--apx-muted);
}

.apx-sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid var(--apx-line);
	border-radius: 9px;
	background: var(--apx-soft);
}

.apx-sort a,
.apx-sort strong {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 6px;
}

.apx-sort strong {
	background: var(--apx-blue);
	color: #fff;
}

.apx-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--apx-line);
	border-radius: 10px;
}

.apx-software-table {
	width: 100%;
	min-width: 850px;
	border: 0;
	border-collapse: collapse;
	background: #fff;
}

.apx-software-table th,
.apx-software-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--apx-line);
	text-align: left;
	vertical-align: top;
}

.apx-software-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #e9f0f5;
	color: #263947;
	font-size: .78rem !important;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.apx-software-table tbody tr:nth-child(even) {
	background: #f8fafb;
}

.apx-software-table tbody tr:hover {
	background: #fff8f2;
}

.apx-software-table td:nth-last-child(-n+4) {
	white-space: nowrap;
}

.apx-table-summary {
	margin-top: 10px !important;
	color: var(--apx-muted);
	font-size: .9rem !important;
}

.apx-note {
	margin-top: 28px !important;
	padding: 16px 18px;
	border: 1px solid #ead8c9;
	border-radius: 9px;
	background: #fffaf6;
	color: #49382d;
}

.apx-catalog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 18px;
	margin: 24px 0 32px;
}

.apx-catalog-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--apx-line);
	border-radius: 10px;
	background: var(--apx-soft);
	color: var(--apx-blue-dark) !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.apx-catalog-card:hover,
.apx-catalog-card:focus-visible {
	border-color: #88afd0;
	box-shadow: 0 8px 20px rgba(21, 43, 61, .1);
}

.apx-catalog-card img {
	width: 150px;
	aspect-ratio: 150 / 196;
	border: 1px solid #c2c8cc;
	box-shadow: 0 5px 14px rgba(23, 33, 43, .14);
	object-fit: cover;
}

.apx-return {
	margin-top: 32px;
	text-align: center;
}

@media (max-width: 760px) {
	html body #header {
		max-width: 55vw;
	}

	html body #header-section {
		top: 18px;
		max-width: 38vw;
	}

	html body #main-content {
		width: calc(100% - 20px);
		margin-top: 72px;
		padding: 18px;
		border-radius: 10px;
	}

	.apx-hero {
		padding: 24px 20px;
	}

	.apx-table-wrap {
		overflow: visible;
		border: 0;
	}

	.apx-software-table {
		display: block;
		min-width: 0;
		background: transparent;
	}

	.apx-software-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.apx-software-table tbody {
		display: grid;
		gap: 12px;
	}

	.apx-software-table tr {
		display: flex;
		flex-direction: column;
		padding: 14px 16px;
		border: 1px solid var(--apx-line);
		border-radius: 9px;
		background: #fff !important;
		box-shadow: 0 3px 10px rgba(21, 43, 61, .06);
	}

	.apx-software-table td {
		display: grid;
		grid-template-columns: minmax(88px, 34%) 1fr;
		gap: 10px;
		padding: 6px 0;
		border: 0;
		white-space: normal !important;
	}

	.apx-software-table td::before {
		content: attr(data-label);
		color: var(--apx-muted);
		font-size: .72rem;
		font-weight: 800;
		letter-spacing: .04em;
		text-transform: uppercase;
	}

	.apx-software-table td[data-label="Title"] {
		order: -2;
		display: block;
		padding: 0 0 3px;
		color: var(--apx-ink);
		font-size: 1.12rem !important;
		font-weight: 800;
	}

	.apx-software-table td[data-label="Title"]::before {
		display: none;
	}

	.apx-software-table td[data-label="Catalog #"],
	.apx-software-table td[data-label="Ranking"] {
		order: -1;
		padding-top: 0;
	}

	.apx-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.apx-catalog-card {
		padding: 12px 8px;
	}
}

@media (max-width: 420px) {
	.apx-catalog-grid {
		grid-template-columns: 1fr;
	}

	html body #main-content {
		width: calc(100% - 12px);
		padding: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apx-link-card {
		transition: none;
	}
}
