/* Recomandabil homepage modules – visual language: orange accents, warm grays,
   white paper cards, generous rounded corners. Scoped to rb-home-* only. */
.rb-home-section {
  --rb-accent: #ff9773;
  --rb-ink: #25262a;
  --rb-muted: #77777e;
  --rb-paper: #fff;
  --rb-soft: #fff1eb;
  margin: 0 0 50px;
  color: var(--rb-ink);
}
.rb-home-section:first-of-type { margin-top: 27px; }
.rb-home-section *, .rb-home-section *::before, .rb-home-section *::after { box-sizing: border-box; }
.rb-home-section :is(h2,h3,p) { margin-top: 0; }
.rb-home-section a { text-decoration: none; transition: color .2s ease, transform .2s ease; }
.rb-home-section a:hover { color: #e86c46; }
.rb-home-section img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 25px; }
.rb-home-section-heading-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 13px; }
.rb-home-section-title { margin: 0!important; font-size: 21px!important; font-weight: 750; line-height: 1.2; letter-spacing: -.45px; color: var(--rb-ink); }
.rb-home-section-title::before { content: ''; display: inline-block; background: var(--rb-accent); width: 6px; height: 18px; border-radius: 5px; margin-right: 9px; vertical-align: -2px; }
.rb-home-ornament { width: 50px; height: 1px; flex-shrink: 0; background: linear-gradient(90deg,var(--rb-accent),transparent); }
.rb-home-section .rb-home-card-title { font-size: 16px; font-weight: 720; line-height: 1.34; letter-spacing: -.25px; margin: 8px 0 9px; }
.rb-home-section .rb-home-card-title a { color: inherit; }
.rb-home-section .rb-home-card-title a:hover { color: #e87550; }
.rb-home-section .rb-home-category { display: inline-block; width: max-content; line-height: 1; }
.rb-home-section .rb-home-category .cat-item { display: inline-flex; }
.rb-home-section .rb-home-category .cat-item a { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .01em; padding: 5px 9px; border-radius: 20px; color: #8c3583; background: #f7e4f5; line-height: 1.05; }
.rb-home-section .rb-home-meta { font-size: 10px; color: var(--rb-muted); line-height: 1.4; display: inline-block; }
.rb-home-section .rb-home-meta i { font-size: 10px; margin-right: 3px; }
.rb-home-image-placeholder { width: 100%; height: 100%; display: block; background: radial-gradient(circle at 65% 25%, #ffbe98 0, transparent 48%), linear-gradient(130deg,#e9d7cd,#f0d0be 80%); }
.rb-home-excerpt { font-size: 13px; color: var(--rb-muted); line-height: 1.75; }

/* Editorial cover – text / visual / reading rail. */
.rb-editorial-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.15fr) minmax(0,.85fr); gap: 12px; min-height: 270px; }
.rb-editorial-lead { background: var(--rb-paper); padding: clamp(18px,2.7vw,33px); border-radius: 15px 0 0 15px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.rb-home-kicker { font-size: 10px; font-weight: 850; letter-spacing: 1.3px; color: #d7704e; margin-bottom: 18px; }
.rb-home-kicker span { font-size: 14px; padding-left: 5px; }
.rb-editorial-lead .rb-editorial-lead-title { font-size: clamp(20px,2.4vw,30px); font-weight: 790; line-height: 1.2; letter-spacing: -.7px; margin: 12px 0 10px; }
.rb-editorial-lead .rb-home-excerpt { margin: 0 0 18px; }
.rb-home-readmore { font-size: 12px; font-weight: 760; color: #d76f4a; }
.rb-home-readmore span { font-size: 16px; vertical-align: -1px; margin-left: 6px; }
.rb-editorial-photo { display: block; overflow: hidden; min-height: 260px; margin-left: -12px; border-radius: 0 15px 15px 0; background: #efdfd5; }
.rb-editorial-photo img { transition: transform .45s ease; }
.rb-editorial-photo:hover img { transform: scale(1.04); }
.rb-editorial-side { display: flex; flex-direction: column; gap: 11px; }
.rb-editorial-side-item { background: var(--rb-paper); min-width: 0; border-radius: 13px; padding: 16px 17px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; overflow: hidden; }
.rb-editorial-side-item .rb-home-card-title { font-size: 14px; margin: 8px 0 10px; }

/* Discovery journal – airy numbered horizontal reading bar. */
.rb-discover-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--rb-paper); border-radius: 14px; overflow: hidden; }
.rb-discover-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 17px 16px 18px; min-width: 0; border-right: 1px solid #f0efee; }
.rb-discover-item:last-child { border-right: 0; }
.rb-discover-image { width: 78px; height: 78px; overflow: hidden; border-radius: 50%; border: 4px solid var(--rb-soft); flex-shrink: 0; }
.rb-discover-image img { transition: transform .4s ease; }
.rb-discover-item:hover .rb-discover-image img { transform: scale(1.08); }
.rb-discover-copy { flex: 1; min-width: 0; }
.rb-discover-item .rb-home-card-title { font-size: 13px; font-weight: 730; line-height: 1.4; margin: 7px 0 0; }
.rb-discover-arrow { position: absolute; right: 15px; bottom: 12px; color: #eca58a; font-size: 17px; }

/* Image mosaic – magazine cover plus secondary content notes. */
.rb-mosaic-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 12px; min-height: 280px; }
.rb-mosaic-lead { position: relative; border-radius: 15px; overflow: hidden; min-height: 280px; background: #b0a09a; }
.rb-mosaic-cover-link { position: absolute; inset: 0; }
.rb-mosaic-cover-link img { transition: transform .5s ease; }
.rb-mosaic-lead:hover .rb-mosaic-cover-link img { transform: scale(1.035); }
.rb-mosaic-lead::after { position: absolute; inset: 28% 0 0; content: ''; background: linear-gradient(0deg,rgba(20,17,17,.86),rgba(20,17,17,0)); pointer-events: none; }
.rb-mosaic-overlay { position: absolute; bottom: 20px; left: 22px; right: 22px; z-index: 1; color: #fff; pointer-events: none; }
.rb-mosaic-overlay :is(a) { pointer-events: auto; }
.rb-mosaic-overlay .rb-home-card-title { max-width: 480px; font-size: clamp(17px,2vw,23px); margin: 10px 0; color: #fff; }
.rb-mosaic-overlay .rb-home-card-title a:hover { color: #ffc5af; }
.rb-mosaic-overlay .rb-home-meta { color: #efeeec; }
.rb-mosaic-rail { display: grid; gap: 12px; align-content: stretch; }
.rb-mosaic-rail-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(90px,.85fr); gap: 8px; min-height: 125px; border-radius: 14px; background: var(--rb-paper); overflow: hidden; }
.rb-mosaic-rail-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 15px 6px 15px 18px; }
.rb-mosaic-rail-copy .rb-home-card-title { font-size: 13px; margin: 6px 0 9px; }
.rb-mosaic-rail-image { display: block; overflow: hidden; min-width: 0; }
.rb-mosaic-rail-image img { transition: transform .4s ease; }
.rb-mosaic-rail-image:hover img { transform: scale(1.07); }

/* High contrast selection – aubergine ink with peach visual accent. */
.rb-spotlight-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 12px; }
.rb-spotlight-lead { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(100px,.85fr); min-height: 225px; border-radius: 16px; background: #34313a; color: #fff; overflow: hidden; position: relative; }
.rb-spotlight-lead::before { content: ''; position: absolute; width: 170px; height: 170px; border: 1px solid #ffffff22; border-radius: 50%; left: -70px; bottom: -110px; pointer-events: none; }
.rb-spotlight-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 26px 5px 27px 26px; z-index: 1; }
.rb-spotlight-eyebrow { color: #ffb18d; font-size: 9px; font-weight: 840; letter-spacing: 1.25px; margin-bottom: 13px; }
.rb-spotlight-lead .rb-home-card-title { color: #fff; font-size: clamp(18px,2.25vw,26px); line-height: 1.21; margin: 8px 0 9px; }
.rb-spotlight-lead .rb-home-card-title a:hover { color: #ffc2a5; }
.rb-spotlight-lead .rb-home-excerpt { font-size: 12px; color: #c7c2c8; margin: 0 0 13px; }
.rb-spotlight-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; background: #f18f6c; font-size: 11px; font-weight: 750; padding: 8px 12px; border-radius: 30px; }
.rb-spotlight-cta:hover { background: #ffb292; color: #333; }
.rb-spotlight-photo { display: block; overflow: hidden; margin: 24px 0 -19px 6px; border-radius: 95px 0 0 0; }
.rb-spotlight-photo img { transition: transform .4s ease; }
.rb-spotlight-photo:hover img { transform: scale(1.05); }
.rb-spotlight-rail { display: grid; gap: 11px; }
.rb-spotlight-small { display: flex; align-items: center; gap: 13px; padding: 13px; background: var(--rb-paper); border-radius: 13px; min-width: 0; }
.rb-spotlight-thumb { width: 104px; min-width: 104px; align-self: stretch; border-radius: 9px; overflow: hidden; }
.rb-spotlight-small > div { min-width: 0; }
.rb-spotlight-small .rb-home-card-title { font-size: 13px; margin: 6px 0; }

/* Respect the theme's dark toggle without affecting the legacy Blogzee blocks. */
body.blogzee-dark-mode .rb-home-section { --rb-ink: #f6f4f4; --rb-muted: #b2afb1; --rb-paper: #28272c; --rb-soft: #403035; }
body.blogzee-dark-mode .rb-discover-item { border-color: #403f42; }
body.blogzee-dark-mode .rb-spotlight-lead { background: #443541; }

@media (max-width: 1050px) {
  .rb-editorial-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .rb-editorial-side { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rb-editorial-lead { padding: 25px; }
  .rb-discover-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rb-discover-item:nth-child(2n) { border-right: 0; }
  .rb-discover-item:nth-child(-n+2) { border-bottom: 1px solid #f0efee; }
}
@media (max-width: 700px) {
  .rb-home-section { margin-bottom: 34px; }
  .rb-home-section-heading { margin-bottom: 19px; }
  .rb-home-section-title { font-size: 19px!important; }
  .rb-home-section-heading-text { display: block; }
  .rb-home-ornament { display: none; }
  .rb-editorial-grid { gap: 0; }
  .rb-editorial-lead { padding: 21px; border-radius: 14px 0 0 14px; }
  .rb-editorial-lead .rb-editorial-lead-title { font-size: 19px; }
  .rb-editorial-photo { min-height: 220px; margin: 0; border-radius: 0 14px 14px 0; }
  .rb-editorial-side { margin-top: 10px; gap: 10px; }
  .rb-mosaic-grid { grid-template-columns: 1fr; }
  .rb-mosaic-lead { min-height: 280px; }
  .rb-mosaic-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rb-mosaic-rail-card { grid-template-columns: 1fr; display: flex; flex-direction: column-reverse; }
  .rb-mosaic-rail-image { height: 110px; }
  .rb-mosaic-rail-copy { padding: 13px; }
  .rb-spotlight-grid { grid-template-columns: 1fr; }
  .rb-spotlight-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rb-spotlight-small { flex-direction: column; align-items: stretch; }
  .rb-spotlight-thumb { width: 100%; height: 105px; align-self: auto; }
}
@media (max-width: 480px) {
  .rb-editorial-grid { display: flex; flex-direction: column; }
  .rb-editorial-lead { border-radius: 14px 14px 0 0; padding: 20px; }
  .rb-editorial-photo { min-height: 195px; height: 195px; border-radius: 0 0 14px 14px; }
  .rb-editorial-side { grid-template-columns: 1fr 1fr; }
  .rb-editorial-side-item { padding: 13px; }
  .rb-editorial-side-item .rb-home-card-title { font-size: 12px; }
  .rb-editorial-side-item .rb-home-meta { display: none; }
  .rb-discover-item { padding: 13px 11px 16px; }
  .rb-discover-image { width: 61px; height: 61px; }
  .rb-discover-item .rb-home-card-title { font-size: 12px; }
  .rb-mosaic-rail { grid-template-columns: 1fr; }
  .rb-mosaic-rail-card { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(90px,.85fr); }
  .rb-mosaic-rail-image { height: auto; }
  .rb-spotlight-lead { grid-template-columns: minmax(0,1.15fr) minmax(100px,.85fr); }
  .rb-spotlight-copy { padding: 18px 1px 20px 15px; }
  .rb-spotlight-lead .rb-home-card-title { font-size: 17px; }
  .rb-spotlight-lead .rb-home-excerpt { display: none; }
  .rb-spotlight-photo { margin: 15px 0 -12px 6px; }
  .rb-spotlight-cta { font-size: 10px; padding: 7px 9px; }
  .rb-spotlight-rail { grid-template-columns: 1fr; }
  .rb-spotlight-small { flex-direction: row; }
  .rb-spotlight-thumb { height: 84px; width: 98px; min-width: 98px; }
}

/* The first page shows only customizable homepage sections, not the old list. */
.rb-homepage-main { display: block; width: 100%; min-width: 0; margin: 0; padding: 0 0 16px; }
.rb-homepage-main .rb-home-section:first-child { margin-top: 26px; }

/* Panorama: cinematic, full-width photo and a border-led open reading strip. */
.rb-panorama-cover { position: relative; isolation: isolate; height: clamp(280px, 38vw, 450px); overflow: hidden; border-radius: 14px; background: #a89087; }
.rb-panorama-photo { position: absolute; inset: 0; display: block; }
.rb-panorama-photo img { transition: transform .65s ease; }
.rb-panorama-cover:hover .rb-panorama-photo img { transform: scale(1.035); }
.rb-panorama-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(14,13,16,.84) 0%,rgba(14,13,16,.50) 44%,rgba(14,13,16,.04) 87%); }
.rb-panorama-caption { position: absolute; left: clamp(19px,4vw,48px); bottom: clamp(18px,3vw,42px); z-index: 1; max-width: min(570px,70%); color: #fff; pointer-events: none; }
.rb-panorama-caption a { pointer-events: auto; }
.rb-panorama-caption .rb-home-card-title { font-size: clamp(24px,3.6vw,42px); letter-spacing: -.9px; line-height: 1.12; font-weight: 780; margin: 14px 0 11px; color: #fff; }
.rb-panorama-caption .rb-home-card-title a:hover { color: #ffbf9f; }
.rb-panorama-caption .rb-home-excerpt { font-size: clamp(12px,1.25vw,15px); max-width: 430px; color: #e6e2df; line-height: 1.6; margin-bottom: 14px; }
.rb-panorama-read { font-size: 12px; color: #fff; font-weight: 760; display: inline-block; border-bottom: 1px solid #ffb896; padding-bottom: 4px; }
.rb-panorama-read:hover { color: #ffb896!important; }
.rb-panorama-read span { display: inline-block; margin-left: 6px; }
.rb-panorama-quickreads { display: flex; align-items: stretch; border-bottom: 1px solid #d7d2d0; margin-top: 14px; }
.rb-panorama-quickread { flex: 1; min-width: 0; display: flex; align-items: flex-start; flex-direction: column; border-right: 1px solid #d7d2d0; padding: 10px 20px 17px 0; margin-right: 20px; position: relative; }
.rb-panorama-quickread:last-child { border-right: 0; margin-right: 0; }
.rb-panorama-quickread .rb-home-card-title { font-size: 14px; font-weight: 725; margin: 7px 21px 0 0; }
.rb-panorama-quickread .rb-home-category .cat-item a { border-radius: 0; background: none; padding: 2px 0; color: #e57b55; text-transform: uppercase; font-size: 9px; letter-spacing: .5px; }
.rb-panorama-quick-arrow { position: absolute; right: 12px; bottom: 14px; font-size: 18px; color: #de8665; }

/* Journal: pure editorial typography; no individual cards, backgrounds or pills. */
.rb-journal-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); column-gap: clamp(24px,4vw,55px); border-top: 2px solid #393339; border-bottom: 1px solid #c9c6c4; padding: 22px 0 24px; }
.rb-journal-feature { padding-right: clamp(12px,3vw,36px); border-right: 1px solid #d5d1cf; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rb-journal-mark { display: block; font-size: 31px; line-height: 1; color: #ee946d; margin: 0 0 14px; }
.rb-journal-feature .rb-home-card-title { font-family: Georgia,'Times New Roman',serif; font-size: clamp(23px,3.1vw,38px); font-weight: 700; letter-spacing: -.7px; line-height: 1.18; margin: 13px 0 14px; }
.rb-journal-feature .rb-home-excerpt { font-size: 14px; line-height: 1.85; max-width: 560px; margin: 0 0 27px; }
.rb-journal-foot { display: flex; width: 100%; justify-content: space-between; gap: 10px; align-items: center; margin-top: auto; }
.rb-journal-foot > a { font-size: 12px; font-weight: 770; color: #d67350; border-bottom: 1px solid #d67350; padding-bottom: 3px; }
.rb-journal-other { display: flex; flex-direction: column; min-width: 0; }
.rb-journal-entry { padding: 12px 0 15px; border-bottom: 1px solid #d5d1cf; min-width: 0; }
.rb-journal-entry:first-child { padding-top: 0; }
.rb-journal-entry:last-child { border: none; padding-bottom: 0; }
.rb-journal-entry .rb-home-card-title { font-size: clamp(14px,1.6vw,19px); font-weight: 720; line-height: 1.35; margin: 7px 0 8px; }
.rb-home-journal .rb-home-category .cat-item a { background: transparent; border-radius: 0; padding: 0; color: #d77551; font-size: 10px; letter-spacing: .25px; text-transform: uppercase; }
body.blogzee-dark-mode .rb-journal-layout { border-color: #a79da0; }
body.blogzee-dark-mode :is(.rb-journal-feature,.rb-journal-entry,.rb-panorama-quickread,.rb-panorama-quickreads) { border-color: #545056; }

@media (max-width: 800px) {
  .rb-panorama-quickreads { flex-wrap: wrap; }
  .rb-panorama-quickread { flex: 1 1 42%; border-bottom: 1px solid #ddd7d3; padding-bottom: 20px; }
  .rb-panorama-quickread:nth-child(2n) { border-right: 0; margin-right: 0; }
  .rb-journal-layout { column-gap: 22px; }
}
@media (max-width: 600px) {
  .rb-panorama-cover { height: 330px; }
  .rb-panorama-cover::after { background: linear-gradient(0deg,rgba(14,13,16,.87),rgba(14,13,16,.07) 90%); }
  .rb-panorama-caption { max-width: none; left: 20px; right: 20px; bottom: 22px; }
  .rb-panorama-caption .rb-home-card-title { font-size: 25px; line-height: 1.17; }
  .rb-panorama-caption .rb-home-excerpt { font-size: 12px; margin-bottom: 10px; }
  .rb-panorama-quickread { flex: 1 1 100%; margin: 0; padding: 11px 32px 14px 0; border-right: 0; }
  .rb-panorama-quickread .rb-home-card-title { font-size: 14px; }
  .rb-panorama-quick-arrow { right: 5px; }
  .rb-journal-layout { grid-template-columns: 1fr; padding-top: 18px; }
  .rb-journal-feature { border-right: none; border-bottom: 1px solid #d5d1cf; padding: 0 0 22px; margin-bottom: 8px; }
  .rb-journal-feature .rb-home-card-title { font-size: 27px; }
  .rb-journal-feature .rb-home-excerpt { font-size: 13px; line-height: 1.75; margin-bottom: 20px; }
  .rb-journal-entry { padding: 15px 0; }
  .rb-journal-entry .rb-home-card-title { font-size: 16px; }
}

/* Discover: no heading; date beneath each short recommendation. */
.rb-home-discover .rb-discover-copy .rb-home-meta { display: block; margin: 9px 18px 0 0; font-size: 10px; }
.rb-home-discover .rb-discover-item { padding-bottom: 24px; }
@media (max-width: 480px) {
  .rb-home-discover .rb-discover-copy .rb-home-meta { margin-top: 7px; font-size: 10px; }
}
