/* In-browser menu PDF viewer (PDF.js) — continuous vertical scroll */
html,
body {
	margin: 0;
	height: 100%;
	background: #1a1410;
	color: #f7f1ea;
	font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-text-size-adjust: 100%;
}

.tnb-pdf {
	display: flex;
	flex-direction: column;
	height: 100%;
	height: 100dvh;
}

.tnb-pdf__bar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0.75rem;
	background: rgba(26, 20, 16, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}

.tnb-pdf__brand {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.tnb-pdf__brand strong {
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tnb-pdf__brand span {
	font-size: 0.72rem;
	opacity: 0.7;
}

.tnb-pdf__actions {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-shrink: 0;
}

.tnb-pdf__btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.06);
	color: inherit;
	border-radius: 999px;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.7rem;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	touch-action: manipulation;
}

.tnb-pdf__btn--primary {
	background: #c4a484;
	border-color: #c4a484;
	color: #1a1410;
}

.tnb-pdf__page {
	font-variant-numeric: tabular-nums;
	font-size: 0.8rem;
	min-width: 4.5rem;
	text-align: center;
	opacity: 0.9;
}

.tnb-pdf__stage {
	flex: 1;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0;
	overscroll-behavior: contain;
}

.tnb-pdf__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	width: 100%;
	padding-bottom: 0;
}

.tnb-pdf__page-slot {
	max-width: 100%;
	background: #2a221c;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	position: relative;
	margin: 0;
}

.tnb-pdf__page-slot.is-ready {
	background: #fff;
}

.tnb-pdf__page-slot canvas {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.tnb-pdf__status {
	display: none;
	padding: 2.5rem 1.25rem;
	text-align: center;
	line-height: 1.6;
	flex-shrink: 0;
}

.tnb-pdf__status.is-visible {
	display: block;
}

.tnb-pdf__status a {
	color: #e2c4a2;
}

.tnb-pdf__hint {
	display: none;
}

@media (max-width: 640px) {
	.tnb-pdf__brand span {
		display: none;
	}

	.tnb-pdf__btn--label {
		padding: 0;
		min-width: 2.25rem;
	}

	.tnb-pdf__btn--label .tnb-pdf__btn-text {
		display: none;
	}
}
