/* Restaurant Beer Menu — Public display
   Layout, spacing, and mobile responsiveness only.
   Typography and color inherit from the active theme. */

/* ---- Wrapper ---- */

.rbm-menu {
	max-width: 800px;
}

/* ---- Featured section ---- */

.rbm-featured {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.rbm-featured--image-right {
	flex-direction: row-reverse;
}

.rbm-featured-image {
	flex-shrink: 0;
	width: clamp(120px, 30%, 220px);
}

.rbm-featured-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.rbm-featured-content {
	flex: 1;
	min-width: 0;
}

.rbm-featured-title {
	margin: 0 0 0.4rem;
}

.rbm-featured-description {
	margin: 0;
}

/* ---- Beer list ---- */

.rbm-menu-list {
	margin-top: 1rem;
}

.rbm-menu-row {
	padding: 0.5rem 0;
	border-bottom: 1px solid #eee;
}

.rbm-menu-row:last-child {
	border-bottom: none;
}

/* Name and ABV always share one flex row — ABV pinned right.
   This is a new inner element so no theme rule can already target it. */
.rbm-beer-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
}

.rbm-beer-name {
	flex: 1;
	min-width: 0;
}

.rbm-beer-abv {
	white-space: nowrap;
	flex-shrink: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Description sits below the name+ABV row as a natural block element. */
.rbm-beer-description {
	display: block;
	font-size: 0.9em;
	margin-top: 0.15rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0.75;
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
	/* Let long descriptions wrap rather than truncate. */
	.rbm-beer-description {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.rbm-featured {
		flex-direction: column;
	}

	.rbm-featured-image {
		width: 100%;
		max-width: 300px;
	}
}

/* ---- PDF download bar ---- */

.rbm-pdf-bar {
	margin-top: 1.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eee;
}

.rbm-pdf-link,
.rbm-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.85em;
	opacity: 0.6;
	color: inherit;
	transition: opacity 0.15s;
}

.rbm-pdf-link {
	text-decoration: none;
}

.rbm-print-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}

.rbm-pdf-link:hover,
.rbm-print-btn:hover {
	opacity: 1;
}

.rbm-pdf-link:hover {
	text-decoration: underline;
}

@media print {
	.rbm-pdf-bar { display: none; }
}

/* ---- PDF-friendly overrides (applied via .rbm-pdf class on wrapper) ---- */

.rbm-pdf .rbm-menu-row {
	page-break-inside: avoid;
	border-bottom: 1px solid #ccc;
}

.rbm-pdf .rbm-featured {
	page-break-inside: avoid;
}

/* ---- Misc ---- */

.rbm-menu-empty {
	color: #888;
	font-style: italic;
}

.rbm-access-denied {
	color: #888;
}
