/* The Revista Adventista panel on the Revistas category page (includes/revista-adventista.php). Builds on sabbath-school.css
   (the panel, buttons and viewer) and the theme's colours. */
.ra-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.ra-intro { flex: 1 1 28rem; }
.ra-intro > * { margin-block: 0 .8rem; }
.ra-intro > :last-child { margin-bottom: 0; }
.ra-years { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; }
.ra-years select { font: inherit; padding: .5rem 2rem .5rem .8rem; border: 2px solid var(--wp--preset--color--blue, #245d94); border-radius: 999px; background: #fff; color: var(--wp--preset--color--blue-dark, #14344f); }
.ra-go { padding: .5rem 1rem; }
.ra-yearbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 2rem 0 1rem; }
.ra-yearbar .ra-step:last-child { text-align: right; }
.ra-step { font-weight: 700; text-decoration: none; color: var(--wp--preset--color--blue, #245d94); }
.ra-step:hover { text-decoration: underline; }
.ra-year { margin: 0; text-align: center; font-size: 1.6rem; line-height: 1.1; }
.ra-year small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted, #5b6b7a); }
.ra-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.4rem 1.1rem; }
.ra-issue { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.ra-cover { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.ra-cover img { display: block; width: 100%; height: auto; aspect-ratio: 229 / 300; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgba(20, 52, 79, .2); transition: transform .15s ease, box-shadow .15s ease; }
.ra-cover:hover img, .ra-cover[aria-pressed="true"] img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 52, 79, .28); }
.ra-cover[aria-pressed="true"] { outline: 3px solid var(--wp--preset--color--blue, #245d94); outline-offset: 3px; }
.ra-nocover { display: grid; place-items: center; aspect-ratio: 229 / 300; padding: 1rem; font-weight: 700; color: var(--wp--preset--color--blue-dark, #14344f); background: #fff; border-radius: 6px; box-shadow: 0 8px 22px rgba(20, 52, 79, .2); }
.ra-label { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ra-empty { margin: 1.5rem 0; padding: 1rem 1.2rem; background: #fff; border-radius: 10px; color: var(--wp--preset--color--muted, #5b6b7a); }
.ra-old { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(20, 52, 79, .15); font-size: .95rem; color: var(--wp--preset--color--muted, #5b6b7a); }
.ra-old h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--wp--preset--color--blue-dark, #14344f); }
.ra-old p { margin: 0; }
@media (max-width: 760px) {
  .ra-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .9rem; }
  .ra-year { font-size: 1.3rem; }
}
