/* ==========================================================================
   Bento homepage (template-parts/home-bento.php). Builds on home-refined.css
   (the black masthead) and home-cover.css (cards, series, Las Vegas 101,
   the walk chart and its pop-up).

   12-column grid; every tile edge sits on a half or a quarter, with one gap,
   one radius and one tile-header style. Desktop:
     lead story (6, two rows) | walk (6) over coming up (6)
     Latest Stories heading, topic links, eight cards (3 each)
     giveaway (6) | account (6)
     Original Series (shared with Cover)
     Browse by Topic, four headline lists (3 each)
     Find a Spot heading, four link cards (3 each)
   The page background is white.
   ========================================================================== */

.rc .rb-mast { margin-bottom: 0; }
.rc.rb, .rb .rc-sec, .rb .rh-sec.dogs { background: #fff; }
.rb .rc-sec { padding-top: 24px; padding-bottom: 36px; }

.rb-top { padding: 36px 0 28px; }
.rb-more { padding: 0 0 20px; }
.rb-grid { --rb-gap: 20px; --rb-r: 16px; --rb-pad: 22px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--rb-gap); align-items: stretch; }
.rb-t { grid-column: span 3; position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: var(--rb-pad); background: #fff; border: 1px solid var(--rc-line); border-radius: var(--rb-r); }
a.rb-t { transition: box-shadow .15s, transform .15s; }
a.rb-t:hover { box-shadow: 0 10px 26px rgba(20,20,20,.09); transform: translateY(-2px); }
.rb-grid > .rb-full { grid-column: 1 / -1; }
.rb-grid > .rb-tall { grid-row: span 2; }

/* tile header: label left, action right */
.rb-th { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; margin-bottom: 10px; }
.rb-th .rc-k { margin: 0; }

/* section heading inside the grid */
.rb-sub { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 24px; }
.rb-sub .rc-h { margin: 0; }
.rb-sub--first { margin-top: 0; }

/* lead story */
.rb-lead { grid-column: span 6; grid-row: span 2; min-height: 440px; padding: 0; border: 0; background: #141414; }
.rb-lead-img, .rb-lead-shade { position: absolute; inset: 0; }
.rb-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.rb-lead-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.88)); }
.rb-lead-tx { position: relative; margin-top: auto; padding: 28px; }
.rc .rb-lead-t { display: block; margin-top: 10px; font: 800 30px/1.12 var(--font-display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.rb-lead:hover .rb-lead-t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* walk right now */
.rb-walk { grid-column: span 6; background: #141414; border: 0; color: #fff; padding-bottom: 0; }
.rb-walk-open { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #fff; border: 1px solid #3A3A38; border-radius: 999px; padding: 5px 11px; font: 700 12px var(--font-body); cursor: pointer; }
.rb-walk-open:hover { border-color: var(--rc-gold); color: var(--rc-gold); }
.rb-walk-bd { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rb-walk-big { display: block; font: 800 52px/1 var(--font-display); letter-spacing: -.02em; }
.rb-walk-sub { display: block; margin-top: 6px; font-size: 14px; color: #A3A39F; }
.rb-walk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.rb-walk .rb-walk-level { background: var(--rc-gold); color: #141414; padding: 6px 12px; }
.rb-walk.rc-walk--high .rb-walk-level, .rb-walk.rc-walk--danger .rb-walk-level { background: #B42318; color: #fff; }
.rb-walk-best { font-size: 13px; color: #A3A39F; }
.rb-walk-best b { display: block; margin-top: 1px; font: 700 15px var(--font-display); color: #fff; }
.rb-walk .rc-spark { display: block; flex: none; width: calc(100% + 2 * var(--rb-pad)); max-width: none; height: 64px; margin: auto calc(-1 * var(--rb-pad)) 0; }
.rb-walk .rc-dot { fill: #fff; }
.rb-walk .rc-now { stroke: #fff; }
.rb-walk-down { color: #CFCFCB; font-size: 14px; padding-bottom: var(--rb-pad); }

/* coming up */
.rb-ev { grid-column: span 6; padding-bottom: 12px; }
.rb-ev-row, .rb-acct-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rc-line); }
.rb-ev-d { background: #141414; border-radius: 9px; text-align: center; padding: 6px 0; font: 700 10px var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: #bbb; }
.rb-ev-d b { display: block; margin-top: 1px; font: 800 19px/1 var(--font-display); color: var(--rc-gold); }
.rb-ev-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 700 15px/1.3 var(--font-display); }
.rb-ev-tm { display: block; margin-top: 2px; font-size: 13px; color: var(--rc-mut); }
.rb-ev-row:hover .rb-ev-t { text-decoration: underline; }

/* story cards */
.rb-st { padding: 0; }
.rb-st-img { position: relative; display: block; aspect-ratio: 16 / 10; flex: none; background: #2A2A28; }
.rb-st-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-st-bd { display: block; padding: 14px 16px 18px; }
.rb-st-t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font: 700 15.5px/1.32 var(--font-display); }
.rb-st:hover .rb-st-t { text-decoration: underline; }

/* giveaway: a quiet white tile; the countdown and button carry the colour */
.rb-gw { grid-column: span 6; flex-direction: row; padding: 0; margin-top: 24px; }
.rb-gw-im { position: relative; flex: 0 0 34%; background: var(--rc-soft); }
.rb-gw-im img, .rb-gw-im .gw-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-gw-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 24px 26px; }
.rc .rb-gw-t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font: 800 19px/1.25 var(--font-display); color: var(--rc-ink); }
.rc .rb-gw-t:hover { text-decoration: underline; }
.rb-gw-ft { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 18px; }
.rc a.rb-gw-btn { background: var(--rc-gold); color: #141414; border-radius: 10px; padding: 12px 20px; font: 700 15px var(--font-body); white-space: nowrap; }
.rc a.rb-gw-btn:hover { background: #141414; color: #fff; }
.rb-gw-ends small { display: block; margin-bottom: 5px; font: 700 10px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--rc-mut); }
.rb-gw .gw-cd { display: flex; gap: 5px; margin: 0; }
.rb-gw .gw-cd span { flex: none; min-width: 42px; background: var(--rc-soft); border-radius: 8px; padding: 7px 0 6px; text-align: center; }
.rb-gw .gw-cd b { display: block; font: 800 16px/1 var(--font-display); color: var(--rc-ink); font-variant-numeric: tabular-nums; }
.rb-gw .gw-cd small { display: block; margin: 3px 0 0; font: 700 8.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rc-mut); }

/* account */
.rb-acct { grid-column: span 6; background: #141414; border: 0; color: #fff; padding: 24px 26px; }
.rb-acct .rh-paw { z-index: 0; }
.rb-paw--a { right: 26px; top: 22px; width: 52px; height: 52px; opacity: .9; transform: rotate(18deg); }
.rb-paw--b { right: 90px; top: 30px; width: 26px; height: 26px; opacity: .5; transform: rotate(-12deg); }
.rb-acct > *:not(.rh-paw) { position: relative; z-index: 1; }
.rb-acct-t { display: block; font: 800 21px/1.2 var(--font-display); margin: 6px 0 10px; padding-right: 100px; }
.rb-acct .rc-ticks { margin: 0 0 16px; }
.rb-acct .rc-ticks li { padding-top: 2px; padding-bottom: 2px; font-size: 14px; }
.rb-acct .rc-ticks li::before { top: 6px; }
.rb-acct-p { color: #CFCFCB; font-size: 14px; margin-bottom: 16px; }
.rb-acct-list { margin-bottom: 14px; }
.rb-acct-row { border-color: #2E2E2B; }
.rb-acct-row .rb-ev-d { background: #fff; color: #141414; }
.rb-acct-row .rb-ev-d b { color: #141414; }
.rb-acct-row .rb-ev-tm { color: #A3A39F; }

.rb-acct { margin-top: 24px; }
.rb-acct .rc-acct-btns { margin-top: auto; }
.rb-paw--a { right: 22px; top: 18px; width: 44px; height: 44px; }
.rb-paw--b { right: 76px; top: 26px; width: 22px; height: 22px; }

/* browse by topic */
.rb-topic { padding-bottom: 10px; }
.rb-grid > .rb-topic--n3 { grid-column: span 4; }
.rb-grid > .rb-topic--n2 { grid-column: span 6; }
.rb-grid > .rb-topic--n1 { grid-column: 1 / -1; }
.rc a.rb-topic-t { font: 800 17px/1.2 var(--font-display); color: var(--rc-ink); }
.rb-topic-list { list-style: none; margin: 0; padding: 0; }
.rb-topic-list li { padding: 11px 0; border-top: 1px solid var(--rc-line); }
.rb-topic-list a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 600 14.5px/1.38 var(--font-body); }
.rb-topic-list a:hover, .rc a.rb-topic-t:hover { text-decoration: underline; }

/* find a spot: one soft panel holding the heading and four links */
.rb-spots { grid-column: 1 / -1; margin-top: 24px; padding: 24px 26px 26px; background: var(--rc-soft); border-radius: var(--rb-r); }
.rb-spots-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.rb-spots-hd .rc-h { margin: 0; font-size: 22px; }
.rb-spots-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rb-spot { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px; background: #fff; border-radius: 12px; transition: box-shadow .15s, transform .15s; }
.rb-spot:hover { box-shadow: 0 8px 20px rgba(20,20,20,.08); transform: translateY(-2px); }
.rb-spot-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #141414; color: var(--rc-gold); }
.rb-spot-tx { min-width: 0; }
.rb-spot b { display: block; font: 700 16px/1.2 var(--font-display); }
.rb-spot small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--rc-mut); }
.rb-spot:hover b { text-decoration: underline; }
.rb-spot:hover .rb-spot-ic { background: var(--rc-gold); color: #141414; }

/* narrower desktops */
@media (max-width: 1180px) and (min-width: 900px) {
	.rb-lead { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
	.rb-st-t { font-size: 15px; }
	.rb-gw, .rb-acct { grid-column: 1 / -1; }
	.rb-spots-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rb-grid > .rb-topic { grid-column: span 6; }
	.rb-acct { margin-top: 0; }
}

/* phones */
@media (max-width: 899px) {
	.rh.rb { display: block; } /* home-refined.css makes .rh a reordered flex column on phones */
	.rb-top { padding: 20px 0 36px; }
	.rb-grid { --rb-gap: 12px; --rb-pad: 18px; }
	.rb-t, .rb-grid > .rb-topic { grid-column: 1 / -1; }
	.rb-grid > .rb-tall { grid-row: auto; }
	.rb-sub { margin-top: 14px; }
	.rb-lead { grid-row: auto; min-height: 340px; }
	.rb-lead-tx { padding: 20px; }
	.rc .rb-lead-t { font-size: 24px; }
	.rb-walk-big { font-size: 44px; }
	.rb-st { flex-direction: row; }
	.rb-st-img { flex: 0 0 116px; aspect-ratio: auto; min-height: 104px; }
	.rb-st-bd { padding: 12px 14px; align-self: center; }
	.rb-st-t { font-size: 15px; -webkit-line-clamp: 3; }
	.rb-gw { margin-top: 14px; }
	.rb-gw-im { flex: 0 0 104px; }
	.rb-gw-bd { padding: 18px; }
	.rc .rb-gw-t { font-size: 17px; }
	.rb-more { padding-bottom: 36px; }
	.rb .rc-sec { padding-top: 14px; padding-bottom: 24px; }
	.rb-acct { margin-top: 0; padding: 22px; }
	.rb-acct-t { padding-right: 60px; font-size: 20px; }
	.rb-paw--b { display: none; }
	.rb-spots { margin-top: 14px; padding: 18px 16px; }
	.rb-spots-hd .rc-h { font-size: 19px; }
	.rb-spots-list { grid-template-columns: 1fr; gap: 8px; }
	.rb-spot { padding: 12px; }
	.rb-spot-ic { width: 40px; height: 40px; }
}
