/* sumo-location.css — header nav locations, footer 2 locations, Ginza announcement band. */

/* --- Header nav: current page (any item: OSAKA / GINZA / ABOUT / CALENDAR) --- */
#nav a.is-current {
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.sumo-nav-location__badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 2px;
	background: #ED6D3C;
	color: #222;
	font-family: "Inter", sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: .08em;
	vertical-align: 3px;
}

@media screen and (min-width: 1201px) {
	#nav .sumo-nav-location--last {
		position: relative;
		margin-right: 24px;
	}
	#nav .sumo-nav-location--last::after {
		content: '';
		position: absolute;
		top: 50%;
		right: -12px;
		width: 1px;
		height: 14px;
		background: rgba(255,255,255,.4);
		transform: translateY(-50%);
	}
}

@media only screen and (max-width: 1200px) {
	#nav .sumo-nav-location--last {
		position: relative;
		padding-bottom: 24px;
	}
	#nav .sumo-nav-location--last::after {
		content: '';
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 1px;
		background: rgba(255,255,255,.4);
	}
}

/* 1201–1320px: nav (now 8 items) and logo / right button start to overlap. Tighten the gap only in that band. */
@media screen and (min-width: 1201px) and (max-width: 1320px) {
	#nav ul {
		gap: 4px 16px;
	}
}

/* --- Footer: two locations (replaces the single "Sumo Studio Osaka" dl) --- */
/* Theme's `#info dl:first-of-type` now hits the MENU dl (first `dl` under #info),
   since the locations are wrapped in a non-dl div. Cancel it there and move the
   intended rule onto .sumo-footer-locations. */
#footer #info > dl:first-of-type {
	margin-right: 0;
}
#footer .sumo-footer-locations {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-right: auto;
}
/* margin-left:0 — spacing comes from the preceding space in the markup (§5), not a fixed margin */
.sumo-footer-location__status {
	display: inline-block;
	margin-left: 0;
	padding: 2px 6px;
	border: 1px solid rgba(255,255,255,.5);
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 400;
	vertical-align: middle;
}

@media only screen and (max-width: 999px) {
	#footer #info > dl:first-of-type {
		grid-column: auto;
	}
	#footer .sumo-footer-locations {
		grid-column: 1 / 3;
	}
}

/* --- Top: Ginza announcement band (#ginza-open) --- */
.sumo-ginza-band {
	padding: 56px 0;
	background: #222;
	color: #FFF;
}
.sumo-ginza-band section {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 24px 56px;
}
.sumo-ginza-band__eyebrow {
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: #ED6D3C;
}
.sumo-ginza-band__title {
	margin-top: 8px;
	font-size: clamp(2.6rem,3vw,3.6rem);
}
.sumo-ginza-band__text > h2 + p {
	margin-top: .75em !important;
}

@media only screen and (max-width: 768px) {
	.sumo-ginza-band section {
		grid-template-columns: 1fr;
	}
}

/* ===== /book/ location cards ===== */
.sumo-book-locations {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* stretch li so __body can flex-grow and pin its CTA to the bottom across uneven cards */
.sumo-book-card {
	display: flex;
	flex-direction: column;
	list-style: none;
}
.sumo-book-card__image {
	position: relative;
	display: block;
	margin: 0;
	padding-top: 62.5%; /* 16:10 */
	background: #E8E4DA;
	overflow: hidden;
}
.sumo-book-card__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sumo-book-card.is-upcoming .sumo-book-card__image {
	opacity: .6;
}
/* flex column + flex:1 so the CTA button can be pinned to the bottom via margin-top:auto */
.sumo-book-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 16px;
}
.sumo-book-card__body p {
	margin-top: 0;
}
/* label chips and the description paragraph were flush against each other */
.sumo-book-card__meta + p {
	margin-top: 12px;
}
.sumo-book-card__body > h2 + * {
	margin-top: .75em !important;
}
/* beats theme's `* + .wp-block-buttons {margin-top:2em}` on specificity; pins CTA to card bottom */
.sumo-book-card__body > .wp-block-buttons {
	margin-top: auto;
	padding-top: 24px;
}
/* theme's .wp-block-buttons/.wp-block-button size to content; force full width for the CTA */
.sumo-book-card .wp-block-buttons,
.sumo-book-card .wp-block-button {
	width: 100%;
}
.sumo-book-card__location {
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: #006E55;
}
.sumo-book-card__title {
	margin-top: 4px !important;
	font-size: 2.2rem;
}
.sumo-book-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sumo-book-card__meta li {
	padding: 3px 8px;
	border: 1px solid #CCCCCC;
	font-family: "Inter", sans-serif;
	font-size: 1.2rem;
}
.sumo-book-card__cta {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 0.5em 2em;
	background: #006E55;
	border-radius: 3px;
	color: #FFF;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 400;
}
/* production has no disabled button; colors borrowed from production (.booklist figure bg #EDEDED, #5F5F5F, #CCCCCC) (§7.5) */
.sumo-book-card__cta.is-disabled {
	background: #EDEDED;
	color: #5F5F5F;
	border: 1px solid #CCCCCC;
	cursor: not-allowed;
}
/* the Osaka card keeps production's Bokun <button>; override theme's .wp-block-button button (gray, small) to match the <a> look (WP only; mock uses <a>) */
.sumo-book-card .wp-block-button button.sumo-book-card__cta {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 0.5em 2em;
	background: #006E55;
	border: 0;
	border-radius: 3px;
	color: #FFF;
	font-family: "Cormorant Garamond", serif;
	font-size: 1.8rem;
	font-weight: 400;
	cursor: pointer;
}
/* Bokun's loader removes `disabled` once it is ready; until then (or if it fails to load) don't look clickable */
.sumo-book-card .wp-block-button button.sumo-book-card__cta:disabled {
	cursor: default;
}

@media only screen and (max-width: 768px) {
	.sumo-book-locations {
		grid-template-columns: 1fr;
	}
}
