/* MyLibrary 3.10.33 — History subcategories in the Literature-card style. */

.mlb-history-hub #history-directions {
	margin-top: 1.5rem;
}

.mlb-history-hub #history-directions .mlb-history-section__heading {
	margin-bottom: 1.2rem;
}

.mlb-history-hub #history-directions .mlb-history-sections {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	counter-reset: mlb-history-subcategory;
}

.mlb-history-hub #history-directions .mlb-history-section-card {
	--accent: #5069c1;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 310px;
	padding: clamp(1.25rem, 2.5vw, 1.65rem);
	overflow: hidden;
	border: 1px solid #dbe3ee;
	border-radius: 20px;
	background: linear-gradient(145deg, #f3f6ff 0%, #fff 72%);
	box-shadow: 0 11px 30px rgba(41, 57, 80, 0.08);
	color: #243851 !important;
	text-decoration: none !important;
	counter-increment: mlb-history-subcategory;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mlb-history-hub #history-directions .mlb-history-section-card::before {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 0 1.15rem;
	border: 1px solid #d4deeb;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.84);
	color: var(--accent);
	content: "0" counter(mlb-history-subcategory);
	font-size: 0.75rem;
	font-weight: 900;
}

.mlb-history-hub #history-directions .mlb-history-section-card::after {
	position: absolute;
	right: -48px;
	top: -56px;
	bottom: auto;
	z-index: 0;
	width: 155px;
	height: 155px;
	border: 25px solid rgba(75, 101, 190, 0.06);
	border-radius: 50%;
	background: transparent;
	content: "";
	opacity: 1;
	pointer-events: none;
}

.mlb-history-hub #history-directions .mlb-history-section-card > * {
	position: relative;
	z-index: 1;
}

.mlb-history-hub #history-directions .mlb-history-section-card:hover,
.mlb-history-hub #history-directions .mlb-history-section-card:focus-visible {
	transform: translateY(-5px);
	border-color: #b6c4d8;
	box-shadow: 0 18px 38px rgba(41, 57, 80, 0.13);
	outline: 0;
}

.mlb-history-hub #history-directions .mlb-history-section-card--steppe {
	--accent: #5069c1;
	background: linear-gradient(145deg, #f3f6ff 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card--north {
	--accent: #2f8379;
	background: linear-gradient(145deg, #eff9f6 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card--red {
	--accent: #a95048;
	background: linear-gradient(145deg, #fff2f0 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card--sand {
	--accent: #b8712e;
	background: linear-gradient(145deg, #fff8ec 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card--stone {
	--accent: #756f65;
	background: linear-gradient(145deg, #f5f3ef 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card--europe {
	--accent: #386e93;
	background: linear-gradient(145deg, #eff7fb 0%, #fff 72%);
}

.mlb-history-hub #history-directions .mlb-history-section-card__period {
	display: block;
	margin: 0 0 0.4rem;
	color: var(--accent);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	line-height: 1.45;
	text-transform: uppercase;
}

.mlb-history-hub #history-directions .mlb-history-section-card h3 {
	margin: 0 0 0.7rem;
	color: #263b55;
	font-size: clamp(1.25rem, 2.3vw, 1.58rem);
	line-height: 1.22;
	letter-spacing: -0.012em;
}

.mlb-history-hub #history-directions .mlb-history-section-card p {
	margin: 0 0 1.2rem;
	color: #65748a;
	font-size: 0.88rem;
	line-height: 1.62;
}

.mlb-history-hub #history-directions .mlb-history-section-card__meta {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	margin-top: auto;
	color: #67768a;
	font-size: 0.75rem;
	font-weight: 700;
}

.mlb-history-hub #history-directions .mlb-history-section-card__meta strong {
	color: var(--accent);
	font-size: 1rem;
	font-weight: 900;
}

.mlb-history-hub #history-directions .mlb-history-section-card__meta b {
	display: inline-block;
	margin-left: auto;
	color: var(--accent);
	font-size: 1.2rem;
	transition: transform 0.2s ease;
}

.mlb-history-hub #history-directions .mlb-history-section-card:hover .mlb-history-section-card__meta b {
	transform: translateX(4px);
}

@media (max-width: 1080px) {
	.mlb-history-hub #history-directions .mlb-history-sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.mlb-history-hub #history-directions .mlb-history-sections {
		grid-template-columns: 1fr;
	}

	.mlb-history-hub #history-directions .mlb-history-section-card {
		min-height: 230px;
		padding: 1.15rem;
		border-radius: 16px;
	}
}

@media print {
	.mlb-history-hub #history-directions .mlb-history-section-card {
		box-shadow: none;
	}
}
