/* =============================================================
   Rinnai User Manual Grid
   rinnai-user-manual-grid.css
   ============================================================= */

/* ── Root ──────────────────────────────────────────────────── */

.rum {
	width: 100%;
	overflow: visible;
}

/* ── Loading state ─────────────────────────────────────────── */

.rum--loading .rum__grid {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ── Search Bar ────────────────────────────────────────────── */

.rum__search-wrap {
	display: flex;
	align-items: center;
	background-color: #F0F0F0;
	border: 1px solid transparent;
	border-radius: 0;
	margin-bottom: 40px;
	overflow: hidden;
}

.rum__search-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	padding: 14px 16px;
	font-size: 14px;
	color: #333333;
	outline: none;
	font-family: inherit;
	line-height: 1.4;
}

.rum__search-input::placeholder {
	color: #999999;
}

.rum__search-btn {
	flex-shrink: 0;
	background: transparent;
	border: none;
	padding: 0 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666666;
	line-height: 0;
}

.rum__search-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.rum__search-icon {
	width: 20px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

/* ── Grid ──────────────────────────────────────────────────── */

.rum__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 24px;
	row-gap: 40px;
	transition: opacity 0.2s ease;
}

/* ── Card ──────────────────────────────────────────────────── */

.rum__card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

/* ── Image ─────────────────────────────────────────────────── */

.rum__image-wrap {
	width: 100%;
	overflow: hidden;
}

.rum__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.rum__image-placeholder {
	width: 100%;
	padding-top: 66%;
	background-color: #E0E0E0;
}

/* ── Card footer ───────────────────────────────────────────── */

.rum__card-footer {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.rum__card-chevron-img {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	object-fit: contain;
	margin-top: 3px;
}

.rum__card-chevron-fallback {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #333333;
}

/* ── Title ─────────────────────────────────────────────────── */

.rum__title {
	font-size: 14px;
	color: #333333;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.rum__card:hover .rum__title {
	color: #CC0000;
}

/* Each model number (e.g. "RB-2CGN") must not break internally.
   Line breaks are only allowed at the " / " separators between spans. */
.rum__model {
	white-space: nowrap;
	display: inline;
}

/* ── PDF icon ──────────────────────────────────────────────── */

/* Inline so it flows naturally at the end of the last text line. */
.rum__pdf-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-left: 5px;
	color: #333333;
	line-height: 0;
}

.rum__pdf-svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ── No results ────────────────────────────────────────────── */

.rum__no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #999999;
	padding: 40px 0;
	margin: 0;
}
