body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-image: url("../../../general/textures/backgrounds/orphanage.png");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

.wrapper {
	flex: 1 0 auto;
	height: auto;
	width: min(1500px, calc(100% - 32px));
}

.trade-page {
	width: min(980px, 100%);
	margin: 40px auto 0;
	padding: 28px;
	border: 4px solid var(--border-brown);
	background: rgba(246, 237, 210, 0.96);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trade-heading {
	margin-bottom: 24px;
	color: #4d3418;
}

.trade-heading h1 {
	margin: 0 0 6px;
	font-size: 36px;
}

.trade-heading p {
	margin: 0;
	font-size: 18px;
}

.trade-heading .eyebrow {
	margin-bottom: 4px;
	color: #31598a;
	font-size: 14px;
}

.trade-groups {
	display: grid;
	gap: 18px;
}

.trade-group {
	overflow: hidden;
	border: 1px solid #d9dfeb;
	border-radius: 8px;
	background: rgba(237, 242, 250, 0.7);
	color: #102b55;
}

.trade-group summary {
	padding: 12px 16px;
	cursor: pointer;
	color: #172642;
	font-size: 20px;
	font-weight: bold;
}

.trade-group summary::marker {
	color: #162946;
}

.trader-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-top: 1px solid #d9dfeb;
	border-bottom: 1px solid #d9dfeb;
	font-size: 16px;
}

.trader-heading span {
	color: #2557a0;
}

.coordinates {
	margin: 0;
	padding: 9px 16px;
	border-bottom: 1px solid #d9dfeb;
	font-size: 13px;
}

.instruction {
	margin: 0;
	padding: 9px 16px;
	border-bottom: 1px solid #d9dfeb;
	font-size: 13px;
}

.trade-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 14px;
}

.trade-table th,
.trade-table td {
	padding: 9px 16px;
	border-bottom: 1px solid #d9dfeb;
	text-align: left;
	vertical-align: top;
}

.trade-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.trade-item-image {
	display: grid;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	place-items: center;
	box-sizing: border-box;
	border: 1px solid #c8ced9;
	border-radius: 4px;
	background: #727272;
}

.trade-item-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.trade-table th {
	color: #172642;
	font-weight: bold;
}

.trade-table a {
	color: #2557a0;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.trade-table a:hover {
	color: #162946;
}

.trade-table tr:last-child td {
	border-bottom: 0;
}

.trade-table th + th,
.trade-table td + td {
	border-left: 1px solid #d9dfeb;
}

.info {
	margin-top: 0;
	flex-shrink: 0;
}

@media (max-width: 700px) {
	.wrapper {
		width: calc(100% - 20px);
	}

	.trade-page {
		margin-top: 24px;
		padding: 18px;
	}

	.trade-heading h1 {
		font-size: 30px;
	}

	.trade-heading p {
		font-size: 16px;
	}

	.trade-table th,
	.trade-table td {
		padding: 8px 10px;
		overflow-wrap: anywhere;
	}
}
