/* Buying / selling resource pages (buying.php, selling.php)
   Typography matches Arcana / style.css: body 16pt, h2 1.75em, h3 1.2em — use inherit/em, not rem (rem tracks root px and shrinks vs 16pt body). */

.page-resource {
	--cp-accent: #004f6c;
	--cp-accent-soft: #e8f4f8;
	--cp-border: #e2e8f0;
	--cp-text: inherit;
	--cp-muted: #666;
}

.page-resource .page-hero {
	margin-bottom: 1.25em;
	padding-bottom: 1em;
	border-bottom: 1px solid var(--cp-border);
}

.page-resource .page-hero h2 {
	margin: 0 0 0.35em;
	font-size: 1.75em;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: inherit;
	line-height: 1.75em;
}

.page-resource .page-hero .page-hero__lede {
	margin: 0;
	font-size: 1em;
	font-weight: 300;
	color: var(--cp-muted);
}

.page-resource .page-hero__media {
	margin: 0 0 1.75em;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
	line-height: 0;
}

.page-resource .page-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: bottom;
}

.page-resource .prose-article {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

.page-resource .prose-flow > p {
	margin: 0 0 2em;
}

.page-resource .content-section {
	margin: 2em 0;
	padding: 0;
}

.page-resource .content-section:first-of-type {
	margin-top: 0;
}

.page-resource .content-section h3 {
	margin: 0 0 0.65em;
	font-size: 1.2em;
	font-weight: 600;
	color: var(--cp-accent);
	line-height: 1.75em;
}

.page-resource .content-section p {
	margin: 0 0 2em;
}

.page-resource .content-section ul,
.page-resource .content-section ol {
	margin: 0 0 2em;
	padding-left: 1.35em;
}

.page-resource .content-section li {
	margin-bottom: 0.4em;
}

.page-resource .content-section li:last-child {
	margin-bottom: 0;
}

/* Sidebar cards */
.page-resource #sidebar section {
	background: #f8fafc;
	border: 1px solid var(--cp-border);
	border-radius: 12px;
	padding: 1.15em 1.2em;
	margin-bottom: 1.25em;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.page-resource #sidebar section h3 {
	margin: 0 0 0.65em;
	font-size: 1.2em;
	font-weight: 600;
	color: var(--cp-accent);
}

.page-resource #sidebar section p {
	margin: 0 0 1em;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.page-resource #sidebar section footer {
	margin-top: 0.5em;
}

.page-resource #sidebar .button {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	border-radius: 8px;
	font-weight: 600;
	padding: 0.65em 1em !important;
	font-size: inherit !important;
	background: var(--cp-accent) !important;
	color: #fff !important;
	text-decoration: none !important;
	border: none;
	transition: background 0.15s ease;
}

.page-resource #sidebar .button:hover {
	background: #003d54 !important;
}

/* Selling tip cards */
.page-selling .selling-tips-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1em;
	margin: 1.5em 0 0;
}

@media (min-width: 900px) {
	.page-selling .selling-tips-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.15em 1.25em;
	}
}

.page-selling .tip-card {
	background: #f8fafc;
	border: 1px solid var(--cp-border);
	border-radius: 10px;
	padding: 1em 1.1em;
	border-left: 4px solid var(--cp-accent);
	font-size: inherit;
	line-height: inherit;
}

.page-selling .tip-card h3 {
	margin: 0 0 0.5em;
	font-size: 1.2em;
	font-weight: 600;
	color: var(--cp-accent);
	line-height: 1.75em;
}

.page-selling .tip-card p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* Featured image in article */
.page-resource .image.featured {
	display: block;
	margin: 0;
}
