/* =========================================================
   ASTERROW BOOKS CATALOG 3.0
   Clean continuous catalog grid
   ========================================================= */

.asterrow-books-grid-shell {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	box-sizing: border-box;
	padding: 0 clamp(18px, 2.4vw, 34px);
}

.asterrow-books-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: clamp(24px, 2.8vw, 42px);
	row-gap: clamp(60px, 6vw, 92px);
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	box-sizing: border-box;
}

.asterrow-book-card {
	min-width: 0;
	margin: 0;
}

.asterrow-book-card-link {
	display: block;
	height: 100%;
	color: #050505;
	text-decoration: none !important;
	outline: none;
}

.asterrow-book-card-link:focus-visible {
	outline: 2px solid #050505;
	outline-offset: 7px;
}

/* Consistent cover geometry without cropping artwork. */
.asterrow-book-cover {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #f4f4f2;
	box-sizing: border-box;
}

.asterrow-book-cover-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
	transform: translateY(0);
	transition: transform .2s ease, opacity .2s ease;
}

.asterrow-book-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;
	box-sizing: border-box;
	background: #f4f4f2;
	color: #777;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .14em;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

/* Simple hard rectangle in the top-right corner. */
.asterrow-book-status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	margin: 0;
	padding: 7px 10px 6px;
	background: #050505;
	color: #fff;
	border: 1px solid #050505;
	border-radius: 0;
	box-sizing: border-box;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .13em;
	line-height: 1;
	text-transform: uppercase;
}

/* Visible only to logged-in editors because PHP only renders it for them. */
.asterrow-book-admin-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 7px 9px 6px;
	background: #fff;
	color: #050505;
	border: 1px solid #050505;
	border-radius: 0;
	box-sizing: border-box;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
}

.asterrow-book-info {
	padding-top: 18px;
}

.asterrow-book-title {
	margin: 0 0 9px;
	color: #050505;
	font-size: clamp(17px, 1.4vw, 21px);
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: 1.03;
	text-transform: uppercase;
}

.asterrow-book-series {
	margin: 0 0 8px;
	color: #666;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.45;
	text-transform: uppercase;
}

.asterrow-book-formats {
	margin: 0 0 8px;
	color: #050505;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .075em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Up to two genres + release date. Keep natural title-case date formatting. */
.asterrow-book-meta {
	margin: 0;
	color: #777;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.5;
}

.asterrow-books-empty {
	grid-column: 1 / -1;
	padding: 36px 0;
	border-top: 1px solid #d9d9d5;
	border-bottom: 1px solid #d9d9d5;
	color: #555;
	font-size: 15px;
}

.asterrow-books-empty p {
	margin: 0;
}

/* Quiet interaction: motion, not ecommerce theatrics. */
@media (hover: hover) and (pointer: fine) {
	.asterrow-book-card-link:hover .asterrow-book-cover-image {
		transform: translateY(-4px);
	}

	.asterrow-book-card-link:hover .asterrow-book-title {
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asterrow-book-cover-image {
		transition: none;
	}
}

/* Four -> three -> two. */
@media (max-width: 1120px) {
	.asterrow-books-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: clamp(22px, 3vw, 34px);
		row-gap: 68px;
	}
}

@media (max-width: 780px) {
	.asterrow-books-grid-shell {
		padding-left: 18px;
		padding-right: 18px;
	}

	.asterrow-books-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
		row-gap: 48px;
	}

	.asterrow-book-info {
		padding-top: 14px;
	}

	.asterrow-book-title {
		font-size: 16px;
	}

	.asterrow-book-series {
		font-size: 9px;
	}

	.asterrow-book-formats,
	.asterrow-book-meta {
		font-size: 10px;
	}

	.asterrow-book-status-badge,
	.asterrow-book-admin-badge {
		top: 8px;
		min-height: 24px;
		padding: 6px 7px 5px;
		font-size: 8px;
	}

	.asterrow-book-status-badge {
		right: 8px;
	}

	.asterrow-book-admin-badge {
		left: 8px;
	}
}


/* =========================================================
   PER-GRID APPEARANCE
   Select Light or Dark per individual Books Grid block.
   ========================================================= */

.asterrow-books-grid-shell.is-appearance-light {
	color: #050505;
}

.asterrow-books-grid-shell.is-appearance-dark {
	color: #ffffff;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-card-link,
.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-title {
	color: #ffffff;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-series,
.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-meta {
	color: #9a9a9a;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-formats {
	color: #ffffff;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-card-link:focus-visible {
	outline-color: #ffffff;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-cover,
.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-cover-placeholder {
	background: #151515;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-cover-placeholder {
	color: #a8a8a8;
}

.asterrow-books-grid-shell.is-appearance-dark .asterrow-books-empty {
	border-top-color: #333333;
	border-bottom-color: #333333;
	color: #b8b8b8;
}

@media (hover: hover) and (pointer: fine) {
	.asterrow-books-grid-shell.is-appearance-dark
	.asterrow-book-card-link:hover
	.asterrow-book-title {
		text-decoration-color: #ffffff;
	}
}


/* =========================================================
   DISPLAY PRESETS
   Covers-only grids naturally collapse to the image because
   PHP omits the book-info wrapper when nothing is displayed.
   ========================================================= */

.asterrow-books-grid-shell .asterrow-book-card-link {
	min-width: 0;
}
/* =========================================================
   ASTERROW BUY BOOK
   ========================================================= */

.asterrow-buy-book-block {
	display: flex;
	width: 100%;
}

.asterrow-buy-book-block.is-align-left {
	justify-content: flex-start;
}

.asterrow-buy-book-block.is-align-center {
	justify-content: center;
}

.asterrow-buy-book-block.is-align-right {
	justify-content: flex-end;
}

.asterrow-buy-book-block.is-width-auto .asterrow-buy-trigger {
	width: auto;
}

.asterrow-buy-book-block.is-width-full .asterrow-buy-trigger {
	width: 100%;
}



.asterrow-buy-trigger {
	appearance: none;
	border: 1px solid #050505;
	border-radius: 0;
	background: #050505;
	color: #ffffff;
	min-height: 48px;
	padding: 14px 24px;
	cursor: pointer;
	font: inherit;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color .18s ease, color .18s ease;
}

.asterrow-buy-trigger:focus-visible,
.asterrow-buy-close:focus-visible,
.asterrow-buy-retailers a:focus-visible {
	outline: 2px solid #050505;
	outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
	.asterrow-buy-trigger:hover {
		background: #ffffff;
		color: #050505;
	}
}


/* Button appearance options */
.asterrow-buy-book-block.is-style-dark-solid .asterrow-buy-trigger {
	background: #050505;
	color: #ffffff;
	border-color: #050505;
}

.asterrow-buy-book-block.is-style-light-solid .asterrow-buy-trigger {
	background: #ffffff;
	color: #050505;
	border-color: #ffffff;
}

.asterrow-buy-book-block.is-style-dark-outline .asterrow-buy-trigger {
	background: transparent;
	color: #050505;
	border-color: #050505;
}

.asterrow-buy-book-block.is-style-light-outline .asterrow-buy-trigger {
	background: transparent;
	color: #ffffff;
	border-color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
	.asterrow-buy-book-block.is-style-dark-solid .asterrow-buy-trigger:hover {
		background: #ffffff;
		color: #050505;
		border-color: #050505;
	}

	.asterrow-buy-book-block.is-style-light-solid .asterrow-buy-trigger:hover {
		background: #050505;
		color: #ffffff;
		border-color: #ffffff;
	}

	.asterrow-buy-book-block.is-style-dark-outline .asterrow-buy-trigger:hover {
		background: #050505;
		color: #ffffff;
	}

	.asterrow-buy-book-block.is-style-light-outline .asterrow-buy-trigger:hover {
		background: #ffffff;
		color: #050505;
	}
}

.asterrow-buy-modal[hidden] {
	display: none !important;
}

.asterrow-buy-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 22px;
	box-sizing: border-box;
}

.asterrow-buy-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 5, .72);
}

.asterrow-buy-dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: calc(100vh - 44px);
	overflow: auto;
	background: #ffffff;
	color: #050505;
	border: 1px solid #050505;
	border-radius: 0;
	box-sizing: border-box;
}

.asterrow-buy-dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 30px 24px;
	border-bottom: 1px solid #d9d9d5;
}

.asterrow-buy-kicker {
	margin: 0 0 8px;
	color: #666;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.asterrow-buy-dialog h2 {
	margin: 0;
	color: #050505;
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: .95;
	text-transform: uppercase;
}

.asterrow-buy-close {
	appearance: none;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid #050505;
	border-radius: 0;
	background: #ffffff;
	color: #050505;
	cursor: pointer;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
}

.asterrow-buy-formats {
	padding: 8px 30px 30px;
}

.asterrow-buy-format-group {
	padding: 26px 0 0;
}

.asterrow-buy-format-group + .asterrow-buy-format-group {
	margin-top: 26px;
	border-top: 1px solid #d9d9d5;
}

.asterrow-buy-format-group h3 {
	margin: 0 0 14px;
	color: #050505;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.asterrow-buy-retailers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.asterrow-buy-retailers a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
	padding: 13px 15px;
	box-sizing: border-box;
	border: 1px solid #050505;
	background: #ffffff;
	color: #050505;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .18s ease, color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
	.asterrow-buy-retailers a:hover {
		background: #050505;
		color: #ffffff;
	}
}

.asterrow-buy-empty-admin {
	padding: 14px 16px;
	border: 1px dashed #999;
	color: #666;
	font-size: 13px;
}

body.asterrow-buy-modal-open {
	overflow: hidden;
}

@media (max-width: 620px) {
	.asterrow-buy-modal {
		padding: 14px;
	}

	.asterrow-buy-dialog {
		max-height: calc(100vh - 28px);
	}

	.asterrow-buy-dialog-head {
		padding: 24px 20px 20px;
	}

	.asterrow-buy-formats {
		padding: 4px 20px 24px;
	}

	.asterrow-buy-retailers {
		grid-template-columns: 1fr;
	}

	.asterrow-buy-book-block.is-width-full .asterrow-buy-trigger {
		width: 100%;
	}
}

/* =========================================================
   ASTERROW PUBLISHING SUITE — BOOK DETAILS
   ========================================================= */
.asterrow-book-details {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: 100%;
	border-top: 1px solid #d9d9d5;
	border-bottom: 1px solid #d9d9d5;
}
.asterrow-detail-cell {
	min-width: 0;
	padding: 26px clamp(18px, 2.2vw, 32px) 28px;
	border-right: 1px solid #d9d9d5;
	box-sizing: border-box;
}
.asterrow-detail-cell:nth-child(4n) { border-right: 0; }
.asterrow-detail-cell:nth-child(n+5) { border-top: 1px solid #d9d9d5; }
.asterrow-detail-label {
	margin: 0 0 11px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	line-height: 1.2;
	text-transform: uppercase;
}
.asterrow-detail-value {
	margin: 0;
	font-size: clamp(15px, 1.3vw, 19px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.3;
}
.asterrow-detail-secondary {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.5;
	text-transform: uppercase;
}
.asterrow-book-details.is-light { background: #fff; color: #050505; }
.asterrow-book-details.is-light .asterrow-detail-label { color: #666; }
.asterrow-book-details.is-light .asterrow-detail-secondary { color: #666; }
.asterrow-book-details.is-dark { background: #050505; color: #fff; border-color: #333; }
.asterrow-book-details.is-dark .asterrow-detail-cell { border-color: #333; }
.asterrow-book-details.is-dark .asterrow-detail-label { color: #9a9a9a; }
.asterrow-book-details.is-dark .asterrow-detail-secondary { color: #9a9a9a; }
.asterrow-book-details.alignwide,
.asterrow-book-details.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* =========================================================
   BOOK HERO
   ========================================================= */
.asterrow-book-hero {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	padding: clamp(56px, 7vw, 100px) clamp(22px, 4vw, 64px);
}
.asterrow-book-hero.is-dark { background: #050505; color: #fff; }
.asterrow-book-hero.is-light { background: #fff; color: #050505; }
.asterrow-book-hero-inner {
	display: grid;
	grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
	gap: clamp(42px, 7vw, 110px);
	align-items: center;
	max-width: 1280px;
	margin: 0 auto;
}
.asterrow-book-hero-cover { aspect-ratio: 2 / 3; overflow: hidden; }
.asterrow-book-hero-cover img { width: 100%; height: 100%; object-fit: contain; display: block; }
.asterrow-book-hero-byline,
.asterrow-book-hero-series,
.asterrow-book-hero-meta {
	margin: 0 0 16px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .15em;
	text-transform: uppercase;
}
.asterrow-book-hero.is-dark .asterrow-book-hero-byline,
.asterrow-book-hero.is-dark .asterrow-book-hero-series,
.asterrow-book-hero.is-dark .asterrow-book-hero-meta { color: #aaa; }
.asterrow-book-hero.is-light .asterrow-book-hero-byline,
.asterrow-book-hero.is-light .asterrow-book-hero-series,
.asterrow-book-hero.is-light .asterrow-book-hero-meta { color: #666; }
.asterrow-book-hero-series { margin-top: -6px; }
.asterrow-book-hero h1 {
	margin: 0;
	font-size: clamp(3.3rem, 7vw, 7.2rem);
	font-weight: 900;
	letter-spacing: -.065em;
	line-height: .84;
	text-transform: uppercase;
}
.asterrow-book-hero-title,
.asterrow-book-hero-subtitle { display: block; }
.asterrow-book-hero-subtitle {
	margin-top: .18em;
	font-size: .48em;
	letter-spacing: -.045em;
	line-height: 1;
}
.asterrow-book-hero-tagline {
	max-width: 760px;
	margin: 28px 0 24px;
	font-size: clamp(1.15rem, 2vw, 1.65rem);
	font-weight: 600;
	line-height: 1.45;
}
.asterrow-book-hero .asterrow-buy-book-block { margin-top: 30px; }

/* =========================================================
   INCLUDED WORKS
   ========================================================= */
.asterrow-included-works {
	padding: clamp(46px, 6vw, 82px) clamp(22px, 4vw, 64px);
	box-sizing: border-box;
}
.asterrow-included-works.alignwide,
.asterrow-included-works.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.asterrow-included-works.is-light { background: #fff; color: #050505; }
.asterrow-included-works.is-dark { background: #050505; color: #fff; }
.asterrow-included-works-head,
.asterrow-included-works-list { max-width: 1280px; margin-left: auto; margin-right: auto; }
.asterrow-included-works-head { margin-bottom: 28px; }
.asterrow-included-works-head h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 900;
	letter-spacing: -.05em;
	line-height: .95;
	text-transform: uppercase;
}
.asterrow-included-works-list {
	list-style: none;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	border-top: 1px solid #d9d9d5;
}
.asterrow-included-works-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 22px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid #d9d9d5;
}
.asterrow-included-works.is-dark .asterrow-included-works-list,
.asterrow-included-works.is-dark .asterrow-included-works-list li { border-color: #333; }
.asterrow-included-work-main { font-size: clamp(17px, 1.7vw, 23px); font-weight: 800; line-height: 1.25; }
.asterrow-included-work-main a { color: inherit; text-decoration: none; }
.asterrow-included-work-main a:hover { text-decoration: underline; text-underline-offset: 4px; }
.asterrow-included-work-type {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #777;
}
.asterrow-included-works.is-dark .asterrow-included-work-type { color: #aaa; }
.asterrow-included-works-empty { padding: 18px; border: 1px dashed #c3c4c7; }
@media (max-width: 640px) {
	.asterrow-included-works-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* =========================================================
   SERIES NAVIGATION
   ========================================================= */
.asterrow-series-nav {
	padding: 24px 0;
	border-top: 1px solid #d9d9d5;
	border-bottom: 1px solid #d9d9d5;
}
.asterrow-series-current {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.asterrow-series-links {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.asterrow-series-links a { color: inherit; font-size: 12px; font-weight: 800; text-decoration: none; }
.asterrow-series-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   RELATED BOOKS + BOOK-PAGE BEYOND THE PAGE
   ========================================================= */
.asterrow-related-books,
.asterrow-btp { padding: clamp(52px, 6vw, 88px) 0; }
.asterrow-related-books.is-dark,
.asterrow-btp.is-dark { background: #050505; color: #fff; }
.asterrow-section-kicker,
.asterrow-btp-date {
	margin: 0 0 12px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.asterrow-related-books .asterrow-books-grid-shell,
.asterrow-series-page .asterrow-books-grid-shell {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0;
	padding-right: 0;
}
.asterrow-related-books .asterrow-books-grid { max-width: none; }
.asterrow-btp-head { max-width: 860px; margin-bottom: 42px; }
.asterrow-btp-head h2 {
	margin: 0 0 14px;
	font-size: clamp(2.7rem, 5vw, 5rem);
	font-weight: 900;
	letter-spacing: -.055em;
	line-height: .9;
	text-transform: uppercase;
}
.asterrow-btp-head > p:last-child { font-size: 16px; line-height: 1.6; }
.asterrow-btp-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid #d9d9d5; }
.asterrow-btp-grid article { padding: 26px 28px 30px 0; border-bottom: 1px solid #d9d9d5; }
.asterrow-btp-grid article:nth-child(3n+2), .asterrow-btp-grid article:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid #d9d9d5; }
.asterrow-btp.is-dark .asterrow-btp-grid,
.asterrow-btp.is-dark .asterrow-btp-grid article { border-color: #333; }
.asterrow-btp-date { color: #777; }
.asterrow-btp-grid h3 { margin: 0 0 12px; font-size: clamp(20px,2vw,28px); line-height: 1.05; }
.asterrow-btp-grid h3 a { color: inherit; text-decoration: none; }
.asterrow-btp-grid h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.asterrow-btp-grid article > p:last-child { color: #666; line-height: 1.6; }
.asterrow-btp.is-dark .asterrow-btp-grid article > p:last-child { color: #aaa; }

/* =========================================================
   SERIES PAGE
   ========================================================= */
.asterrow-series-page { max-width: 1360px; margin: 0 auto; padding: clamp(50px,7vw,100px) 24px; }
.asterrow-series-page-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,420px); gap: 54px; align-items: end; margin-bottom: 72px; }
.asterrow-series-page-head h1 { margin: 0 0 24px; font-size: clamp(3.5rem,7vw,7rem); font-weight: 900; letter-spacing: -.065em; line-height: .84; text-transform: uppercase; }
.asterrow-series-page-head > div > p:last-child { max-width: 760px; font-size: 18px; line-height: 1.7; color: #555; }
.asterrow-series-image { width: 100%; height: auto; display: block; }
.asterrow-series-emblem { width: min(120px,35vw); height: auto; margin-bottom: 22px; }

@media (max-width: 900px) {
	.asterrow-book-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.asterrow-detail-cell:nth-child(4n) { border-right: 1px solid #d9d9d5; }
	.asterrow-book-details.is-dark .asterrow-detail-cell:nth-child(4n) { border-right-color: #333; }
	.asterrow-detail-cell:nth-child(2n) { border-right: 0; }
	.asterrow-detail-cell:nth-child(n+3) { border-top: 1px solid #d9d9d5; }
	.asterrow-book-hero-inner { grid-template-columns: minmax(180px, 300px) minmax(0,1fr); gap: 36px; }
	.asterrow-btp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.asterrow-btp-grid article:nth-child(n) { padding: 24px 22px 26px 0; border-left: 0; }
	.asterrow-btp-grid article:nth-child(2n) { padding-left: 22px; border-left: 1px solid #d9d9d5; }
	.asterrow-btp.is-dark .asterrow-btp-grid article:nth-child(2n) { border-left-color: #333; }
	.asterrow-series-page-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.asterrow-book-details { grid-template-columns: 1fr; }
	.asterrow-detail-cell:nth-child(n) { border-right: 0; border-top: 1px solid #d9d9d5; }
	.asterrow-detail-cell:first-child { border-top: 0; }
	.asterrow-book-details.is-dark .asterrow-detail-cell:nth-child(n) { border-top-color: #333; }
	.asterrow-book-hero-inner { grid-template-columns: 1fr; }
	.asterrow-book-hero-cover { max-width: 300px; }
	.asterrow-btp-grid { grid-template-columns: 1fr; }
	.asterrow-btp-grid article:nth-child(n) { padding: 22px 0; border-left: 0; }
}
.asterrow-buy-edition-label {
	margin: 18px 0 10px;
	color: #777;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* v1.0.2: direct single-retailer links use the same visual button treatment. */
a.asterrow-buy-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	text-decoration: none;
}


/* =========================================================
   FEATURED RELEASE
   ========================================================= */
.asterrow-featured-release {
	box-sizing: border-box;
	width: 100%;
	padding: clamp(48px, 6vw, 88px) clamp(22px, 4vw, 64px);
}
.asterrow-featured-release.alignwide,
.asterrow-featured-release.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.editor-styles-wrapper .asterrow-featured-release.alignwide,
.editor-styles-wrapper .asterrow-featured-release.alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.asterrow-featured-release.is-light { background: #fff; color: #050505; }
.asterrow-featured-release.is-dark { background: #050505; color: #fff; }
.asterrow-featured-release-inner {
	display: grid;
	grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
	gap: clamp(48px, 6vw, 84px);
	align-items: center;
	max-width: 1420px;
	margin: 0 auto;
}
.asterrow-featured-release-cover {
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #f4f4f2;
}
.asterrow-featured-release-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.asterrow-featured-kicker,
.asterrow-featured-series,
.asterrow-featured-byline,
.asterrow-featured-detail-label {
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .15em;
	line-height: 1.3;
	text-transform: uppercase;
}
.asterrow-featured-kicker { margin: 0 0 18px; }
.asterrow-featured-series { margin: -7px 0 14px; color: #666; }
.asterrow-featured-release.is-dark .asterrow-featured-series { color: #aaa; }
.asterrow-featured-release h2 {
	margin: 0;
	font-size: clamp(2.8rem, 5.25vw, 5.9rem);
	font-weight: 900;
	letter-spacing: -.065em;
	line-height: .9;
	text-transform: uppercase;
}
.asterrow-featured-title,
.asterrow-featured-subtitle { display: block; }
.asterrow-featured-title { white-space: nowrap; }
.asterrow-featured-subtitle {
	margin-top: .18em;
	font-size: .48em;
	letter-spacing: -.045em;
	line-height: 1;
}
.asterrow-featured-byline { margin: 24px 0 0; }
.asterrow-featured-tagline {
	margin: 30px 0 0;
	font-size: clamp(1.15rem, 1.8vw, 1.55rem);
	font-weight: 800;
	line-height: 1.35;
}
.asterrow-featured-blurb {
	max-width: 820px;
	margin: 28px 0 0;
	font-size: clamp(1rem, 1.25vw, 1.18rem);
	line-height: 1.65;
	color: #4f4f4f;
}
.asterrow-featured-release.is-dark .asterrow-featured-blurb { color: #bbb; }
.asterrow-featured-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: 34px;
	border-top: 1px solid #d9d9d5;
}
.asterrow-featured-details > div { min-width: 0; padding: 26px 30px 4px 0; }
.asterrow-featured-details > div + div { padding-left: 30px; border-left: 1px solid #d9d9d5; }
.asterrow-featured-release.is-dark .asterrow-featured-details,
.asterrow-featured-release.is-dark .asterrow-featured-details > div + div { border-color: #333; }
.asterrow-featured-detail-label { margin: 0 0 18px; }
.asterrow-featured-details p:not(.asterrow-featured-detail-label) { margin: 0; color: #666; font-size: 14px; line-height: 1.55; }
.asterrow-featured-release.is-dark .asterrow-featured-details p:not(.asterrow-featured-detail-label) { color: #aaa; }
.asterrow-featured-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: nowrap;
	margin-top: 32px;
}
.asterrow-featured-actions .asterrow-buy-book-block {
	flex: 0 0 auto;
	width: auto;
	margin: 0;
}
.asterrow-featured-actions .asterrow-buy-trigger,
.asterrow-featured-actions .asterrow-featured-explore {
	white-space: nowrap;
}
.asterrow-featured-explore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 13px 24px;
	box-sizing: border-box;
	background: #050505;
	border: 1px solid #050505;
	color: #fff !important;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .08em;
	line-height: 1;
	text-decoration: none !important;
	text-transform: uppercase;
}
.asterrow-featured-release.is-dark .asterrow-featured-explore { background: #fff; border-color: #fff; color: #050505 !important; }
.asterrow-featured-explore:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.asterrow-featured-release-empty {
	padding: 24px;
	border: 1px dashed #aaa;
	font-size: 14px;
	line-height: 1.5;
}
@media (max-width: 900px) {
	.asterrow-featured-release-inner { grid-template-columns: minmax(190px, 300px) minmax(0, 1fr); gap: 38px; }
	.asterrow-featured-details { grid-template-columns: 1fr; }
	.asterrow-featured-details > div { padding: 18px 0; border-bottom: 1px solid #d9d9d5; }
	.asterrow-featured-details > div + div { padding-left: 0; border-left: 0; }
	.asterrow-featured-release.is-dark .asterrow-featured-details > div { border-bottom-color: #333; }
}
@media (max-width: 680px) {
	.asterrow-featured-release-inner { grid-template-columns: 1fr; }
	.asterrow-featured-release-cover { max-width: 340px; }
	.asterrow-featured-release h2 { font-size: clamp(2.9rem, 13vw, 5rem); }
	.asterrow-featured-title { white-space: normal; }
}
@media (max-width: 430px) {
	.asterrow-featured-actions { flex-wrap: wrap; }
}
.asterrow-suite-context-note {
	padding: 14px 16px;
	border: 1px dashed #8c8f94;
	background: #f6f7f7;
	color: #50575e;
	font-size: 13px;
	line-height: 1.5;
}

/* =========================================================
   v1.4 DESIGN REFRESH
   Same Asterrow look. Rules and borders give way to space
   and soft tone; tags, facts and steps share one vocabulary.
   ========================================================= */

/* Shared pieces */
.asterrow-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.asterrow-tag {
	margin: 0; padding: 8px 10px;
	background: #f4f4f2; color: #050505;
	font-size: 10px; font-weight: 900; letter-spacing: .12em; line-height: 1; text-transform: uppercase;
}
.asterrow-tag.is-solid { background: #050505; color: #fff; }
.is-dark .asterrow-tag { background: #1e1e1e; color: #fff; }
.is-dark .asterrow-tag.is-solid { background: #fff; color: #050505; }
.asterrow-section-heading {
	margin: 0 0 clamp(28px, 3.5vw, 44px);
	font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.05em; line-height: .95; text-transform: uppercase;
}

/* Buttons: lift instead of colour swap */
.asterrow-buy-trigger,
.asterrow-featured-explore { transition: transform .12s ease, box-shadow .12s ease, background-color .18s ease, color .18s ease; }
@media (hover: hover) and (pointer: fine) {
	.asterrow-buy-book-block .asterrow-buy-trigger:hover,
	.asterrow-featured-explore:hover { transform: translateY(-1px); box-shadow: 5px 5px 0 rgba(0, 0, 0, .15); }
	.is-dark .asterrow-buy-book-block .asterrow-buy-trigger:hover,
	.is-dark .asterrow-featured-explore:hover { box-shadow: 5px 5px 0 rgba(255, 255, 255, .18); }
	.asterrow-buy-book-block.is-style-dark-solid .asterrow-buy-trigger:hover { background: #050505; color: #fff; }
	.asterrow-buy-book-block.is-style-light-solid .asterrow-buy-trigger:hover { background: #fff; color: #050505; }
}

/* Buy dialog */
.asterrow-buy-dialog { border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.asterrow-buy-dialog-head { border-bottom: 0; padding-bottom: 6px; }
.asterrow-buy-format-group + .asterrow-buy-format-group { border-top: 0; }
.asterrow-buy-format-group { background: #f4f4f2; padding: 18px; margin-top: 10px; }
.asterrow-buy-retailers { gap: 6px; }
.asterrow-buy-retailers a { border: 0; background: #fff; }
.asterrow-buy-empty-admin { border: 0; background: #f4f4f2; }

/* Book cards */
.asterrow-book-status-badge { border: 0; background: #050505; color: #fff; padding: 8px 10px; }
.asterrow-book-admin-badge { border: 0; background: #fff; }
.asterrow-books-grid-shell.is-appearance-dark .asterrow-book-status-badge { background: #fff; color: #050505; }
.asterrow-book-cover-image { transition: transform .2s ease; }
.asterrow-book-info { display: grid; gap: 7px; padding-top: 16px; }
.asterrow-book-info > * { margin: 0 !important; }
@media (hover: hover) and (pointer: fine) {
	.asterrow-book-card-link:hover .asterrow-book-title { text-decoration-thickness: 2px; }
}
.asterrow-books-empty { border: 0; background: #f4f4f2; padding: 40px; text-align: center; }
.asterrow-books-grid-shell.is-appearance-dark .asterrow-books-empty { background: #151515; }
.asterrow-book-card[hidden] { display: none; }

/* Catalog filters */
.asterrow-catalog-filters {
	display: flex; flex-wrap: wrap; gap: 6px;
	width: max-content; max-width: 100%;
	margin: 0 auto clamp(32px, 4vw, 48px) 0;
	padding: 4px; background: #f4f4f2;
}
.asterrow-books-grid-shell .asterrow-catalog-filters { max-width: min(100%, 1360px); }
@media (min-width: 1428px) { .asterrow-books-grid-shell .asterrow-catalog-filters { margin-left: calc((100% - 1360px) / 2); } }
.asterrow-catalog-filters button {
	border: 0; border-radius: 0; background: transparent; color: #050505; cursor: pointer;
	padding: 11px 14px; font: inherit; font-size: 10px; font-weight: 900; letter-spacing: .1em; line-height: 1; text-transform: uppercase;
}
.asterrow-catalog-filters button[aria-pressed="true"] { background: #050505; color: #fff; }
.asterrow-catalog-filters button:focus-visible { outline: 2px solid #050505; outline-offset: 2px; }
.is-appearance-dark .asterrow-catalog-filters { background: #151515; }
.is-appearance-dark .asterrow-catalog-filters button { color: #fff; }
.is-appearance-dark .asterrow-catalog-filters button[aria-pressed="true"] { background: #fff; color: #050505; }

/* Book hero */
.asterrow-book-hero-cover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.asterrow-book-hero-copy { display: grid; gap: 24px; min-width: 0; }
.asterrow-book-hero-copy > * { margin: 0 !important; }
.asterrow-book-hero .asterrow-tags.asterrow-book-hero-meta { color: inherit; letter-spacing: normal; }
.asterrow-book-hero-byline { margin-top: -6px !important; }
.asterrow-book-hero.is-light .asterrow-book-hero-byline { color: #050505; }
.asterrow-book-hero.is-dark .asterrow-book-hero-byline { color: #fff; }
.asterrow-book-hero h1 { line-height: .88; text-wrap: balance; }
.asterrow-book-hero-tagline { font-weight: 800; letter-spacing: -.01em; line-height: 1.3; max-width: 30ch; }

/* Book details: a tone panel of labelled facts */
.asterrow-book-details { border: 0; gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px); padding: clamp(32px, 4vw, 56px) clamp(22px, 4vw, 56px); box-sizing: border-box; }
.asterrow-book-details.is-light { background: #f4f4f2; }
.asterrow-book-details.is-dark { background: #111; }
.asterrow-detail-cell,
.asterrow-detail-cell:nth-child(n) { border: 0 !important; padding: 0; }
.asterrow-detail-label { margin-bottom: 9px; }
.asterrow-book-details.is-light .asterrow-detail-label { color: #8a8a85; }
.asterrow-detail-value { font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.4; font-variant-numeric: tabular-nums; }

/* Included works */
.asterrow-included-works-list,
.asterrow-included-works-list li { border: 0 !important; }
.asterrow-included-works-list { display: grid; gap: 2px; }
.asterrow-included-works-list li { padding: 16px 18px; background: #f4f4f2; }
.asterrow-included-works.is-dark .asterrow-included-works-list li { background: #151515; }
.asterrow-included-works-empty { border: 0; background: #f4f4f2; }

/* Series navigation: reading-order rail */
.asterrow-series-nav { border: 0; padding: clamp(48px, 6vw, 88px) clamp(22px, 4vw, 56px); box-sizing: border-box; }
.asterrow-series-nav.is-dark { background: #050505; color: #fff; }
.asterrow-series-nav.is-light { background: #f4f4f2; color: #050505; }
.asterrow-series-nav.alignwide,
.asterrow-series-nav.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.asterrow-series-nav > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.asterrow-series-nav-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 44px); }
.asterrow-series-nav-head .asterrow-section-kicker { color: #888; }
.asterrow-series-nav-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; }
.asterrow-series-nav .asterrow-series-current { margin: 12px 0 0; color: #888; }
.asterrow-series-all { color: inherit; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.asterrow-series-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.asterrow-series-rail {
	list-style: none; margin-top: 0; margin-bottom: 0; padding: 0;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: clamp(14px, 2vw, 28px);
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.asterrow-series-rail li { scroll-snap-align: start; min-width: 0; }
.asterrow-series-rail a { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.asterrow-series-rail .asterrow-book-cover { display: block; transition: transform .2s ease; }
.asterrow-series-nav.is-dark .asterrow-series-rail .asterrow-book-cover { background: #151515; }
.asterrow-series-rail a:hover .asterrow-book-cover { transform: translateY(-4px); }
.asterrow-series-entry { font-size: 10px; font-weight: 900; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; color: #888; min-height: 1.3em; }
.asterrow-series-entry em { font-style: normal; }
.asterrow-series-rail .is-current .asterrow-series-entry { color: inherit; }
.asterrow-series-rail .is-upcoming .asterrow-book-cover { opacity: .55; }
.asterrow-series-title { font-size: clamp(14px, 1.3vw, 18px); font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.asterrow-series-nav .asterrow-series-links { margin-top: clamp(28px, 4vw, 48px); }
.asterrow-series-step { display: grid; gap: 6px; min-width: min(100%, 280px); padding: 18px 20px; background: #141414; color: inherit; text-decoration: none !important; }
.asterrow-series-nav.is-light .asterrow-series-step { background: #fff; }
.asterrow-series-step:hover { background: #1e1e1e; }
.asterrow-series-nav.is-light .asterrow-series-step:hover { background: #ebebe8; }
.asterrow-series-step.is-next { text-align: right; }
.asterrow-series-step span { font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; color: #888; }
.asterrow-series-step strong { font-size: 18px; font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }

/* Beyond the Page */
.asterrow-btp-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.asterrow-btp-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.05em; line-height: .95; }
.asterrow-btp-head > p:last-child { color: #666; max-width: 60ch; }
.asterrow-btp-grid { border: 0; gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.asterrow-btp-grid article,
.asterrow-btp-grid article:nth-child(n) { border: 0 !important; padding: 0 !important; display: grid; gap: 12px; align-content: start; }
.asterrow-btp-grid article > * { margin: 0; }
.asterrow-btp-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f4f2; }
.asterrow-btp.is-dark .asterrow-btp-image { background: #151515; }
.asterrow-btp-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.asterrow-btp-grid article:hover .asterrow-btp-image img { transform: scale(1.03); }
.asterrow-btp-date { color: #8a8a85; margin: 4px 0 0; }
.asterrow-btp-grid h3 { font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; margin: 0; }
.asterrow-btp-grid h3 a:hover { text-decoration-thickness: 2px; }
.asterrow-btp-grid article > p:last-child { font-size: 14px; line-height: 1.55; margin: 0; }

/* Featured release */
.asterrow-featured-release-copy { display: grid; gap: 22px; min-width: 0; }
.asterrow-featured-release-copy > * { margin: 0 !important; }
.asterrow-featured-release .asterrow-tags .asterrow-tag { margin: 0; }
.asterrow-featured-release.is-light .asterrow-featured-series.asterrow-tag { color: #050505; }
.asterrow-featured-release.is-dark .asterrow-featured-series.asterrow-tag { color: #fff; }
.asterrow-featured-release h2 { text-wrap: balance; }
.asterrow-featured-title { white-space: normal; }
.asterrow-featured-byline { margin-top: -6px !important; }
.asterrow-featured-details,
.asterrow-featured-details > div + div { border: 0 !important; }
.asterrow-featured-details { gap: 20px 40px; grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); }
.asterrow-featured-details > div,
.asterrow-featured-details > div + div { padding: 0 !important; }
.asterrow-featured-detail-label { margin: 0 0 8px; color: #8a8a85; }
.asterrow-featured-details p:not(.asterrow-featured-detail-label) { color: inherit !important; font-weight: 700; }
.asterrow-featured-actions { flex-wrap: wrap; }
.asterrow-featured-release.is-dark .asterrow-featured-explore { background: #1e1e1e; color: #fff; border: 0; }
.asterrow-featured-release.is-light .asterrow-featured-explore { background: #f4f4f2; color: #050505; border: 0; }

/* Series page */
.asterrow-series-page-head { gap: clamp(28px, 4vw, 54px); margin-bottom: clamp(44px, 6vw, 72px); }

@media (max-width: 900px) {
	.asterrow-book-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.asterrow-btp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.asterrow-book-details { grid-template-columns: 1fr; }
	.asterrow-btp-grid { grid-template-columns: 1fr; }
	.asterrow-series-step { min-width: 100%; }
	.asterrow-series-step.is-next { text-align: left; }
	.asterrow-catalog-filters { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.asterrow-series-rail .asterrow-book-cover,
	.asterrow-btp-image img,
	.asterrow-buy-trigger,
	.asterrow-featured-explore { transition: none; }
}
.asterrow-featured-release.is-dark .asterrow-featured-explore { color: #fff !important; }
.asterrow-featured-release.is-light .asterrow-featured-explore { color: #050505 !important; }
.asterrow-featured-details > div { border: 0 !important; }
.asterrow-series-step { box-sizing: border-box; }
.asterrow-book-hero .asterrow-tag.asterrow-book-hero-series { color: #050505; }
.asterrow-book-hero.is-dark .asterrow-tag.asterrow-book-hero-series { color: #fff; }
.asterrow-buy-close { border: 0; background: #f4f4f2; }
