.header__bottom,
.universal-links,
.header__profile,
#mobile-search,
#mobile-menu,
.header__controls,
.region-language,
.page-footer .parsyscolumncontrol.section:first-child,
.page-footer .text.parbase.section:nth-child(2) {
	display: none !important;
}

.header__top .header__brand {
	margin: 0 !important;
}

.header__top {
    align-items: center;
}

@media screen and (width >= 576px) {
    .header.parbase header {
        padding-block: 0.75rem;
    }
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
}

h3 {
	font-size: var(--font-size-xl);
}

body>.par>.container {
	width: unset !important;
	padding: unset !important;
	margin: unset !important;
}

#logo img {
	max-height: 2.375rem;
}

#main-content .parsys_column.interior-content {
	flex: 1 1 auto;
	min-width: 0;
	margin-block-end: 0 !important;
}

.parsys.hero_area {
	display: block !important;
	position: relative;
	float: none !important;
	padding: 2rem 0;
	margin-bottom: 2rem;
	background-color: var(--blue-darkest);
	isolation: isolate;
	overflow: hidden;
}

/* Wave art on a separate layer; parallax via JS `transform` (GPU-friendly). */
.hero-wave-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: transparent;
	background-image: url("/content/dam/oclc/worldcat/americas-250-year-bookshelf/images/250_hero-wave.svg");
	background-repeat: no-repeat;
	background-position: center 80%;
	background-size: cover;
	transform: translate3d(0, 0, 0);
}

.hero-wave-layer.hero-wave-layer--parallax {
	transition: transform .3s cubic-bezier(0.215, 0.610, 0.355, 1);
}

@media (prefers-reduced-motion: reduce) {
	.hero-wave-layer.hero-wave-layer--parallax {
		transition: none;
	}
}

.parsys.hero_area > :not(.hero-wave-layer) {
	position: relative;
	z-index: 1;
}

@media (width >= 576px) {
	.parsys.hero_area {
		padding-block: 3rem;
	}
}

@media (width >= 768px) {
	.parsys.hero_area {
		padding-block: 4rem;
	}
}

@media (width >= 992px) {
	.parsys.hero_area {
		padding-block: 5rem;
	}
}

.parsys.hero_area img {
	width: 100%;
	margin-block-end: 1rem;
}

.mobile-only {
	display: block;
}

.desktop-only {
	display: none;
}

@media (width >= 576px) {
	.desktop-only {
		display: block;
	}

	.mobile-only {
		display: none;
	}
}

.image:has([id^="divider-"]) {
	margin-block: 2.5rem;
}

[id^="divider-"] img {
	display: block;
	margin-inline: auto;
	max-height: 2rem;
}

.tagline-1 {
	font-size: var(--font-size-4x);
	font-weight: 700;
	line-height: var(--line-height-sm);
	letter-spacing: var(--auto-letter-spacing);
	margin-block: 1.5rem 0.5rem;
	color: var(--magenta);
	text-wrap: pretty;
}

@media (width >= 576px) {
	.tagline-1 {
		font-size: var(--font-size-5x);
	}
}

@media (width >= 1400px) {
	.tagline-1 {
		font-size: var(--font-size-6x);
	}
}

.tagline-2 {
	font-size: var(--font-size-2x);
	font-weight: 700;
	line-height: var(--line-height-sm);
	letter-spacing: var(--auto-letter-spacing);
	margin-bottom: 2rem;
}

span.text-xlarge {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-md);
    letter-spacing: var(--auto-letter-spacing);
}

.parsys.hero_area div.parsyscolumncontrol .cq-colctrl-1-fc {
	padding-inline: var(--page-edge-width) !important;
}

.hbox {
	padding: 2rem 2rem 1rem;
	margin-block: 3rem 4rem;
}

[id^="accent-img-"] img {
	display: block;
	margin-inline: auto;
	max-height: 17rem;
}


.book-grid-container {
	display: flex;
	flex-direction: row;
	gap: 1.25rem;
	align-items: stretch;
	margin-block-end: 2rem;
}

.year-rail {
	flex: 0 0 auto;
	position: sticky;
	top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.125rem;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding-inline: 0;
}

.year-rail__link,
.year-rail__link:visited {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--text-secondary);
	text-decoration: none;
	line-height: 1.5;
	padding: 0.3rem 0 0.15rem;
	border-right: 2px solid transparent;
	margin-right: 0;
	padding-right: 0.35rem;
    min-width: 56px;
	text-align: right;
	white-space: nowrap;
	transition:
		color 0.12s ease,
		border-color 0.12s ease;
}

.year-rail__link--active,
.year-rail__link--active:hover,
.year-rail__link--active:visited,
.year-rail__link--active:visited:hover {
	color: #236192;
	font-weight: 700;
	border-right-color: #ae2573;
	letter-spacing: 0.01em;
}

.year-rail__link:hover,
.year-rail__link:visited:hover {
	color: #236192;
	border-right-color: #ae2573;
}

.year-rail__link:focus-visible {
	outline: 2px solid #236192;
	outline-offset: 2px;
}

.book-grid {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 1rem 0.75rem;
	margin: 0 auto;
	align-items: stretch;
	list-style: none;
	padding: 0;
}

@media (width >= 576px) {
	.book-grid {
		grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	}
}

@media (width >= 768px) {
	.book-grid {
		grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	}
}

.year-entry {
	display: flex;
	justify-content: center;
	align-items: stretch;
	min-height: 0;
	scroll-margin-top: 6rem;
}

.year-entry:last-child {
	border-bottom: none;
}

a.col-book,
div.col-book {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.125rem;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	text-decoration: none;
	color: inherit;
	border-radius: 4px;
	margin: 0;
	padding: 0.5rem 0;
	transition: color 0.15s ease;
}

.book-card-body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
    padding-inline: 0.5rem;
}

.book-desc-overlay {
	position: absolute;
	inset: 0.125rem 0.325rem;
	z-index: 2;
	padding: 0.5rem 0.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0;
	background: rgba(255, 255, 255, 1);
	color: var(--text-primary, rgba(0,15,26,0.9));
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	overflow: hidden;
	border-radius: 4px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.1s ease,
		visibility 0.1s ease;
}

a.col-book:hover .book-desc-overlay {
	box-shadow: 0 0 0 2px #ae2573;
}

/* Inner span: line-clamp on <p> with multiple inline children can still paint lines past “…” in WebKit. */
.book-desc-overlay__inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 9;
	line-clamp: 9;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	font: inherit;
	line-height: inherit;
	max-height: calc(1.4em * 9);
	transform: translateY(10%);
	transition: transform 0.2s ease;
}

a.col-book:hover .book-desc-overlay,
a.col-book:focus-within .book-desc-overlay,
div.col-book:hover .book-desc-overlay,
div.col-book:focus-within .book-desc-overlay {
	opacity: 1;
	visibility: visible;
}

a.col-book:hover .book-desc-overlay__inner,
a.col-book:focus-within .book-desc-overlay__inner,
div.col-book:hover .book-desc-overlay__inner,
div.col-book:focus-within .book-desc-overlay__inner {
	transform: translateY(0);
}

div.col-book:focus-visible {
	outline: 2px solid #236192;
	outline-offset: 2px;
}

a.col-book:hover {
	color: #236192;
}

a.col-book:hover .book-year {
	color: #236192;
	font-weight: 600;
	letter-spacing: -0.01em;
}

a.col-book:focus-visible {
	outline: 2px solid #236192;
	outline-offset: 2px;
}

.book-year {
	text-align: center;
	font-weight: 400;
	font-size: 1.125rem;
	color: #595959;
	line-height: 1.1;
	flex-shrink: 0;
	letter-spacing: 0.03em;
	transition:
		color 0.15s ease,
		font-weight 0.15s ease,
		letter-spacing 0.15s ease;
}

/* Book grid: cover slot widths — single source for `.book-cover-slot` and JS `sizes` on cover `img`. */
:root {
	--book-cover-slot-width-narrow: 8rem;
	--book-cover-slot-width-wide: 10.5rem;
	/* Unitless px; must match the `@media (min-width: …)` breakpoint below (used only in main.js for `sizes`). */
	--book-cover-slot-layout-min-px: 576;
}

.book-cover-slot {
	width: var(--book-cover-slot-width-narrow);
	aspect-ratio: 2 / 3;
	flex: 1 0 auto;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding-block: 0.25rem 0.375rem;
	max-width: 100%;
}

.book-cover-frame {
	width: 100%;
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Remote cover: canvas (error fallback only) + skeleton while loading + photo. */
.book-cover-frame--dual {
	display: block;
}

.book-cover-frame--dual > .cover-fallback,
.book-cover-frame--dual > .book-cover-skeleton,
.book-cover-frame--dual > .book-cover-photo {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

.book-cover-frame--remote-loading > .book-cover-skeleton {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 2 / 3;
	border-radius: 4px;
	box-sizing: border-box;
	box-shadow: 0 0 0 1px rgba(0, 15, 26, 0.12);
	background-color: #e8eaed;
	overflow: hidden;
	z-index: 0;
	pointer-events: none;
}

/*
 * Shimmer via ::after + transform (compositor-friendly; avoids background-position loop glitches).
 * Pattern as in https://cr0x.net/en/pure-css-skeleton-screens/ — static base + translucent band swept across.
 */
.book-cover-frame--remote-loading > .book-cover-skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate3d(-100%, 0, 0);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.42) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	animation: book-cover-skeleton-sweep 2.25s ease-in-out infinite ;
}

@keyframes book-cover-skeleton-sweep {
	from {
		transform: translate3d(-100%, 0, 0);
	}
	to {
		transform: translate3d(100%, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.book-cover-frame--remote-loading > .book-cover-skeleton::after {
		display: none;
	}

	.book-cover-frame--remote-loading > .book-cover-skeleton {
		box-shadow: 0 0 0 1px rgba(0, 15, 26, 0.14);
	}
}

.book-cover-frame img,
.book-cover-frame canvas.cover-fallback {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	object-fit: contain;
	object-position: center;
	border-radius: 4px;
	box-sizing: border-box;
	border: 1px solid transparent;
	box-shadow: 0 0 0 1px rgba(0, 15, 26, 0.15);
	transition: box-shadow 0.15s ease;
}

.book-cover-frame img.book-cover-photo {
	z-index: 1;
	transition:
		opacity 0.22s ease-out,
		box-shadow 0.15s ease;
}

.book-cover-frame img.book-cover-photo.book-cover-photo--pending {
	opacity: 0;
	pointer-events: none;
}

.book-cover-frame .cover-fallback.cover-fallback--hidden {
	pointer-events: none;
}

.book-cover-frame canvas.cover-fallback {
	height: auto;
	max-height: 100%;
	aspect-ratio: 2 / 3;
	object-fit: fill;
}

.book-cover-frame--dual > canvas.cover-fallback {
	aspect-ratio: auto;
	object-fit: contain;
	opacity: 1;
	visibility: visible;
	transition:
		opacity 0.22s ease-out,
		visibility 0s linear;
	transition-delay: 0s, 0.4s;
}

.book-cover-frame--dual > canvas.cover-fallback.cover-fallback--hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.22s ease-out,
		visibility 0s linear;
	/* Wait while the photo fades in, then ease the canvas out (visibility flips after opacity). */
	transition-delay: 0.22s, 0.4s;
}

@media (prefers-reduced-motion: reduce) {
	.book-cover-frame--dual > canvas.cover-fallback,
	.book-cover-frame--dual > canvas.cover-fallback.cover-fallback--hidden {
		transition: none;
	}
}

a.col-book:hover .book-cover-frame img,
a.col-book:hover .book-cover-frame canvas.cover-fallback,
a.col-book:hover .book-cover-frame .book-cover-skeleton {
	box-shadow: 0 0 0 2px #ae2573;
	filter: brightness(0.96);
}

.book-title {
	margin: 0;
	margin-top: auto;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	flex-shrink: 0;
	min-height: 3rem;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	display: block;
	text-align: center;
	transition: color 0.15s ease;
}

.book-title__clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
	max-height: calc(1.4em * 4);
}

.book-title strong {
	font-weight: 600;
	transition: color 0.15s ease;
}

.book-title.book-title--long {
	font-size: 0.875rem;
}

.book-by-line {
	font-weight: 400;
}

.book-genre {
	display: none;
}

#status {
	text-align: center;
	color: #666;
	padding: 2rem;
}

#status.error {
	color: #9b2c2c;
}


@media (width >= 576px) {
	/* Breakpoint: keep 576 in sync with :root --book-cover-slot-layout-min-px (plain @media cannot use var()). */
	.book-year {
		font-size: 1.25rem;
	}

	.book-cover-slot {
		width: var(--book-cover-slot-width-wide);
	}
}

#faq {
	margin-block: 1rem;
}

.thank-you {
	font-size: var(--font-size-xl);
	color: var(--magenta);
	margin-block: 3rem;
	text-align: center;
	text-wrap: pretty;
	max-width: 48rem;
	margin-inline: auto;
}

.supplementary-copyright {
	font-size: var(--font-size-xs);
	color: var(--text-secondary);
	margin-block: 4rem 0;
	border: 1px solid var(--border-3);
	padding: 1rem;
	text-align: center;
}
