/**
 * JJFrías 0.10.19 — 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;
	overflow: hidden;
	padding: clamp(1.2rem, 2vw, 1.75rem) 0 clamp(0.55rem, 1vw, 0.8rem);
	background:
		radial-gradient(circle at 77% 26%, rgba(244, 201, 93, 0.16), transparent 25rem),
		radial-gradient(circle at 95% 92%, rgba(92, 157, 119, 0.12), transparent 24rem),
		linear-gradient(115deg, rgba(255, 253, 248, 0.98) 0 38%, rgba(255, 251, 243, 0.9) 61%, rgba(238, 244, 232, 0.64) 100%),
		repeating-linear-gradient(0deg, rgba(18, 55, 67, 0.012) 0 1px, transparent 1px 4px);
}

.jjfrias-books-hero::before,
.jjfrias-books-hero::after {
	position: absolute;
	content: "";
	pointer-events: none;
}

.jjfrias-books-hero::before {
	top: -10rem;
	right: -7rem;
	width: 29rem;
	height: 29rem;
	border: 1px solid rgba(236, 168, 45, 0.18);
	border-radius: 50%;
}

.jjfrias-books-hero::after {
	right: -5rem;
	bottom: -8rem;
	width: 25rem;
	height: 17rem;
	border-radius: 58% 0 0 0;
	background: linear-gradient(145deg, rgba(116, 159, 103, 0.11), rgba(53, 166, 182, 0.04));
}

.jjfrias-books-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(1.35rem, 3vw, 3rem);
	align-items: stretch;
}

.jjfrias-books-intro {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 0.15rem 0 0;
}

.jjfrias-books-intro > p:empty {
	display: none !important;
	margin: 0 !important;
}

.jjfrias-books-eyebrow,
.jjfrias-books-featured-label,
.jjfrias-books-section-heading > div > p {
	margin-bottom: 0.55rem;
	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: 8.8ch;
	margin-bottom: 0.48rem;
	font-size: clamp(2.9rem, 4.35vw, 4.55rem);
	line-height: 0.93;
}

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

.jjfrias-books-lead {
	max-width: 35rem;
	margin-bottom: 0.78rem;
	color: var(--jjfrias-books-copy);
	font-size: clamp(0.94rem, 0.92rem + 0.12vw, 1.04rem);
	line-height: 1.55;
}

.jjfrias-books-search {
	display: grid;
	grid-template-columns: 1.45rem minmax(0, 1fr) auto !important;
	gap: 0.65rem;
	align-items: center;
	width: 100%;
	min-height: 3.6rem;
	margin-bottom: 0.62rem;
	padding: 0.32rem 0.38rem 0.32rem 0.95rem;
	border: 1px solid rgba(34, 83, 89, 0.22);
	border-radius: 0.72rem;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 24px rgba(18, 55, 67, 0.05);
}

.jjfrias-books-search > br {
	display: none !important;
}

.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 {
	-webkit-appearance: none;
	appearance: none;
	width: 100% !important;
	min-width: 0;
	height: 2.85rem;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--jjfrias-books-ink);
	font: inherit;
	font-size: 1rem;
}

.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.62rem;
	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;
	width: 100%;
	max-width: 32rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.62rem;
	margin-top: auto;
}

.jjfrias-books-benefit {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto minmax(0, 1fr);
	gap: 0.48rem;
	min-height: 7.6rem;
	align-content: start;
	justify-items: center;
	padding: 0.72rem 0.48rem 0.68rem;
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 0.72rem;
	background: rgba(255, 255, 255, 0.66);
	text-align: center;
}

.jjfrias-books-benefit > span {
	display: grid;
	width: 3.45rem;
	height: 3.45rem;
	place-items: center;
	border: 1px solid rgba(118, 167, 101, 0.24);
	border-radius: 0.95rem;
	background: linear-gradient(145deg, #fff, rgba(118, 167, 101, 0.1));
	box-shadow: 0 0.38rem 0.85rem rgba(18, 55, 67, 0.08);
}

.jjfrias-books-benefit.is-idea > span {
	border-color: rgba(236, 168, 45, 0.22);
	background: linear-gradient(145deg, #fff, rgba(236, 168, 45, 0.11));
}

.jjfrias-books-benefit.is-criterion > span {
	border-color: rgba(53, 166, 182, 0.22);
	background: linear-gradient(145deg, #fff, rgba(53, 166, 182, 0.1));
}

.jjfrias-books-benefit svg {
	width: 2.55rem;
	height: 2.55rem;
	overflow: visible;
}

.jjfrias-books-benefit p {
	display: flex;
	width: 100%;
	align-items: center;
	flex-direction: column;
	margin-bottom: 0;
	line-height: 1.25;
}

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

.jjfrias-books-benefit strong {
	display: flex;
	min-height: 2.35em;
	max-width: 11ch;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.22rem;
	font-size: 0.82rem;
	line-height: 1.16;
}

.jjfrias-books-benefit small {
	display: flex;
	min-height: 4.05em;
	max-width: 18ch;
	align-items: flex-start;
	justify-content: center;
	color: var(--jjfrias-books-copy);
	font-size: 0.64rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.jjfrias-books-featured {
	position: relative;
	display: grid;
	overflow: hidden;
	height: 100%;
	grid-template-columns: minmax(14rem, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(0.9rem, 1.65vw, 1.4rem);
	min-width: 0;
	min-height: 27.8rem;
	align-self: stretch;
	align-items: stretch;
	padding: clamp(0.72rem, 1.25vw, 1rem);
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1.35rem;
	background:
		radial-gradient(circle at 20% 46%, rgba(244, 201, 93, 0.24) 0 21%, transparent 21.3%),
		linear-gradient(132deg, rgba(255, 255, 255, 0.98), rgba(253, 248, 237, 0.96));
	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: -5%;
	bottom: -18%;
	width: 51%;
	height: 48%;
	border-radius: 70% 0 0 0;
	background: linear-gradient(145deg, rgba(161, 191, 137, 0.22), rgba(89, 139, 111, 0.36));
}

.jjfrias-books-featured::after {
	right: 1.75rem;
	bottom: 1.25rem;
	width: 5.4rem;
	height: 5.4rem;
	background-image: radial-gradient(circle, rgba(183, 130, 26, 0.68) 1.35px, transparent 1.5px);
	background-size: 0.82rem 0.82rem;
	opacity: 0.6;
}

.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 {
	overflow: hidden;
	height: 100%;
	min-height: clamp(21.2rem, 29vw, 24.8rem);
	padding: 0.15rem;
	border: 1px solid rgba(18, 55, 67, 0.08);
	border-radius: 1rem;
	background:
		radial-gradient(circle at 48% 46%, rgba(255, 255, 255, 0.96) 0 39%, transparent 39.4%),
		linear-gradient(150deg, rgba(223, 238, 219, 0.88), rgba(250, 235, 196, 0.76));
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

.jjfrias-books-cover.jjfrias-books-cover--hero > a {
	position: absolute;
	inset: 0.38rem;
	width: auto;
	height: auto;
}

.jjfrias-books-featured .jjfrias-books-cover--hero::before {
	position: absolute;
	top: 8%;
	left: 8%;
	width: 1.1rem;
	height: 72%;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--jjfrias-books-teal), var(--jjfrias-books-green), var(--jjfrias-books-amber));
	content: "";
	opacity: 0.68;
}

.jjfrias-books-featured .jjfrias-books-cover-image {
	position: relative;
	z-index: 1;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0.85rem 1rem 1.25rem rgba(18, 55, 67, 0.18);
	transform: scale(1.28);
	transform-origin: center;
}

.jjfrias-books-cover > a {
	position: absolute;
	inset: 0.7rem;
	display: flex;
	width: auto;
	height: auto;
	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;
	display: flex;
	min-width: 0;
	align-self: stretch;
	justify-content: space-between;
	flex-direction: column;
	padding: 0.25rem clamp(0.15rem, 1vw, 0.55rem) 0.25rem 0;
}

.jjfrias-books-featured-label {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 0.45rem;
	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: 10ch;
	margin-bottom: 0.18rem;
	overflow: hidden;
	font-size: clamp(2rem, 2.25vw, 2.72rem);
	-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 .jjfrias-books-author {
	margin-bottom: 0.48rem;
	color: #5b914e;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.3vw, 1.3rem);
	font-weight: 700;
}

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

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

.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;
	align-self: flex-start;
}

.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(0.6rem, 1vw, 0.85rem);
	padding: clamp(0.72rem, 1.35vw, 1rem) clamp(0.55rem, 1.2vw, 0.9rem);
	border: 1px solid var(--jjfrias-books-line);
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.76);
	box-shadow: 0 16px 38px rgba(18, 55, 67, 0.06);
}

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

.jjfrias-books-topics li {
	--jjfrias-topic-color: var(--jjfrias-books-ink);
	--jjfrias-topic-soft: rgba(18, 55, 67, 0.07);
	min-width: 0;
}

.jjfrias-books-topics li + li {
	border-left: 1px solid rgba(18, 55, 67, 0.11);
}

.jjfrias-books-topics a {
	position: relative;
	display: flex;
	min-height: 8rem;
	align-items: center;
	justify-content: flex-start;
	padding: 0.62rem 0.3rem 0.78rem;
	flex-direction: column;
	gap: 0.8rem;
	border-radius: 0.95rem;
	color: var(--jjfrias-topic-color);
	font-size: 0.8rem;
	font-weight: 750;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.jjfrias-books-topics a::after {
	position: absolute;
	right: 18%;
	bottom: 0;
	left: 18%;
	height: 0.22rem;
	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: linear-gradient(180deg, var(--jjfrias-topic-soft), rgba(255, 255, 255, 0.82));
	box-shadow: inset 0 0 0 1px var(--jjfrias-topic-soft), 0 12px 24px rgba(18, 55, 67, 0.055);
}

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

.jjfrias-books-topic-icon {
	display: grid;
	width: 4.5rem;
	height: 4.5rem;
	place-items: center;
	border: 0;
	border-radius: 1.15rem;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), var(--jjfrias-topic-soft));
	box-shadow: inset 0 0 0 1px currentColor, 0 8px 18px rgba(18, 55, 67, 0.07);
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.jjfrias-books-topic-icon svg {
	width: 3rem;
	height: 3rem;
	overflow: visible;
}

.jjfrias-books-topics a:hover .jjfrias-books-topic-icon,
.jjfrias-books-topics a[aria-current="page"] .jjfrias-books-topic-icon {
	background: linear-gradient(145deg, #fff, var(--jjfrias-topic-soft));
	color: var(--jjfrias-topic-color);
	box-shadow: inset 0 0 0 2px currentColor, 0 12px 24px rgba(18, 55, 67, 0.12);
	transform: translateY(-0.12rem) scale(1.035);
}

.jjfrias-books-topics .is-all { --jjfrias-topic-color: var(--jjfrias-books-ink); --jjfrias-topic-soft: rgba(18, 55, 67, 0.1); }
.jjfrias-books-topics .is-narrativa { --jjfrias-topic-color: #1a9ea8; --jjfrias-topic-soft: rgba(26, 158, 168, 0.11); }
.jjfrias-books-topics .is-ciencia-ficcion { --jjfrias-topic-color: #6d9d52; --jjfrias-topic-soft: rgba(109, 157, 82, 0.12); }
.jjfrias-books-topics .is-literatura-infantil { --jjfrias-topic-color: #e5a21c; --jjfrias-topic-soft: rgba(229, 162, 28, 0.12); }
.jjfrias-books-topics .is-educacion { --jjfrias-topic-color: #3f8fd0; --jjfrias-topic-soft: rgba(63, 143, 208, 0.12); }
.jjfrias-books-topics .is-divulgacion { --jjfrias-topic-color: #8b66b0; --jjfrias-topic-soft: rgba(139, 102, 176, 0.12); }
.jjfrias-books-topics .is-poesia { --jjfrias-topic-color: #e87824; --jjfrias-topic-soft: rgba(232, 120, 36, 0.11); }
.jjfrias-books-topics .is-album-ilustrado { --jjfrias-topic-color: #e65f64; --jjfrias-topic-soft: rgba(230, 95, 100, 0.11); }

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

.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 (min-width: 961px) {
	.jjfrias-books-hero-grid {
		--jjfrias-books-benefits-drop: clamp(1.5rem, 2vw, 1.75rem);
		padding-bottom: var(--jjfrias-books-benefits-drop);
	}

	.jjfrias-books-search {
		transform: translateY(calc(var(--jjfrias-books-benefits-drop) / 2));
	}

	.jjfrias-books-benefits {
		transform: translateY(var(--jjfrias-books-benefits-drop));
	}

	.jjfrias-books-featured {
		height: auto;
		margin-top: 0.45rem;
		box-shadow: none;
	}
}

@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(11.5rem, 0.98fr) minmax(0, 1.02fr);
		min-height: 26rem;
		padding: 0.85rem;
	}

	.jjfrias-books-cover--hero {
		height: 100%;
		min-height: 22.5rem;
	}

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

	.jjfrias-books-benefit {
		min-height: 7.3rem;
		padding: 0.6rem 0.38rem;
	}

	.jjfrias-books-benefit > span {
		width: 3.15rem;
		height: 3.15rem;
	}

}

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

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

	.jjfrias-books-intro h1 {
		max-width: none;
		font-size: clamp(2.85rem, 7vw, 4rem);
	}

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

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

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

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

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

	.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.05rem;
	}

	.jjfrias-books-intro h1 {
		font-size: clamp(2.55rem, 12vw, 3.65rem);
	}

	.jjfrias-books-search {
		grid-template-columns: 1.25rem minmax(0, 1fr) auto !important;
		gap: 0.45rem;
		padding: 0.32rem 0.35rem 0.32rem 0.75rem;
	}

	.jjfrias-books-search button {
		grid-column: auto;
		width: auto;
		min-width: 5rem;
		padding-inline: 0.8rem;
	}

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

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

	.jjfrias-books-benefit {
		gap: 0.4rem;
		min-height: 7.05rem;
		padding: 0.65rem 0.3rem;
	}

	.jjfrias-books-benefit > span {
		width: 2.95rem;
		height: 2.95rem;
	}

	.jjfrias-books-benefit strong {
		font-size: 0.72rem;
	}

	.jjfrias-books-benefit small {
		font-size: 0.61rem;
	}

	.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: 20.5rem;
		min-height: 20.5rem;
	}

	.jjfrias-books-featured-copy {
		display: block;
		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.72rem 0.58rem 0.65rem;
	}

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

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

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

	.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;
	}
}
