/* Homepage editorial features. Campaign photographs are selected by the live renderer. */
body.sf-rebrand .home-diary {
  display: block;
  height: auto !important;
  min-height: 0 !important;
  padding: 64px 3.5vw !important;
  background: var(--rb-paper) !important;
  color: var(--rb-ink);
}
body.sf-rebrand .rb-review-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 560px;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--rb-pink);
}
body.sf-rebrand .rb-review-media { position: relative; min-width: 0; margin: 0; background: var(--rb-wine); overflow: hidden; }
body.sf-rebrand .rb-review-media > a { display: block; width: 100%; height: 100%; min-height: 560px; }
body.sf-rebrand .rb-review-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
body.sf-rebrand .rb-review-caption { position: absolute; left: 20px; bottom: 20px; margin: 0; padding: 8px 12px; background: var(--rb-paper); color: var(--rb-ink); font: 400 11px/1.4 var(--rb-font); letter-spacing: .02em; pointer-events: none; }
body.sf-rebrand .rb-review-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; padding: clamp(34px, 4.5vw, 72px); color: var(--rb-wine); }
body.sf-rebrand .rb-review-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
body.sf-rebrand .rb-review-heading h2 { margin: 0; font: 400 24px/1.2 var(--rb-font); letter-spacing: -.025em; }
body.sf-rebrand .home-diary-summary { display: block; margin: 0; color: var(--rb-wine); font: 400 12px/1.5 var(--rb-font); letter-spacing: 0; }
body.sf-rebrand .home-diary-stage { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; width: 100%; height: auto; min-height: 0; padding: 16px 0; }
body.sf-rebrand .home-diary-quote { width: 100%; max-width: 25ch; margin: 0; padding: 0; color: var(--rb-wine); font: 400 clamp(24px, 2.15vw, 34px)/1.28 var(--rb-font); letter-spacing: -.025em; text-align: left; text-wrap: pretty; }
body.sf-rebrand .home-diary-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; color: var(--rb-wine); font: 400 12px/1.5 var(--rb-font); letter-spacing: 0; }
body.sf-rebrand :is(.home-diary-quote, .home-diary-meta) { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
body.sf-rebrand .rb-review-rating { display: flex; gap: 3px; margin-bottom: 3px; font-size: 13px; color: rgba(78, 21, 28, .25); }
body.sf-rebrand .rb-review-rating .is-on { color: var(--rb-wine); }
body.sf-rebrand .rb-review-author { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
body.sf-rebrand .rb-review-verified { font-size: 10px; opacity: .75; }
body.sf-rebrand .rb-review-product { color: inherit; text-decoration: none; }
body.sf-rebrand .rb-review-product:hover { text-decoration: underline; }
body.sf-rebrand .rb-review-copy .rb-review-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border-bottom: 1px solid currentColor; color: var(--rb-wine); font: 400 12px/1.4 var(--rb-font); letter-spacing: 0; text-transform: none; text-decoration: none; }
body.sf-rebrand .rb-review-copy .rb-review-link::after { content: none; }

/* Large editorial product panels use the same visual rhythm as the collection edit. */
body.sf-rebrand .best-sellers-rail { display: block; height: auto !important; min-height: 0 !important; padding: 0 !important; background: var(--rb-paper) !important; color: var(--rb-ink); }
body.sf-rebrand .best-sellers-rail-inner { width: 100%; max-width: none; margin: 0; padding: 0; }
body.sf-rebrand .rb-bestsellers-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0; padding: 46px 6vw 34px; }
body.sf-rebrand .rb-bestsellers-heading .best-sellers-rail-title { margin: 0; padding: 0; color: var(--rb-ink); font: 400 clamp(30px,3vw,44px)/1.15 var(--rb-font); letter-spacing: -.035em; text-align: left; text-transform: none; }
body.sf-rebrand .rb-bestsellers-heading > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-ink); font: 400 12px/1.4 var(--rb-font); text-decoration: underline; text-underline-offset: 5px; }
body.sf-rebrand .rb-bestsellers-heading > a::after { content: none; }
body.sf-rebrand .best-sellers-masonry { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; width: 100%; padding: 0; columns: auto; }
body.sf-rebrand .best-sellers-rail-card { position: relative; display: block; width: auto; min-width: 0; height: auto; aspect-ratio: auto; margin: 0; padding: 0; overflow: hidden; background: var(--rb-wine); border: 0; box-shadow: none; transform: none !important; color: var(--rb-paper); }
body.sf-rebrand .best-sellers-rail-card::after { content: none; }
body.sf-rebrand .rb-bestseller-link { position: relative; display: block; color: inherit; text-decoration: none; }
body.sf-rebrand .rb-bestseller-link::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg,rgba(30,13,20,.38),transparent 38%,transparent 76%,rgba(30,13,20,.2)); }
body.sf-rebrand .best-sellers-rail-media { position: relative; display: block; aspect-ratio: 1; width: 100%; height: auto; margin: 0; padding: 0; background: var(--rb-wine); overflow: hidden; }
body.sf-rebrand .best-sellers-rail-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: center bottom; mix-blend-mode: normal; transform: none; filter: none; }
body.sf-rebrand .best-sellers-rail-meta { position: absolute; inset: 7% 16% auto 6%; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 0; background: transparent; color: var(--rb-paper); text-shadow: 0 1px 10px rgba(0,0,0,.12); }
body.sf-rebrand .best-sellers-rail-line { max-width: 14ch; margin: 0; color: inherit; font: 400 clamp(26px,2.8vw,42px)/1.12 var(--rb-font); letter-spacing: -.025em; text-transform: none; }
body.sf-rebrand .best-sellers-rail-price { margin: 0; font: 400 14px/1.4 var(--rb-font); letter-spacing: 0; color: inherit; text-transform: none; }
body.sf-rebrand .rb-bestseller-shop { position: absolute; z-index: 1; left: 6%; bottom: 6%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; padding: 10px 24px; font: 400 12px/1.4 var(--rb-font); color: var(--rb-paper); background: rgba(29,55,93,.12); }
body.sf-rebrand .rb-bestseller-link:hover .rb-bestseller-shop { background: var(--rb-paper); color: var(--rb-wine); }
body.sf-rebrand .rb-bestseller-link:focus-visible { outline: 2px solid var(--rb-paper); outline-offset: -8px; }
body.sf-rebrand .best-sellers-rail-save { position: absolute; top: 5%; right: 4%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--rb-paper); box-shadow: none; opacity: 1; transform: none; }
body.sf-rebrand .best-sellers-rail-save svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; filter: drop-shadow(0 1px 4px rgba(0,0,0,.3)); }
body.sf-rebrand .best-sellers-rail-save.is-saved svg { fill: currentColor; }
body.sf-rebrand .best-sellers-rail-save:hover { background: rgba(78,21,28,.18); }

/* These features belong to the home route, including when legacy portals open in place. */
body.sf-rebrand:not(.is-rebrand-home) :is(.home-diary, .best-sellers-rail),
body.sf-rebrand:is(.is-shop, .is-product, .is-story, .is-account) :is(.home-diary, .best-sellers-rail) { display: none; }

@media (max-width: 1000px) {
  body.sf-rebrand .rb-review-copy { padding: 34px; }
  body.sf-rebrand .home-diary-quote { font-size: 26px; }

}
@media (max-width: 760px) {
  body.sf-rebrand .home-diary { padding: 32px 18px !important; }
  body.sf-rebrand .rb-review-feature { grid-template-columns: 1fr; min-height: 0; }
  body.sf-rebrand .rb-review-media { aspect-ratio: 1; }
  body.sf-rebrand .rb-review-media > a { min-height: 0; }
  body.sf-rebrand .rb-review-copy { padding: 32px 28px; gap: 24px; }
  body.sf-rebrand .rb-review-heading h2 { font-size: 22px; }
  body.sf-rebrand .home-diary-stage { padding: 8px 0; gap: 24px; }
  body.sf-rebrand .home-diary-quote { max-width: 29ch; font-size: 26px; }
  body.sf-rebrand .rb-review-caption { left: 16px; bottom: 16px; }
  body.sf-rebrand .best-sellers-rail { padding: 0 !important; }
  body.sf-rebrand .rb-bestsellers-heading { margin: 0; padding: 34px 24px 24px; }
  body.sf-rebrand .rb-bestsellers-heading .best-sellers-rail-title { font-size: 26px; }
  body.sf-rebrand .best-sellers-masonry { grid-template-columns: 1fr; gap: 0; }
  body.sf-rebrand .best-sellers-rail-meta { gap: 9px; }
  body.sf-rebrand .best-sellers-rail-line { font-size: 30px; }
  body.sf-rebrand .best-sellers-rail-price { font-size: 13px; }
  body.sf-rebrand .best-sellers-rail-save { top: 4%; right: 4%; }
  body.sf-rebrand .rb-bestseller-shop { padding-inline: 18px; font-size: 11px; }
}
