main {
	padding: 34px 0 72px;
}

.breadcrumbs {
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.92rem;
}

.breadcrumbs a {
	color: var(--link);
}

.book-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 34px;
	align-items: start;
}

.book-panel {
	position: sticky;
	top: 20px;
	background: var(--surface-dark);
	color: #ffffff;
	border-radius: 4px;
	overflow: hidden;
}

.book-cover-wrap {
	padding: 28px;
	background: var(--surface-dark-soft);
	border-bottom: 1px solid var(--border-dark);
}

.book-cover {
	width: 100%;
	object-fit: contain;
}

.book-panel-content {
	padding: 18px;
}

.panel-label {
	margin: 0 0 8px;
	color: var(--nav-muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.edition-jump {
	display: grid;
	gap: 8px;
}

.edition-jump a {
	display: block;
	padding: 9px 10px;
	border: 1px solid var(--border-dark);
	border-radius: 3px;
	color: var(--accent-text);
}

.edition-jump a:hover {
	background: var(--cover-bg);
	color: var(--surface-dark);
}

.book-main {
	min-width: 0;
}

.book-header {
	padding-bottom: 26px;
	border-bottom: 1px solid var(--border);
}

.kicker {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	max-width: 820px;
	font-size: clamp(2.4rem, 5vw, 4.8rem);
	line-height: 0.98;
	letter-spacing: -0.07em;
}

.book-subtitle {
	margin: 16px 0 0;
	max-width: 760px;
	color: var(--muted);
	font-size: 1.15rem;
}

.category-list {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.category {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--surface-alt);
	color: var(--text);
	padding: 6px 10px;
	font-size: 0.9rem;
	font-weight: 600;
}

.quick-actions {
	margin-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.button {
	padding: 11px 15px;
}

.button.secondary {
	background: var(--surface);
	color: var(--accent);
}

.button.secondary:hover {
	background: var(--accent);
	color: var(--bg);
}

.section {
	padding: 28px 0;
	border-bottom: 1px solid var(--border);
}

.section h2 {
	margin: 0 0 16px;
	font-size: 1.55rem;
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.contributor-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.contributor-card {
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 14px;
	background: var(--surface);
}

.contributor-role {
	display: block;
	margin-bottom: 3px;
	color: var(--muted);
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.contributor-name {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
}

.contributor-note {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 0.92rem;
}

.book-description {
	max-width: 780px;
	color: var(--muted);
	font-size: 1.05rem;
}

.editions-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.editions-head h2 {
	margin: 0;
	font-size: 1.7rem;
	letter-spacing: -0.045em;
}

.editions-head p {
	margin: 6px 0 0;
	color: var(--muted);
}

.edition-list {
	display: grid;
	gap: 18px;
}

.edition-card {
	border: 1px solid var(--border);
	border-radius: 5px;
	background: var(--surface);
	overflow: hidden;
}

.edition-card.featured {
	border-color: var(--surface-dark);
}

.edition-top {
	padding: 18px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	background: var(--surface-alt);
	border-bottom: 1px solid var(--border);
}

.edition-card.featured .edition-top {
	background: var(--surface-dark);
	color: var(--accent-text);
	border-bottom-color: var(--border-dark);
}

.edition-label {
	margin: 0 0 5px;
	color: var(--muted);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.edition-card.featured .edition-label {
	color: var(--nav-muted);
}

.edition-title {
	margin: 0;
	font-size: 1.38rem;
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.edition-status {
	align-self: start;
	border: 1px solid currentColor;
	border-radius: 3px;
	padding: 5px 8px;
	color: var(--success);
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

.edition-card.featured .edition-status {
	color: var(--accent-text);
}

.edition-body {
	padding: 18px;
}

.meta-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--border);
	border-bottom: 0;
	margin-bottom: 18px;
}

.meta-item {
	padding: 12px;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.meta-item:nth-child(4n) {
	border-right: 0;
}

.meta-label {
	display: block;
	margin-bottom: 3px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.meta-value {
	display: block;
	font-weight: 700;
}

.edition-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.edition-block h3 {
	margin: 0 0 10px;
	font-size: 1rem;
	letter-spacing: -0.02em;
}

.role-list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	list-style: none;
}

.role-list li {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}

.role-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.role {
	color: var(--muted);
	font-weight: 700;
}

.file-list {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	list-style: none;
}

.file-list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 4px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 3px;
}

.file-list > li > .properties {
	flex-grow: 1;
}

.file-list > li > .license-details {
	flex-basis: 100%;
}

.file-format {
	font-weight: 700;
}

.file-size {
	color: var(--muted);
	font-size: 0.9rem;
}

.edition-actions {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.license-details {
	margin-top: 18px;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--surface);
}

.license-details summary {
	padding: 12px 14px;
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.license-details summary::-webkit-details-marker {
	display: none;
}

.license-details summary::after {
	content: "+";
	float: right;
	color: var(--muted);
}

.license-details[open] summary::after {
	content: "–";
}

.license-content {
	padding: 0 14px 14px;
	color: var(--muted);
}

.license-content p {
	margin: 0 0 10px;
}

.license-content p:last-child {
	margin-bottom: 0;
}

@media (max-width: 980px) {
	.book-layout {
		grid-template-columns: 1fr;
	}

	.book-panel {
		position: static;
		display: grid;
		grid-template-columns: 180px 1fr;
	}

	.book-cover-wrap {
		border-bottom: 0;
		border-right: 1px solid var(--border-dark);
	}

	.meta-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.meta-item:nth-child(4n) {
		border-right: 1px solid var(--border);
	}

	.meta-item:nth-child(2n) {
		border-right: 0;
	}
}

@media (max-width: 720px) {
	.editions-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.book-panel {
		grid-template-columns: 1fr;
	}

	.book-cover-wrap {
		border-right: 0;
		border-bottom: 1px solid var(--border-dark);
	}

	.book-cover {
		max-width: 210px;
		margin: 0 auto;
	}

	.contributor-grid,
	.edition-columns,
	.meta-grid,
	.edition-top {
		grid-template-columns: 1fr;
	}

	.meta-item {
		border-right: 0;
	}

	.meta-item:nth-child(4n),
	.meta-item:nth-child(2n) {
		border-right: 0;
	}

	.role-list li {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.file-list li {
		align-items: flex-start;
	}

	.quick-actions,
	.edition-actions {
		flex-direction: column;
	}

	.button {
		width: 100%;
	}
}

.external-download-url {
	word-break: break-all;
}