/**
 * JJFrías 0.10.11 — isolated editorial archive for Libros.
 * Every selector is scoped to .jjfrias-books-page so header, footer and the
 * six shared topic archives remain byte-for-byte and visually unchanged.
 */

.jjfrias-books-page {
	--jjfrias-books-paper: #fffdf8;
	--jjfrias-books-paper-deep: #fbf6ec;
	--jjfrias-books-ink: #123743;
	--jjfrias-books-copy: #48626a;
	--jjfrias-books-line: rgba(37, 78, 82, 0.16);
	--jjfrias-books-green: #76a765;
	--jjfrias-books-amber: #eca82d;
	--jjfrias-books-amber-text: #8a5900;
	--jjfrias-books-teal: #35a6b6;
	--jjfrias-books-coral: #e9675f;
	--jjfrias-books-blue: #4099d3;
	--jjfrias-books-purple: #8d72b7;
	--jjfrias-books-orange: #ea7a22;
	--jjfrias-books-shadow: 0 18px 46px rgba(18, 55, 67, 0.08);
	margin: 0;
	color: var(--jjfrias-books-ink);
	background:
		radial-gradient(circle at 2% 14%, rgba(244, 201, 93, 0.09), transparent 22rem),
		radial-gradient(circle at 97% 46%, rgba(90, 166, 184, 0.07), transparent 24rem),
		var(--jjfrias-books-paper);
	font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jjfrias-books-page,
.jjfrias-books-page * {
	box-sizing: border-box;
}

.jjfrias-books-page :where(h1, h2, h3, p, ul, figure) {
	margin-top: 0;
}

.jjfrias-books-page :where(h1, h2, h3) {
	color: var(--jjfrias-books-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.04;
}

.jjfrias-books-page a {
	color: inherit;
}

.jjfrias-books-page :where(a, button, input):focus-visible {
	border-radius: 0.65rem;
	outline: 3px solid var(--jjfrias-books-teal);
	outline-offset: 3px;
	box-shadow: none;
}

.jjfrias-books-shell {
	width: min(1240px, calc(100% - 2rem));
	margin-inline: auto;
}

.jjfrias-books-hero {
	position: relative;
	padding: clamp(2.2rem, 4vw, 3.7rem) 0 clamp(1.35rem, 2.5vw, 2.1rem);
	background:
		linear-gradient(115deg, rgba(255, 253, 248, 0.96) 0 36%, rgba(255, 252, 245, 0.84) 58%, rgba(238, 244, 232, 0.56) 100%),
		repeating-linear-gradient(0deg, rgba(18, 55, 67, 0.012) 0 1px, transparent 1px 4px);
}

.jjfrias-books-hero::after {
	position: absolute;
	right: max(1rem, calc((100vw - 1240px) / 2));
	bottom: 0;
	width: clamp(10rem, 20vw, 18rem);
	height: clamp(5rem, 10vw, 9rem);
	border-radius: 100% 0 0 0;
	background: rgba(116, 159, 103, 0.08);
	content: "";
	pointer-events: none;
}

.jjfrias-books-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
	gap: clamp(1.5rem, 3.7vw, 3.75rem);
	align-items: center;
}

.jjfrias-books-intro {
	min-width: 0;
}

.jjfrias-books-eyebrow,
.jjfrias-books-featured-label,
.jjfrias-books-section-heading > div > p {
	margin-bottom: 0.8rem;
	color: var(--jjfrias-books-orange);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.13em;
	line-height: 1.3;
	text-transform: uppercase;
}

.jjfrias-books-intro h1 {
	max-width: 9.5ch;
	margin-bottom: 0.75rem;
	font-size: clamp(3.15rem, 5.15vw, 5.35rem);
}

.jjfrias-books-title-rule {
	display: block;
	width: 6.4rem;
	height: 0.2rem;
	margin-bottom: 1.35rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--jjfrias-books-green), #a9c989);
}

.jjfrias-books-lead {
	max-width: 35rem;
	margin-bottom: 1.45rem;
	color: var(--jjfrias-books-copy);
	font-size: clamp(1rem, 0.96rem + 0.16vw, 1.12rem);
	line-height: 1.75;
}

.jjfrias-books-search {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: center;
	width: 100%;
	min-height: 3.75rem;
	margin-bottom: 1rem;
	padding: 0.35rem 0.4rem 0.35rem 1rem;
	border: 1px solid rgba(34, 83, 89, 0.22);
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 12px 30px rgba(18, 55, 67, 0.055);
}

.jjfrias-books-search-icon {
	display: grid;
	width: 1.45rem;
	height: 1.45rem;
	place-items: center;
	color: var(--jjfrias-books-ink);
}

.jjfrias-books-search-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.jjfrias-books-search input {
	min-width: 0;
	height: 2.85rem;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--jjfrias-books-ink);
	font: inherit;
}

.jjfrias-books-search input::placeholder {
	color: #809095;
	opacity: 1;
}

.jjfrias-books-search input:focus {
	outline: 0;
	box-shadow: none;
}

.jjfrias-books-search:focus-within {
	border-color: var(--jjfrias-books-teal);
	box-shadow: 0 0 0 3px rgba(53, 166, 182, 0.2);
}

.jjfrias-books-search button,
.jjfrias-books-primary-action {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border: 1px solid #e8ad32;
	border-radius: 0.72rem;
	background: linear-gradient(135deg, #f7c654, #edae30);
	box-shadow: none;
	color: #14333c;
	font: inherit;
	font-size: 0.91rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease;
}

.jjfrias-books-search button:hover,
.jjfrias-books-primary-action:hover {
	color: #14333c;
}

.jjfrias-books-benefits {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.jjfrias-books-benefit {
	display: grid;
	grid-template-columns: 2.8rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
	min-height: 5.1rem;
	padding: 0.8rem;
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.6);
}

.jjfrias-books-benefit > span {
	display: grid;
	width: 2.8rem;
	height: 2.8rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(118, 167, 101, 0.12);
	color: var(--jjfrias-books-green);
}

.jjfrias-books-benefit.is-idea > span {
	background: rgba(236, 168, 45, 0.13);
	color: var(--jjfrias-books-amber);
}

.jjfrias-books-benefit svg {
	width: 1.7rem;
	height: 1.7rem;
}

.jjfrias-books-benefit p {
	margin-bottom: 0;
	line-height: 1.25;
}

.jjfrias-books-benefit strong,
.jjfrias-books-benefit small {
	display: block;
}

.jjfrias-books-benefit strong {
	margin-bottom: 0.3rem;
	font-size: 0.88rem;
}

.jjfrias-books-benefit small {
	color: var(--jjfrias-books-copy);
	font-size: 0.75rem;
	line-height: 1.4;
}

.jjfrias-books-featured {
	position: relative;
	display: grid;
	grid-template-columns: minmax(13rem, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.2rem, 2.6vw, 2.4rem);
	min-width: 0;
	min-height: 29rem;
	align-items: center;
	padding: clamp(1.25rem, 2.6vw, 2.2rem);
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1.25rem;
	background:
		radial-gradient(circle at 16% 40%, rgba(244, 201, 93, 0.22) 0 22%, transparent 22.3%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 236, 0.94));
	box-shadow: var(--jjfrias-books-shadow);
	isolation: isolate;
}

.jjfrias-books-featured::before,
.jjfrias-books-featured::after {
	position: absolute;
	z-index: -1;
	content: "";
	pointer-events: none;
}

.jjfrias-books-featured::before {
	right: -1px;
	bottom: -1px;
	width: 38%;
	height: 42%;
	border-radius: 100% 0 1.25rem 0;
	background: linear-gradient(145deg, rgba(132, 173, 112, 0.2), rgba(83, 124, 84, 0.45));
}

.jjfrias-books-featured::after {
	top: 2rem;
	right: 1.8rem;
	width: 5.8rem;
	height: 10rem;
	background:
		radial-gradient(ellipse at 15% 92%, rgba(91, 137, 80, 0.7) 0 8%, transparent 9%),
		radial-gradient(ellipse at 34% 76%, rgba(91, 137, 80, 0.65) 0 9%, transparent 10%),
		radial-gradient(ellipse at 51% 58%, rgba(91, 137, 80, 0.62) 0 9%, transparent 10%),
		radial-gradient(ellipse at 66% 38%, rgba(91, 137, 80, 0.58) 0 9%, transparent 10%),
		linear-gradient(64deg, transparent 49%, rgba(91, 137, 80, 0.55) 50% 51%, transparent 52%);
	opacity: 0.55;
	transform: rotate(-8deg);
}

.jjfrias-books-cover {
	position: relative;
	display: grid;
	height: clamp(13.75rem, 17vw, 15.5rem);
	place-items: center;
	padding: 0.7rem;
	border-radius: 0.85rem;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 239, 227, 0.62));
}

.jjfrias-books-cover--hero {
	height: clamp(21rem, 31vw, 25rem);
	padding: 0.5rem;
	background: transparent;
}

.jjfrias-books-cover > a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.jjfrias-books-cover-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: 0.12rem;
	object-fit: contain;
	object-position: center;
	box-shadow: 0.65rem 0.85rem 1rem rgba(18, 55, 67, 0.14);
}

.jjfrias-books-cover-placeholder,
.jjfrias-books-empty-cover {
	position: relative;
	display: grid;
	width: min(72%, 13rem);
	height: min(92%, 18rem);
	place-items: center;
	border: 1px solid rgba(18, 55, 67, 0.16);
	border-radius: 0.25rem 0.65rem 0.65rem 0.25rem;
	background:
		linear-gradient(115deg, transparent 0 68%, rgba(109, 153, 91, 0.24) 68% 100%),
		linear-gradient(180deg, #fffaf0, #ece5d5);
	box-shadow: 0.75rem 1rem 1.25rem rgba(18, 55, 67, 0.12);
	color: var(--jjfrias-books-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	font-weight: 700;
}

.jjfrias-books-cover-placeholder::before,
.jjfrias-books-empty-cover::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.5rem;
	width: 1px;
	background: rgba(18, 55, 67, 0.15);
	content: "";
}

.jjfrias-books-featured-copy {
	position: relative;
	z-index: 2;
	min-width: 0;
	padding-right: clamp(0rem, 2vw, 1.5rem);
}

.jjfrias-books-featured-label {
	display: inline-flex;
	margin-bottom: 1rem;
	padding: 0.42rem 0.72rem;
	border-radius: 999px;
	background: rgba(118, 167, 101, 0.19);
	color: #4d7d43;
	letter-spacing: 0.06em;
}

.jjfrias-books-featured h2 {
	display: -webkit-box;
	max-width: 12ch;
	margin-bottom: 0.35rem;
	overflow: hidden;
	font-size: clamp(2rem, 2.4vw, 2.9rem);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.jjfrias-books-featured h2 a {
	text-decoration: none;
}

.jjfrias-books-featured h2 a:hover {
	color: var(--jjfrias-books-teal);
}

.jjfrias-books-author {
	margin-bottom: 0.9rem;
	color: #61777c;
	font-size: 0.9rem;
}

.jjfrias-books-featured-summary {
	max-width: 30rem;
	margin-bottom: 1rem;
	color: var(--jjfrias-books-copy);
	font-size: 0.95rem;
	line-height: 1.7;
}

.jjfrias-books-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.jjfrias-books-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 1.7rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(118, 167, 101, 0.14);
	color: #315846;
	font-size: 0.72rem;
	font-weight: 700;
}

.jjfrias-books-chips span:nth-child(2) {
	background: rgba(64, 153, 211, 0.13);
	color: #2d678d;
}

.jjfrias-books-page .jjfrias-books-primary-action {
	gap: 0.65rem;
	min-width: 8.7rem;
	border-color: var(--jjfrias-books-ink);
	border-radius: 999px;
	background: var(--jjfrias-books-ink);
	color: #fffdf8;
}

.jjfrias-books-page .jjfrias-books-primary-action:hover {
	background: #245764;
	color: #fffdf8;
}

.jjfrias-books-featured.is-empty {
	grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.25fr);
}

.jjfrias-books-empty-cover {
	width: min(78%, 14rem);
	height: 20rem;
	margin-inline: auto;
	text-align: center;
	font-family: Manrope, sans-serif;
	font-size: 1rem;
	letter-spacing: 0.08em;
	line-height: 1.3;
}

.jjfrias-books-empty-spine {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0.65rem;
	background: rgba(18, 55, 67, 0.08);
}

.jjfrias-books-empty-mark {
	display: grid;
	width: 3.5rem;
	height: 3.5rem;
	margin-top: 1.1rem;
	place-items: center;
	border: 1px solid rgba(18, 55, 67, 0.2);
	border-radius: 50%;
	color: var(--jjfrias-books-green);
	font-family: Georgia, serif;
	font-weight: 700;
}

.jjfrias-books-topics {
	margin-top: clamp(1.3rem, 2.8vw, 2.2rem);
	padding: 1rem 1.15rem 0.8rem;
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1.15rem;
	background: rgba(255, 255, 255, 0.68);
	box-shadow: 0 12px 32px rgba(18, 55, 67, 0.045);
}

.jjfrias-books-topics ul {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jjfrias-books-topics li {
	min-width: 0;
}

.jjfrias-books-topics a {
	position: relative;
	display: flex;
	min-height: 6.9rem;
	align-items: center;
	justify-content: flex-start;
	padding: 0.35rem 0.25rem 0.7rem;
	flex-direction: column;
	gap: 0.65rem;
	border-radius: 0.75rem;
	font-size: 0.77rem;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.jjfrias-books-topics a::after {
	position: absolute;
	right: 25%;
	bottom: 0;
	left: 25%;
	height: 0.16rem;
	border-radius: 999px;
	background: currentColor;
	content: "";
	opacity: 0;
	transform: scaleX(0.55);
	transition: opacity 160ms ease, transform 160ms ease;
}

.jjfrias-books-topics a:hover,
.jjfrias-books-topics a[aria-current="page"] {
	background: rgba(255, 255, 255, 0.82);
}

.jjfrias-books-topics a[aria-current="page"]::after {
	opacity: 1;
	transform: scaleX(1);
}

.jjfrias-books-topic-icon {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.82);
}

.jjfrias-books-topic-icon svg {
	width: 1.9rem;
	height: 1.9rem;
}

.jjfrias-books-topics .is-all a { color: var(--jjfrias-books-ink); }
.jjfrias-books-topics .is-all .jjfrias-books-topic-icon { background: var(--jjfrias-books-ink); color: #fffdf8; }
.jjfrias-books-topics .is-narrativa a { color: var(--jjfrias-books-teal); }
.jjfrias-books-topics .is-ciencia-ficcion a { color: var(--jjfrias-books-green); }
.jjfrias-books-topics .is-literatura-infantil a { color: var(--jjfrias-books-amber); }
.jjfrias-books-topics .is-educacion a { color: var(--jjfrias-books-blue); }
.jjfrias-books-topics .is-divulgacion a { color: var(--jjfrias-books-purple); }
.jjfrias-books-topics .is-poesia a { color: var(--jjfrias-books-orange); }
.jjfrias-books-topics .is-album-ilustrado a { color: var(--jjfrias-books-coral); }

.jjfrias-books-topics a > span:last-child {
	color: var(--jjfrias-books-ink);
}

.jjfrias-books-latest {
	margin-top: clamp(1.45rem, 3vw, 2.4rem);
}

.jjfrias-books-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.jjfrias-books-section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.jjfrias-books-section-heading > div > p {
	margin-bottom: 0.35rem;
	color: var(--jjfrias-books-teal);
}

.jjfrias-books-results-context {
	margin-bottom: 0.35rem;
	color: var(--jjfrias-books-copy);
	font-size: 0.86rem;
}

.jjfrias-books-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.jjfrias-books-grid.has-1 {
	grid-template-columns: minmax(0, 18.5rem);
	justify-content: center;
}

.jjfrias-books-grid.has-2 {
	grid-template-columns: repeat(2, minmax(0, 18.5rem));
	justify-content: center;
}

.jjfrias-books-grid.has-3 {
	grid-template-columns: repeat(3, minmax(0, 18.5rem));
	justify-content: center;
}

.jjfrias-books-card {
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	padding: 0.8rem;
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.68);
	box-shadow: 0 10px 28px rgba(18, 55, 67, 0.045);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.jjfrias-books-card:hover {
	border-color: rgba(53, 166, 182, 0.42);
	box-shadow: 0 16px 34px rgba(18, 55, 67, 0.09);
}

.jjfrias-books-card-copy {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 0.8rem 0.2rem 0.15rem;
}

.jjfrias-books-card h3 {
	display: -webkit-box;
	margin-bottom: 0.28rem;
	overflow: hidden;
	font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: clamp(1.02rem, 0.96rem + 0.2vw, 1.18rem);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.jjfrias-books-card h3 a {
	text-decoration: none;
}

.jjfrias-books-card h3 a:hover {
	color: var(--jjfrias-books-teal);
}

.jjfrias-books-card .jjfrias-books-author {
	margin-bottom: 0.55rem;
	font-size: 0.78rem;
}

.jjfrias-books-card .jjfrias-books-chips {
	margin-bottom: 0.65rem;
}

.jjfrias-books-card .jjfrias-books-chips span {
	min-height: 1.5rem;
	padding: 0.18rem 0.5rem;
	font-size: 0.65rem;
}

.jjfrias-books-card-excerpt {
	display: -webkit-box;
	margin-bottom: 0.8rem;
	overflow: hidden;
	color: var(--jjfrias-books-copy);
	font-size: 0.82rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-height: 1.55;
}

.jjfrias-books-card-link {
	display: inline-flex;
	min-height: 2.55rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(18, 55, 67, 0.2);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 750;
	text-decoration: none;
}

.jjfrias-books-card-link:hover {
	border-color: var(--jjfrias-books-teal);
	background: rgba(53, 166, 182, 0.07);
}

.jjfrias-books-empty-results {
	display: grid;
	max-width: 44rem;
	margin: 0 auto;
	justify-items: center;
	padding: clamp(2rem, 5vw, 3.4rem);
	border: 1px dashed rgba(18, 55, 67, 0.24);
	border-radius: 1.15rem;
	background: rgba(255, 255, 255, 0.58);
	text-align: center;
}

.jjfrias-books-empty-results > span {
	display: grid;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	place-items: center;
	border-radius: 50%;
	background: rgba(53, 166, 182, 0.1);
	color: var(--jjfrias-books-teal);
}

.jjfrias-books-empty-results svg {
	width: 2.25rem;
	height: 2.25rem;
}

.jjfrias-books-empty-results h3 {
	margin-bottom: 0.6rem;
	font-size: 1.55rem;
}

.jjfrias-books-empty-results p {
	max-width: 38rem;
	margin-bottom: 0.75rem;
	color: var(--jjfrias-books-copy);
}

.jjfrias-books-empty-results a {
	font-weight: 750;
	text-underline-offset: 0.25em;
}

.jjfrias-books-pathways {
	margin-top: clamp(1.5rem, 3vw, 2.4rem);
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1.05rem;
	background: rgba(255, 255, 255, 0.68);
	box-shadow: 0 10px 28px rgba(18, 55, 67, 0.04);
}

.jjfrias-books-pathways ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.jjfrias-books-pathways li {
	--jjfrias-path-color: var(--jjfrias-books-teal);
	--jjfrias-path-bg: rgba(53, 166, 182, 0.055);
	min-width: 0;
	border-top: 0.2rem solid var(--jjfrias-path-color);
	background: var(--jjfrias-path-bg);
}

.jjfrias-books-pathways li:first-child {
	border-radius: 1.05rem 0 0 1.05rem;
}

.jjfrias-books-pathways li:last-child {
	border-radius: 0 1.05rem 1.05rem 0;
}

.jjfrias-books-pathways li + li {
	border-left: 1px solid var(--jjfrias-books-line);
}

.jjfrias-books-pathways .is-applied {
	--jjfrias-path-color: var(--jjfrias-books-amber-text);
	--jjfrias-path-bg: rgba(236, 168, 45, 0.055);
}

@media (hover: hover) and (pointer: fine) {
	.jjfrias-books-search button:hover,
	.jjfrias-books-primary-action:hover,
	.jjfrias-books-topics a:hover {
		transform: translateY(-2px);
	}

	.jjfrias-books-card:hover {
		transform: translateY(-3px);
	}
}

.jjfrias-books-pathways .is-perspectives {
	--jjfrias-path-color: var(--jjfrias-books-coral);
	--jjfrias-path-bg: rgba(233, 103, 95, 0.05);
}

.jjfrias-books-pathways .is-development {
	--jjfrias-path-color: var(--jjfrias-books-green);
	--jjfrias-path-bg: rgba(118, 167, 101, 0.055);
}

.jjfrias-books-pathways a {
	display: grid;
	grid-template-columns: 3.1rem minmax(0, 1fr);
	gap: 0.8rem;
	min-height: 6.7rem;
	align-items: center;
	padding: 1rem;
	text-decoration: none;
	transition: background-color 160ms ease;
}

.jjfrias-books-pathways a:hover {
	background: rgba(255, 255, 255, 0.48);
}

.jjfrias-books-pathway-icon {
	display: grid;
	width: 3.1rem;
	height: 3.1rem;
	place-items: center;
	border: 1px solid var(--jjfrias-path-color);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.72);
	color: var(--jjfrias-path-color);
}

.jjfrias-books-pathway-icon svg {
	width: 1.75rem;
	height: 1.75rem;
}

.jjfrias-books-pathways strong,
.jjfrias-books-pathways small {
	display: block;
}

.jjfrias-books-pathways strong {
	margin-bottom: 0.3rem;
	color: var(--jjfrias-path-color);
	font-size: 0.84rem;
	line-height: 1.25;
}

.jjfrias-books-pathways small {
	color: var(--jjfrias-books-copy);
	font-size: 0.7rem;
	line-height: 1.42;
}

@media (max-width: 1120px) {
	.jjfrias-books-hero-grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 1.5rem;
	}

	.jjfrias-books-featured {
		grid-template-columns: minmax(10.5rem, 0.82fr) minmax(0, 1.18fr);
		min-height: 25rem;
		padding: 1.2rem;
	}

	.jjfrias-books-cover--hero {
		height: 21rem;
	}

	.jjfrias-books-featured::after {
		display: none;
	}

}

@media (max-width: 960px) {
	.jjfrias-books-hero {
		padding-top: 2rem;
	}

	.jjfrias-books-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.4rem;
	}

	.jjfrias-books-intro h1 {
		max-width: none;
		font-size: clamp(3.1rem, 8vw, 4.8rem);
	}

	.jjfrias-books-lead {
		max-width: 44rem;
	}

	.jjfrias-books-featured {
		grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.25fr);
		min-height: 25rem;
	}

	.jjfrias-books-cover--hero {
		height: 22rem;
	}

	.jjfrias-books-topics ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 0.4rem;
	}

	.jjfrias-books-topics a {
		min-height: 6.2rem;
	}

	.jjfrias-books-grid,
	.jjfrias-books-pathways ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jjfrias-books-grid.has-1 {
		grid-template-columns: minmax(0, 22rem);
	}

	.jjfrias-books-grid.has-2,
	.jjfrias-books-grid.has-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jjfrias-books-grid.has-3 .jjfrias-books-card:last-child {
		grid-column: 1 / -1;
		width: calc((100% - clamp(0.8rem, 1.6vw, 1.2rem)) / 2);
		justify-self: center;
	}

	.jjfrias-books-card .jjfrias-books-cover {
		height: 15.25rem;
	}

	.jjfrias-books-pathways li:nth-child(3) {
		border-left: 0;
	}

	.jjfrias-books-pathways li:first-child,
	.jjfrias-books-pathways li:last-child {
		border-radius: 0;
	}

	.jjfrias-books-pathways li:nth-child(n+3) {
		border-top-width: 1px;
	}
}

@media (max-width: 680px) {
	.jjfrias-books-shell {
		width: min(100% - 1.25rem, 42rem);
	}

	.jjfrias-books-hero {
		padding-top: 1.6rem;
	}

	.jjfrias-books-intro h1 {
		font-size: clamp(2.75rem, 14vw, 4.15rem);
	}

	.jjfrias-books-search {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 0.55rem 0.65rem;
	}

	.jjfrias-books-search button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.jjfrias-books-benefits,
	.jjfrias-books-grid,
	.jjfrias-books-pathways ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.jjfrias-books-grid.has-1,
	.jjfrias-books-grid.has-2,
	.jjfrias-books-grid.has-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.jjfrias-books-grid.has-3 .jjfrias-books-card:last-child {
		grid-column: auto;
		width: auto;
	}

	.jjfrias-books-featured,
	.jjfrias-books-featured.is-empty {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.8rem;
		min-height: 0;
		padding: 1rem;
	}

	.jjfrias-books-cover--hero {
		height: 19rem;
	}

	.jjfrias-books-featured-copy {
		padding: 0.5rem 0.4rem 1rem;
	}

	.jjfrias-books-featured h2 {
		max-width: none;
		font-size: 2rem;
	}

	.jjfrias-books-empty-cover {
		height: 17rem;
	}

	.jjfrias-books-topics {
		padding: 0.8rem;
	}

	.jjfrias-books-topics ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jjfrias-books-topics a {
		min-height: 5.8rem;
		font-size: 0.75rem;
	}

	.jjfrias-books-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.jjfrias-books-card .jjfrias-books-cover {
		height: 19rem;
	}

	.jjfrias-books-pathways li,
	.jjfrias-books-pathways li + li,
	.jjfrias-books-pathways li:nth-child(3),
	.jjfrias-books-pathways li:nth-child(n+3) {
		border-top: 1px solid var(--jjfrias-books-line);
		border-left: 0;
	}

	.jjfrias-books-pathways li:first-child {
		border-top: 0.2rem solid var(--jjfrias-path-color);
	}

	.jjfrias-books-pathways a {
		min-height: 5.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jjfrias-books-page *,
	.jjfrias-books-page *::before,
	.jjfrias-books-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.jjfrias-books-hero,
	.jjfrias-books-featured,
	.jjfrias-books-card,
	.jjfrias-books-topics,
	.jjfrias-books-pathways,
	.jjfrias-books-pathways li,
	.jjfrias-books-benefit {
		background: Canvas;
	}

	.jjfrias-books-featured::before,
	.jjfrias-books-featured::after,
	.jjfrias-books-hero::after {
		display: none;
	}

	.jjfrias-books-topic-icon,
	.jjfrias-books-pathway-icon {
		border: 1px solid CanvasText;
	}
}
