.dbm-issue-period {
	text-align: center;
	color: #666;
	font-weight: 600;
	margin: 0 0 1.5em;
}

.dbm-issue {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	max-width: 1200px;
	margin: 0 auto 3em;
	padding: 0 1em;
	align-items: flex-start;
}

.dbm-toc-dropdown {
	flex: 1 1 300px;
	max-width: 340px;
}
.dbm-toc-heading {
	font-weight: 800;
	font-size: 1.8em;
	margin-bottom: 0.6em;
}
.dbm-toc-columns {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	letter-spacing: 0.05em;
	border-top: 2px solid #222;
	border-bottom: 2px solid #222;
	padding: 6px 0;
	margin-bottom: 0.5em;
}
.dbm-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dbm-toc-item {
	border-bottom: 1px solid #e2e2e2;
}
.dbm-toc-link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 4px;
	width: 100%;
	text-align: left;
	text-decoration: none;
	color: inherit;
	background: none;
	border: none;
	font: inherit;
	cursor: pointer;
}
.dbm-toc-toggle {
	display: none;
}
.dbm-toc-link:hover,
.dbm-toc-link.is-active {
	background: #f5f5f0;
}
.dbm-toc-marker {
	flex: 0 0 auto;
	min-width: 1.4em;
	font-weight: 700;
}
.dbm-toc-item--section .dbm-toc-marker {
	font-size: 0.7em;
	padding-top: 0.3em;
}
.dbm-toc-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
}
.dbm-toc-text {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}
.dbm-toc-title {
	font-weight: 600;
}
.dbm-toc-subtitle,
.dbm-toc-author {
	font-style: italic;
	color: #555;
	font-size: 0.92em;
}
.dbm-toc-page {
	flex: 0 0 auto;
	font-weight: 600;
}

.dbm-viewer {
	flex: 2 1 600px;
	min-width: 0;
	position: sticky;
	top: var( --dbm-sticky-offset, 20px );
	align-self: flex-start;
}
.dbm-page-viewer {
	max-width: 760px;
	margin: 0 auto;
	border: 1px solid #ddd;
	background: #fafaf7;
}
.dbm-page-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 1px solid #ddd;
	background: #fff;
}
.dbm-page-toolbar button {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 32px;
	height: 32px;
	font-size: 1.1em;
	cursor: pointer;
}
.dbm-page-toolbar button:hover {
	background: #f0f0f0;
}
.dbm-page-pagenum {
	font-weight: 600;
	white-space: nowrap;
}
.dbm-page-image-wrap {
	padding: 16px;
	text-align: center;
}
.dbm-page-image {
	max-width: 100%;
	height: auto;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}
.dbm-no-pdf {
	padding: 3em 1em;
	text-align: center;
	color: #777;
	border: 1px dashed #ccc;
}

.dbm-issue-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5em;
	margin: 0;
	padding: 0;
	max-width: 1200px;
	margin: 0 auto;
}
.dbm-issue-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}
.dbm-issue-card img {
	width: 100%;
	display: block;
	margin-bottom: 0.5em;
}
.dbm-issue-card-title {
	display: block;
	font-weight: 700;
}
.dbm-issue-card-period {
	display: block;
	color: #666;
	font-size: 0.9em;
}

@media ( min-width: 801px ) {
	.dbm-issue.dbm-toc-left .dbm-toc-dropdown {
		order: -1;
	}
}

@media ( max-width: 800px ) {
	.dbm-issue {
		flex-direction: column;
	}
	.dbm-toc-dropdown {
		flex: 0 0 auto;
		position: relative;
		max-width: none;
		align-self: flex-start;
	}
	.dbm-viewer {
		align-self: stretch;
		width: 100%;
		top: var( --dbm-sticky-offset-mobile, 0px );
		z-index: 10;
	}
	.dbm-page-viewer {
		max-width: none;
	}
	.dbm-page-image-wrap {
		padding: 12px 8px;
		max-height: 55vh;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.dbm-page-image {
		max-height: 55vh;
		width: auto;
	}

	.dbm-toc-toggle {
		display: flex;
		align-items: center;
		gap: 6px;
		margin: 0 0 0.5em;
		padding: 10px 14px;
		font-size: 1em;
		font-weight: 700;
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 4px;
		cursor: pointer;
	}
	.dbm-toc-toggle-icon {
		transition: transform 0.15s ease;
	}
	.dbm-toc-toggle[aria-expanded="true"] .dbm-toc-toggle-icon {
		transform: rotate(180deg);
	}
	.dbm-toc {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		margin-top: 4px;
		width: min(90vw, 340px);
		max-height: 70vh;
		overflow-y: auto;
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 6px;
		box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.18 );
		padding: 12px;
		z-index: 50;
	}
	.dbm-toc.is-open {
		display: block;
	}
	.dbm-toc .dbm-toc-heading {
		font-size: 1.3em;
		margin-bottom: 0.4em;
	}
}
