/* Valoración en libros — usa las variables del tema Relatos Moretta. */
.rm-story-rating {
	min-width: 0;
	width: 100%;
	max-width: 680px;
	margin: 0 auto !important;
	padding: 22px 0 24px;
	border-top: 2px solid var(--ink, #24241f);
	border-bottom: 1px solid var(--line, #bdbcb2);
	text-align: center;
}
.rm-vl-title {
	font: 12px/1.5 var(--sans, 'DM Sans', Arial, sans-serif) !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--red, #8C3F32);
	margin: 0 0 6px !important;
}
.rm-vl-hint {
	font: 23px/1.35 var(--serif, 'Libre Caslon Display', Georgia, serif);
	color: var(--ink, #24241f);
	margin: 0 0 14px !important;
}
.rm-vl-books {
	display: inline-flex;
	gap: 6px;
}
.rm-vl-book {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px;
	margin: 0;
	cursor: pointer;
	line-height: 0;
	border-radius: 4px;
	transition: transform .15s ease;
}
.rm-vl-book svg {
	width: 34px;
	height: 34px;
	overflow: visible;
}
.rm-vl-book .rm-vl-cover,
.rm-vl-book .rm-vl-pages {
	fill: transparent;
	stroke: var(--muted, #65655d);
	stroke-width: 1.4;
	stroke-linejoin: round;
	transition: fill .15s ease, stroke .15s ease;
}
.rm-vl-book .rm-vl-line {
	fill: none;
	stroke: var(--muted, #65655d);
	stroke-width: 1.2;
	stroke-linecap: round;
}
.rm-vl-book.is-on .rm-vl-cover {
	fill: var(--red, #8C3F32);
	stroke: var(--red, #8C3F32);
}
.rm-vl-book.is-on .rm-vl-pages {
	fill: var(--paper, #f5f3ec);
	stroke: var(--red, #8C3F32);
}
.rm-vl-book.is-on .rm-vl-line {
	stroke: var(--paper, #f5f3ec);
}
.rm-vl-book:not(:disabled):hover {
	transform: translateY(-2px);
}
.rm-vl-book:focus-visible {
	outline: 2px solid var(--red, #8C3F32);
	outline-offset: 2px;
}
.rm-vl-book:disabled {
	cursor: default;
}
.rm-vl-summary {
	font: 13px/1.6 var(--sans, 'DM Sans', Arial, sans-serif);
	color: var(--muted, #65655d);
	margin: 10px 0 0 !important;
	min-height: 1.6em;
}
@media (prefers-reduced-motion: reduce) {
	.rm-vl-book,
	.rm-vl-book .rm-vl-cover,
	.rm-vl-book .rm-vl-pages { transition: none; }
	.rm-vl-book:not(:disabled):hover { transform: none; }
}

/* En el lateral, debajo del cuaderno de escritura. */
.rm-story-rating.is-in-sidebar {
	max-width: none;
	margin: 22px 0 0 !important;
	padding: 18px 0 4px;
	border-bottom: 0;
	text-align: left;
}
.rm-story-rating.is-in-sidebar .rm-vl-hint {
	font-size: 19px;
}
.rm-story-rating.is-in-sidebar .rm-vl-books {
	gap: 2px;
	margin-left: -6px;
}
.rm-story-rating.is-in-sidebar .rm-vl-book svg {
	width: 28px;
	height: 28px;
}

/* Sin cuaderno: justo debajo del relato, en la cuadrícula de lectura. */
@media (min-width: 900px) and (max-width: 1199px) {
	.rm-reading-layout > .rm-story-rating { grid-column: 1; grid-row: 2; }
	.rm-reading-layout > .rm-story-sharing { grid-row: 3; }
	.rm-reading-layout > .rm-story-subscription { grid-row: 4; }
}
@media (min-width: 1200px) {
	.rm-reading-layout > .rm-story-rating { grid-column: 2; grid-row: 2; }
	.rm-reading-layout > .rm-story-sharing { grid-row: 3; }
	.rm-reading-layout > .rm-story-subscription { grid-row: 4; }
}
