/* RetroMarket Core — grados de vinilo (escala Goldmine). Usa la paleta del theme si existe. */
:root {
	--rmg-ink: var(--rm-ink, #1e1a17);
	--rmg-paper: var(--rm-paper, #f3ebdd);
	--rmg-alt: var(--rm-paper-alt, #e9dcc6);
	--rmg-brand: var(--rm-brand, #8cae3d);
	--rmg-brand-dark: var(--rm-brand-dark, #4e6620);
	--rmg-gold: var(--rm-gold, #c8963e);
	--rmg-orange: var(--rm-orange, #c4572c);
	--rmg-mono: var(--rm-font-mono, ui-monospace, Menlo, monospace);
	--rmg-display: var(--rm-font-display, Georgia, serif);
}

/* Insignia compacta "VG+ / VG" */
.rmc-grade-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 700 11.5px/1.3 var(--rmg-mono); letter-spacing: .04em; color: #fff; background: var(--rmg-ink); white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.rmc-grade-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, currentColor 0 22%, transparent 24%), repeating-radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1px 2px); box-shadow: 0 0 0 1.5px currentColor; flex: none; }
.rmc-grade-badge--mint, .rmc-grade-badge--nm { background: var(--rmg-brand-dark); }
.rmc-grade-badge--vgp { background: #5f7a24; }
.rmc-grade-badge--vg { background: #8a6a1f; }
.rmc-grade-badge--g { background: #8d3a19; }
.rmc-grade-badge--f { background: #5b5249; }

/* Tarjeta: sticker sobre la foto */
.rm-card__grade { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.rm-card__grade .rmc-grade-badge { font-size: 12.5px; padding: 5px 11px 5px 8px; }

/* Grado grande */
.rmc-grade-big { display: inline-grid; place-items: center; min-width: 58px; height: 46px; padding: 0 10px; border-radius: 10px; font: 800 22px/1 var(--rmg-display); color: #fff; background: var(--rmg-ink); letter-spacing: -.01em; }
.rmc-grade-big--mint, .rmc-grade-big--nm { background: var(--rmg-brand-dark); }
.rmc-grade-big--vgp { background: #5f7a24; }
.rmc-grade-big--vg { background: #8a6a1f; }
.rmc-grade-big--g { background: #8d3a19; }
.rmc-grade-big--f, .rmc-grade-big--none { background: #6d655c; }

/* Medidor estilo VU */
.rmc-grade-meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.rmc-grade-meter i { width: 6px; border-radius: 1.5px; background: rgba(0,0,0,.12); }
.rmc-grade-meter i:nth-child(1) { height: 5px; } .rmc-grade-meter i:nth-child(2) { height: 6px; } .rmc-grade-meter i:nth-child(3) { height: 8px; }
.rmc-grade-meter i:nth-child(4) { height: 9px; } .rmc-grade-meter i:nth-child(5) { height: 11px; } .rmc-grade-meter i:nth-child(6) { height: 12px; } .rmc-grade-meter i:nth-child(7) { height: 14px; }
.rmc-grade-meter i.on { background: var(--rmg-brand); }
.rmc-grade-meter i.on:nth-child(n+6) { background: var(--rmg-brand-dark); }
.rmc-grade-meter i.on:nth-child(-n+2) { background: var(--rmg-orange); }
.rmc-grade-meter i.on:nth-child(3), .rmc-grade-meter i.on:nth-child(4) { background: var(--rmg-gold); }

/* Caja en la ficha */
.rmc-grade-box { border: 1.5px solid var(--rmg-ink); border-radius: 14px; padding: 14px 16px; background: #fff; display: grid; gap: 10px; box-shadow: 0 3px 0 var(--rmg-ink); }
.rmc-grade-box__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rmc-grade-box__head strong { font-size: 16px; }
.rmc-grade-box__head span { font: 600 10.5px var(--rmg-mono); letter-spacing: .1em; text-transform: uppercase; color: #6f655b; }
.rmc-grade-box__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rmc-grade-box__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--rmg-alt); }
.rmc-grade-box__item .rmc-grade-big { grid-row: 2 / span 2; }
.rmc-grade-box__what { grid-column: 1 / -1; font: 600 10.5px var(--rmg-mono); letter-spacing: .1em; text-transform: uppercase; color: #6f655b; margin-bottom: 6px; }
.rmc-grade-box__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.rmc-grade-box__desc { margin: 0; font-size: 14.5px; color: #4a423b; }
.rmc-grade-box__notes { margin: 0; font-size: 14px; padding: 8px 10px; border-left: 3px solid var(--rmg-gold); background: var(--rmg-paper); border-radius: 0 8px 8px 0; }
.rmc-grade-box__link { font-size: 13.5px; font-weight: 600; color: var(--rmg-brand-dark); }

/* Filtro de la tienda */
.rmc-grade-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; width: 100%; }
.rmc-grade-filter__label { font: 600 11.5px var(--rmg-mono); letter-spacing: .08em; text-transform: uppercase; color: #6f655b; margin-right: 4px; }
.rmc-grade-chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--rmg-ink); font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--rmg-ink); background: transparent; }
.rmc-grade-chip:hover { background: var(--rmg-alt); color: var(--rmg-ink); }
.rmc-grade-chip.is-active { background: var(--rmg-ink); color: var(--rmg-brand); }
.rmc-grade-filter__help { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--rmg-brand-dark); }

/* Guía */
.rmc-guide { display: grid; gap: 18px; }
.rmc-guide__intro { font-size: 17.5px; }
.rmc-guide__example { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1.5px dashed var(--rmg-brand); border-radius: 12px; }
.rmc-guide__example .rmc-grade-badge { font-size: 14px; padding: 6px 13px 6px 10px; }
.rmc-guide__list { display: grid; gap: 10px; }
.rmc-guide__item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.1); }
.rmc-guide__code { display: grid; gap: 8px; justify-items: start; }
.rmc-guide__item h3 { margin: 0 0 4px; font-size: 19px; }
.rmc-guide__item h3 small { font-family: var(--rm-font-body, sans-serif); font-weight: 500; font-size: 14px; color: #6f655b; margin-left: 6px; }
.rmc-guide__item p { margin: 0; font-size: 15.5px; }
.rmc-guide__promise { padding-left: 20px; }

/* Panel: ayuda de grados */
.rmc-grade-help summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.rmc-grade-help dl { display: grid; gap: 6px; margin: 10px 0 0; }
.rmc-grade-help dl div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13.5px; }
.rmc-grade-help dt { font: 700 13px var(--rmg-mono); }
.rmc-grade-help dd { margin: 0; }
.rmc-prod small .rmc-grade-badge { margin-left: 6px; box-shadow: none; font-size: 10.5px; padding: 1px 7px 1px 5px; }

@media (max-width: 600px) {
	.rmc-grade-box__grid { grid-template-columns: 1fr; }
	.rmc-guide__item { grid-template-columns: 1fr; gap: 8px; }
	.rmc-grade-filter__help { margin-left: 0; width: 100%; }
	.rm-card__grade { left: 8px; bottom: 8px; }
	.rm-card__grade .rmc-grade-badge { font-size: 11px; padding: 4px 9px 4px 7px; }
}
