/* Shared product / API topic subpages (replaces accounts-payable.css) */
/* Typography: font-family inherit — uses theme fonts from main.min.css / body */

body[class*="-subpage"] #primary.site-main {
	max-width: 100%;
}

.ps-page,
.accounts-payable-page {
	/* Solution cards — Payoneer blog / feature-card pattern */
	--ps-card-blue: #2171e0;
	--ps-card-icon-color: #000000;
	/* Match developers.html hub cards: blue title, charcoal body, gray border. */
	--ps-card-title-color: #2171e0;
	--ps-card-text: #222;
	--ps-card-border: #e5e5e5;
	--ps-hero-icon-w: 52px;
	--ps-hero-icon-gap: 1rem;
	max-width: 1040px;
	margin: 0 auto;
	padding-top: 1.75rem;
	padding-bottom: 3rem;
	font-family: inherit;
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
}

.ps-breadcrumb,
.accounts-payable-breadcrumb {
	font-family: inherit;
	font-size: 0.8125rem;
	color: #333 !important;
	margin-bottom: 1.25rem;
}

/* Nested in doc-article main — avoid double top padding with .developer-docs-main */
.developer-docs-main .ps-page,
.developer-docs-main .accounts-payable-page {
	padding-top: 0;
}

/* Product subpages: left edge matches developers.html hub main (see developers-docs.css) */
.developer-docs--product-subpage .developer-docs-product-main.ps-page {
	padding-top: 0;
}

/* Breadcrumb aligns with hero icon (left edge of product header row) */
.ps-page > .ps-breadcrumb,
.ps-page > .accounts-payable-breadcrumb,
.ps-page .developer-docs-main > .ps-breadcrumb {
	padding-left: 0;
}
.ps-breadcrumb a,
.accounts-payable-breadcrumb a {
	color: #2171e0 !important;
	text-decoration: none !important;
}

.ps-product-header,
.accounts-payable-product-header {
	margin-bottom: 2rem;
	margin-top: 0;
	align-items: flex-start !important;
}

/* Match developers.html hub: breadcrumb → title stack, icon row below breadcrumb */
.developer-docs--product-subpage .ps-page > .ps-breadcrumb {
	margin-bottom: 1.25rem;
}

/* Text column: breadcrumb, title, then description — aligned with title */
.ps-product-header-body,
.ps-product-header > div:last-child {
	flex: 1;
	min-width: 0;
	max-width: 42rem;
}

.ps-icon,
.accounts-payable-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	color: var(--ps-card-icon-color, #000000);
}

.ps-product-header .ps-icon {
	width: var(--ps-hero-icon-w, 52px);
	min-height: var(--ps-hero-icon-w, 52px);
	padding-top: 0.2rem;
}

.ps-product-header .ps-icon i[class*="level1-"] {
	font-size: 40px;
	line-height: 1;
	display: block;
}

.ps-icon svg,
.accounts-payable-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.ps-title,
.accounts-payable-title {
	font-size: clamp(2rem, 2.5vw, 2.35rem);
	font-weight: 600;
	color: #000000 !important;
	margin: 0 0 0.5rem;
	line-height: 1.2;
	font-family: inherit;
	letter-spacing: -0.02em;
}

.ps-tagline,
.accounts-payable-tagline {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: #404040;
	margin: 0;
	line-height: 1.55;
	text-align: left;
	max-width: none;
}

/* Legacy: was centered on some pages; keep class as alias for left-aligned hero copy */
.ps-tagline--center {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
}

.ps-section-heading,
.accounts-payable-section-heading {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 0.5rem;
	font-family: inherit;
	letter-spacing: -0.015em;
}

.ps-section-sub,
.accounts-payable-section-sub {
	font-family: inherit;
	font-size: 1rem;
	color: #333;
	margin: 0 0 2rem;
	line-height: 1.55;
}

/* Clickable solution card: no underlines; hover = highlight + lift (no underline) */
a.doc-link-card {
	color: inherit;
	text-decoration: none !important;
	text-decoration-line: none !important;
}

a.doc-link-card:hover {
	text-decoration: none !important;
}

a.doc-link-card *,
a.doc-link-card:hover * {
	text-decoration: none !important;
	text-decoration-line: none !important;
}

a.doc-link-card .ps-card-desc {
	color: var(--ps-card-text) !important;
}

a.doc-link-card .ps-card {
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.2s ease;
}

a.doc-link-card:focus-visible {
	outline: 2px solid #2171e0;
	outline-offset: 3px;
	border-radius: 14px;
}

a.doc-link-card:visited {
	color: inherit;
	text-decoration: none !important;
}

a.doc-link-card:hover .ps-card {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(33, 113, 224, 0.14);
	border-color: rgba(33, 113, 224, 0.35);
	background-color: rgba(33, 113, 224, 0.06);
}

.ps-card,
.accounts-payable-card {
	height: 100%;
	background: #ffffff;
	border: 1px solid var(--ps-card-border);
	border-radius: 12px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	cursor: default;
}
.ps-card:hover,
.accounts-payable-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(33, 113, 224, 0.14);
	border-color: rgba(33, 113, 224, 0.35);
}

/* Icon + title on one row; body copy below.
   Level One icons sit high in the em box — top-align row + padding on title
   so the first line sits optically centered with the ~40px icon. */
.ps-card-head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.ps-card-head .ps-card-icon {
	margin-bottom: 0;
}

.ps-card-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 1rem;
	/* Blue accent to match the hub card titles. */
	color: var(--ps-card-blue);
	flex-shrink: 0;
	transition: color 0.22s ease, transform 0.22s ease;
}
/* Payoneer Level One icon font on cards (see payo-level1-icons.css) */
.ps-card i.ps-card-icon[class*="level1-"] {
	width: auto;
	height: auto;
	font-size: 40px;
	line-height: 1;
	display: block;
}
.ps-card:hover .ps-card-icon {
	color: #1856b3;
	transform: scale(1.06);
}
.ps-card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Feature card: black title + charcoal body; icons match hero (black) */
.ps-card-title,
.accounts-payable-card-title {
	font-family: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--ps-card-title-color) !important;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}
.ps-card-head .ps-card-title,
.ps-card-head .accounts-payable-card-title {
	margin: 0;
	flex: 1;
	min-width: 0;
	padding-top: 0.5rem;
}

.ps-card-title--dark {
	color: var(--ps-card-title-color) !important;
}

.ps-card-title--black {
	color: #000000 !important;
	font-weight: 600;
}

.ps-card-desc,
.accounts-payable-card-desc {
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--ps-card-text) !important;
	margin: 0;
}

@media (max-width: 767.98px) {
	.ps-page > .ps-breadcrumb,
	.ps-page > .accounts-payable-breadcrumb,
	.ps-page .developer-docs-main > .ps-breadcrumb {
		padding-left: 0;
	}

	.ps-product-header,
	.accounts-payable-product-header {
		flex-direction: column;
	}
}
