/* Venue page v2, design B (venue-v2-b.body.php). Loaded after venue-v2.css, only when the venue's "Look" is Design B or with ?look=b.
   Design A's dark look (ink ground, stone type, sage Ogg labels) organised into tiles, with every booking action in one red block (Jay, 9 Oct).
   Phone first: one column of tiles; desktop (900 px+): 4 columns, the photo beside the action block and the facts. */

.uvb {
	--uvb-brand: var(--uvv2-red);  /* the one brand colour: action block, bar's main link, sign-up button */
	--uvb-brand-ink: #fff;         /* text on the brand colour (6.1:1 on Katsuya red) */
	--uvb-tile: #2d2522;           /* a tile: one step up from the ground, plus a hairline */
	--uvb-tile-hi: #362d29;
	--uvb-line: rgba(234, 230, 225, .12);
	--uvb-gap: 10px;
	--uvb-pad: clamp(18px, 4.4vw, 40px);
	--uvb-edge: clamp(12px, 3vw, 40px);
}

/* Katsuya's custom.176.css sets Domaine on every #content element at ID strength; display lettering is Ogg */
body #content .uvb h2, body #content .uvb h3, body #content .uvb .uvb-city, body #content .uvb .uvb-opening,
body #content .uvb .uvb-act-title { font-family: 'ogg', Georgia, serif; }

/* The theme colours #content text and centres headings on phones; this look sets its own */
.uvb h2, .uvb h3, .uvb p { text-align: left; }
.uvb h2, .uvb h3 { color: var(--uvv2-stone); text-wrap: balance; }
.uvb p, .uvb .uvb-prose { color: rgba(234, 230, 225, .86); }
.uvb .uvb-muted { color: var(--uvv2-ash); font-size: 15px; }
.uvb a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ----- The tile grid. data-size: hero · wide · small · full (all full width on phones) ----- */
.uvb-tiles { max-width: 1400px; margin: 0 auto; padding: var(--uvb-edge); display: grid; gap: var(--uvb-gap); grid-template-columns: minmax(0, 1fr); }
.uvb-tile { position: relative; min-width: 0; margin: 0; padding: var(--uvb-pad); background: var(--uvb-tile); box-shadow: inset 0 0 0 1px var(--uvb-line); border-radius: 3px; }
.uvb-bare { background: none; box-shadow: none; padding-inline: 2px; }
@media (min-width: 900px) {
	.uvb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; --uvb-gap: 12px; }
	.uvb-tile[data-size="hero"] { grid-column: span 2; grid-row: span 2; }
	.uvb-tile[data-size="wide"] { grid-column: span 2; }
	.uvb-tile[data-size="small"] { grid-column: span 1; }
	.uvb-tile[data-size="full"] { grid-column: 1 / -1; }
}

/* ----- Hero tile: photo with a dark fade, logo, opening line, the city set vertically ----- */
.uvb-hero { container-type: inline-size; padding: 0; overflow: hidden; background: #000; min-height: 520px; height: min(80svh, 125vw); }
.uvb-hero > picture, .uvb-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uvb-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%, rgba(20, 14, 12, .15) 40%, rgba(20, 14, 12, .92) 100%); }
.uvb .uvb-name { margin: 0; font-size: 0; line-height: 0; }
.uvb .uvb-city {
	position: absolute; z-index: 1; right: calc(var(--uvb-pad) * .75); bottom: var(--uvb-pad); /* same breathing room as the text on the left */
	writing-mode: vertical-rl; font-size: min(13cqw, 9svh, 84px); /* sized to the photo tile, not the window */ line-height: .82; letter-spacing: .02em;
	color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.uvb-hero-text { position: absolute; z-index: 1; left: var(--uvb-pad); right: var(--uvb-pad); bottom: var(--uvb-pad); }
/* the logo may arrive wrapped in a WebP <picture> (EWWW): keep it in the text flow, never stretched like the hero photo */
.uvb .uvb-hero-text .uvb-logo { position: static; display: block; width: min(56vw, 60%, 280px); max-width: 100%; height: auto; margin-bottom: 16px; }
.uvb .uvb-opening { font-size: clamp(28px, 6.6vw, 42px); line-height: 1.05; margin: 0 0 6px; max-width: 64%; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.uvb .uvb-where { font-size: 16px; color: rgba(255, 255, 255, .82); margin: 0; max-width: 62%; }
@media (min-width: 900px) { .uvb-hero { height: auto; min-height: 600px; } }

/* ----- The action block: main action on top (2/3), Menu | Plan an event below (1/3) ----- */
.uvb-act { display: grid; grid-template-rows: 2fr 1fr; min-height: 220px; padding: 0; overflow: hidden; background: var(--uvb-brand); box-shadow: none; }
.uvb .uvb-act a { position: relative; color: var(--uvb-brand-ink); text-decoration: none; }
.uvb .uvb-act a:hover { background: rgba(0, 0, 0, .09); }
.uvb .uvb-act a:focus-visible { outline: 2px solid var(--uvb-brand-ink); outline-offset: -5px; }
.uvb-act-main { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: var(--uvb-pad); padding-right: calc(var(--uvb-pad) + 64px); }
.uvb-act-title { display: block; font-size: clamp(36px, 9vw, 54px); line-height: 1; }
.uvb-act-sub { display: block; margin-top: 10px; font-size: 15px; opacity: .88; }
.uvb-arw { display: block; flex: none; width: 28px; height: 10px; }
.uvb-act-main .uvb-arw { position: absolute; right: var(--uvb-pad); top: 50%; width: 48px; height: 16px; margin-top: -8px; transition: transform .2s ease; }
.uvb-act-main:hover .uvb-arw { transform: translateX(4px); }
/* Coming soon without a sign-up form: one message, no links */
.uvb-act.is-quiet { grid-template-rows: 1fr; color: var(--uvb-brand-ink); }
.uvb-act.is-quiet .uvb-act-main { margin: 0; padding-right: var(--uvb-pad); }
.uvb-act-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .5); }
.uvb-act-row.is-one { grid-template-columns: 1fr; }
.uvb-act-row a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 14px var(--uvb-pad); font-size: 18px; letter-spacing: .02em; }
.uvb-act-row a + a { border-left: 1px solid rgba(255, 255, 255, .5); }
@media (max-width: 479px) { .uvb-act-row a { padding: 16px 18px; font-size: 17px; white-space: nowrap; } .uvb-act-row .uvb-arw { width: 22px; } }
@media (min-width: 900px) { .uvb-act { min-height: 270px; } .uvb-act-title { font-size: clamp(44px, 3.7vw, 56px); } .uvb-act-row a { font-size: 20px; } }

/* ----- Facts: Where, When (sage Ogg labels, as in design A) ----- */
.uvb .uvb-lbl { font-size: 22px; line-height: 1.1; color: var(--uvv2-sage); margin: 0 0 .4em; letter-spacing: 0; }
.uvb-fact p { font-size: 16px; line-height: 1.45; margin: 0 0 .5em; color: var(--uvv2-stone); }
.uvb .uvb-fact .uvb-muted { color: var(--uvv2-ash); }
.uvb .uvb-go { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--uvv2-stone); text-decoration: underline; }
.uvb .uvb-menu-soon { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: 16px; color: var(--uvv2-stone); }
.uvb .uvb-note { grid-column: 1 / -1; margin: -2px 2px 0; font-size: 13px; color: var(--uvv2-ash); }

/* ----- Story ----- */
.uvb-story { padding-block: clamp(28px, 6vw, 72px); display: grid; gap: 14px 6vw; }
.uvb .uvb-story h2 { font-size: clamp(32px, 6vw, 56px); line-height: 1.06; max-width: 15ch; margin: 0; }
.uvb-prose { max-width: 58ch; }
.uvb-prose p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .uvb-story { grid-template-columns: 1.1fr 1fr; align-items: end; } }

/* ----- Signature dishes: one lead dish, the rest in pairs ----- */
.uvb-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; margin: 0 0 12px; }
.uvb .uvb-sec-h h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 0; }
.uvb-dishes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--uvb-gap); }
.uvb-dish { display: flex; flex-direction: column; overflow: hidden; background: var(--uvb-tile-hi); border-radius: 2px; }
.uvb-dish img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--uvb-tile); }
.uvb-dish div { padding: 14px 16px 16px; }
.uvb .uvb-dish h3 { font-size: 21px; line-height: 1.15; margin: 0 0 4px; }
.uvb .uvb-dish p { font-size: 15px; line-height: 1.45; color: var(--uvv2-ash); margin: 0; }
.uvb-dish.is-lead { grid-column: span 2; }
.uvb-dish.is-lead img { aspect-ratio: 4 / 3; }
/* An odd number of dishes after the lead would leave an empty square: the last one goes full width instead */
.uvb-dish.is-lead:nth-last-child(even) ~ .uvb-dish:last-child { grid-column: span 2; }
.uvb-dish.is-lead:nth-last-child(even) ~ .uvb-dish:last-child img { aspect-ratio: 2 / 1; }
@media (min-width: 900px) {
	.uvb-dishes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.uvb-dish.is-lead { grid-row: span 2; }
	.uvb-dish.is-lead img { aspect-ratio: auto; flex: 1; min-height: 0; }
	.uvb .uvb-dish.is-lead h3 { font-size: 30px; }
	/* The full-width last dish shares the lead's bottom row: same caption size, so the two caption boxes line up */
	.uvb .uvb-dish.is-lead:nth-last-child(even) ~ .uvb-dish:last-child h3 { font-size: 30px; }
}

/* ----- Events, room photo, sign-up, more photos ----- */
.uvb .uvb-events h2, .uvb .uvb-signup h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.08; margin: 0 0 10px; }
.uvb-events .uvv2-btn, .uvb-signup .uvv2-btn { margin-top: 16px; }
.uvb .uvv2-btn { background: var(--uvb-brand); color: var(--uvb-brand-ink) !important; }
.uvb .uvv2-btn-ghost { background: transparent; color: var(--uvv2-stone) !important; }
@media (min-width: 900px) { .uvb-events { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; align-items: start; } .uvb-events h2 { grid-row: span 2; } .uvb-events .uvv2-btn { justify-self: start; } }

.uvb-room { padding: 0; overflow: hidden; }
.uvb-room img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.uvb-room figcaption { padding: 12px var(--uvb-pad); font-size: 15px; color: var(--uvv2-ash); }
@media (min-width: 900px) { .uvb-room img { aspect-ratio: 16 / 10; } .uvb-signup { display: flex; flex-direction: column; justify-content: center; } .uvb-signup .uvv2-btn { align-self: flex-start; } }

.uvb-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--uvb-gap); }
.uvb-photos li { margin: 0; padding: 0; }
.uvb-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: var(--uvb-tile); }
@media (min-width: 900px) { .uvb-photos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ----- Booking bar: phones = bottom of the screen; desktop = a small box bottom right.
   Fully hidden (and out of the Tab order) until the action block has scrolled up past the top (js/venue-v2.js). ----- */
article.uvb .uvv2-bar.uvb-bar { visibility: hidden; transition: transform .3s cubic-bezier(.16, 1, .3, 1), visibility 0s .3s; }
article.uvb .uvv2-bar.uvb-bar.is-on { visibility: visible; transition-delay: 0s; }
.uvb .uvb-bar a { display: flex; align-items: center; justify-content: center; padding: 0 6px; min-height: 54px; color: var(--uvv2-stone); }
.uvb .uvb-bar a.uvb-bar-main { flex: 1.6; background: var(--uvb-brand); color: var(--uvb-brand-ink); }
@media (min-width: 768px) {
	article.uvb .uvv2-bar.uvb-bar {
		top: auto; left: auto; right: var(--uvb-edge); bottom: var(--uvb-edge); width: 420px; padding: 0;
		border: 1px solid var(--uvb-line); border-radius: 3px; overflow: hidden; justify-content: stretch;
		transform: translateY(calc(100% + var(--uvb-edge) + 16px));
	}
	article.uvb .uvv2-bar.uvb-bar.is-on { transform: none; }
	.uvb .uvb-bar a { flex: 1; padding: 0 6px; }
}

/* ----- Sign-up sheet: the Reserve sheet panel (css/reserve-sheet.css) in this page's colours ----- */
.uvb-sheet .uvrs-panel { background: var(--uvb-tile); color: var(--uvv2-stone); }
.uvb .uvb-sheet .uvrs-title { font-size: 22px; line-height: 1.2; padding-left: 12px; color: var(--uvv2-stone); }
.uvb-sheet .uvb-sheet-body { padding: 8px var(--uvb-pad) 24px; overflow-y: auto; }
.uvb-sheet .uvb-sheet-body > p { color: var(--uvv2-ash); max-width: 52ch; }
.uvb-sheet .nf-form-cont, .uvb-sheet .nf-form-cont label { color: var(--uvv2-stone); }
.uvb-sheet .nf-element:not([type=submit]):not([type=button]):not([type=checkbox]) { background: var(--uvv2-ink) !important; border: 1px solid rgba(234, 230, 225, .4) !important; color: var(--uvv2-stone) !important; border-radius: 2px; min-height: 48px; font-size: 16px; }
.uvb-sheet input[type=submit], .uvb-sheet input[type=button] { background: var(--uvb-brand) !important; border-color: var(--uvb-brand) !important; color: var(--uvb-brand-ink) !important; min-height: 48px; }
.uvb-sheet input[type=checkbox] { accent-color: var(--uvb-brand); }
@media (min-width: 900px) { .uvb-sheet .uvrs-panel { width: 520px; } }

/* Tiles below the first screen fade up once as they scroll in (js/venue-v2.js adds .uvb-fade; never the hero, so LCP is untouched) */
@media screen and (prefers-reduced-motion: no-preference) {
	.uvb-tile.uvb-fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
	.uvb-tile.uvb-fade.is-in, .uvb-tile.uvb-fade:focus-within { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.uvb-act-main .uvb-arw, article.uvb .uvv2-bar.uvb-bar { transition: none; }
}
