/*
 * BIZCOCHOLAND · estilos de las páginas de recetas (/recetas/…)
 * Se carga DESPUÉS de /styles.css y solo añade clases con prefijo rp-.
 * styles.css no se modifica. Usa las variables de color y tipografía ya definidas allí.
 */

.rp-main { padding-block: 18px 40px; }

/* migas de pan */
.rp-crumbs { margin-bottom: 14px; font-size: .88rem; }
.rp-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.rp-crumbs li { display: inline-flex; align-items: center; }
.rp-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--cocoa-2); }
.rp-crumbs a { color: var(--burgundy); font-weight: 700; }
.rp-crumbs [aria-current="page"] { font-weight: 800; }

/* cabecera de receta */
.rp-head { display: grid; gap: 18px; align-items: center; margin-bottom: 24px; }
.rp-art { background: radial-gradient(circle at 50% 120%, var(--butter), var(--butter-l) 60%, #FFF3DC); border: 2px solid var(--cocoa); border-radius: 16px; box-shadow: 0 3px 0 var(--cocoa); padding: 16px 20px 8px; }
.rp-art svg { width: 100%; max-width: 260px; height: 140px; margin: 0 auto; display: block; }
.rp-head h1 { font-size: clamp(1.8rem, 5.4vw, 2.8rem); font-weight: 800; margin: 4px 0 8px; }
.rp-lead { font-size: 1.08rem; color: var(--cocoa-2); max-width: 60ch; }
.rp-head .meta { margin-top: 12px; }
.rp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .rp-head { grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; } }

/* columnas de ingredientes y pasos */
.rp-cols { display: grid; gap: 26px; margin-bottom: 28px; }
@media (min-width: 820px) { .rp-cols { grid-template-columns: 1fr 1.2fr; gap: 36px; } }
.rp-article h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); font-weight: 800; margin: 0 0 10px; }
.rp-article .sub-h { font-size: 1rem; margin: 16px 0 4px; color: var(--burgundy); }
.rp-note { font-size: .92rem; color: var(--cocoa-2); margin-bottom: 8px; }

/* balance */
.rp-bal { margin-bottom: 28px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--paper); border: 2px solid var(--line); }
.rp-table caption { text-align: left; font-size: .86rem; color: var(--cocoa-2); padding: 0 0 8px; }
.rp-table th, .rp-table td { padding: 9px 12px; text-align: left; border-bottom: 1px dashed var(--line); vertical-align: baseline; }
.rp-table thead th { background: var(--butter-l); font-weight: 800; font-size: .82rem; border-bottom: 2px solid var(--line); }
.rp-table tbody th { font-weight: 700; }
.rp-table tbody tr:last-child th, .rp-table tbody tr:last-child td { border-bottom: 0; }
.rp-st { display: inline-block; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rp-st.ok { background: var(--ok-bg); color: var(--ok); }
.rp-st.low { background: var(--low-bg); color: var(--low); }
.rp-st.high { background: var(--high-bg); color: var(--high); }
.rp-bal .fine { margin-top: 10px; font-size: .88rem; color: var(--cocoa-2); }
@media (max-width: 560px) {
  .rp-table th, .rp-table td { padding: 8px 8px; font-size: .86rem; }
}

/* texto editorial */
.rp-edit { max-width: 760px; margin-bottom: 30px; padding: 18px 20px; background: var(--paper); border: 2px solid var(--line); border-left: 6px solid var(--caramel); border-radius: 14px; }
.rp-edit p { margin-bottom: 12px; }
.rp-edit p:last-child { margin-bottom: 0; }

/* relacionadas e índice */
.rp-related { margin-top: 8px; }
.rp-all { margin-top: 14px; font-weight: 800; }
.rp-all a { color: var(--burgundy); }
.rcard a.rbtn { text-decoration: none; color: inherit; }
.rcard a.rbtn:hover h3 { text-decoration: underline; }
.rp-groups section { margin-bottom: 34px; }
.rp-groups h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; margin: 0 0 6px; }
.rp-tdesc { max-width: 70ch; color: var(--cocoa-2); margin-bottom: 14px; }

/* enlace «página de la receta» dentro de las tarjetas y de la ventana del recetario de la portada */
.rp-more { display: block; padding: 10px 16px 14px; border-top: 2px solid var(--line); font-weight: 800; font-size: .9rem; color: var(--burgundy); text-decoration: none; }
.rp-more:hover { text-decoration: underline; }
.rp-links { margin-top: 22px; }
.rp-links h3 { font-size: 1.1rem; margin-bottom: 8px; }
.rp-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.rp-links a { display: inline-block; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .88rem; color: var(--cocoa); text-decoration: none; }
.rp-links a:hover { border-color: var(--cocoa); background: var(--butter-l); }

/* impresión: solo la receta */
@media print {
  .rp-crumbs, .rp-cta, .rp-related, .rp-edit { display: none !important; }
  .rp-art { box-shadow: none; }
}
