/*
 * "Anywear 2026" blocks that are not home page sections (AW_Blocks): map, promo banner, product rail, newsletter
 * placeholder, plus the 2026 look of the core blocks used on content pages (gallery as a rail, details as an
 * accordion). The section blocks (hero, lines, tabs…) keep aw-home.css; the footer and newsletter aw-footer.css.
 * Tokens: aw-base.css.
 */

/* Section blocks span the page, whatever the content column around them. */
.aw-b { box-sizing: border-box; }
.aw-b-ticker { display: block; }
.aw-b-ticker .aw-tick { position: relative; }

/* Editor placeholder for a section that prints nothing with the current settings. */
.aw-b-empty {
	padding: 24px;
	border: 2px dashed var(--aw-hair);
	color: var(--aw-mute);
	font: 600 14px/1.4 var(--aw-font-text);
	text-align: center;
}

/* ---------------------------------------------------------------- map (loads on click) */
.aw-map { margin: 48px 0; }
.aw-map__frame {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 7;
	min-height: 280px;
	overflow: hidden;
	background: var(--aw-floor) var(--aw-pattern) center / 220px repeat;
	box-shadow: inset 0 0 0 2px var(--aw-ink);
}
.aw-map__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.aw-map__pin {
	position: absolute;
	top: calc(50% - 72px);
	left: 50%;
	transform: translateX(-50%);
	color: var(--aw-ink);
}
.aw-map__pin .aw-ico { width: 48px; height: 48px; }
.aw-map__show { position: relative; z-index: 1; }
.aw-map__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.aw-map.is-loaded .aw-map__frame { background: var(--aw-floor); }
.aw-map__cap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: baseline;
	margin-top: 16px;
	font-family: var(--aw-font-text);
}
.aw-map__addr { font-style: normal; font-weight: 700; color: var(--aw-ink); }
.aw-map__note { flex-basis: 100%; color: var(--aw-mute); font-size: 13px; }
@media (max-width: 767px) {
	.aw-map__frame { aspect-ratio: 4 / 3; min-height: 240px; }
}

/* ---------------------------------------------------------------- promo banner */
.aw-promo {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(440px, 52vw, 760px);
	margin: 0 0 56px;
	overflow: hidden;
	background: var(--aw-ink);
	color: var(--aw-paper);
	isolation: isolate;
}
.aw-promo--plain { min-height: 0; }
.aw-promo__img { position: absolute; inset: 0; z-index: -1; margin: 0; }
.aw-promo__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aw-promo__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%);
}
.aw-promo__txt {
	display: grid;
	gap: 20px;
	justify-items: start;
	max-width: 760px;
	padding: 56px var(--aw-gutter);
}
.aw-promo__chip { color: var(--aw-ink); }
.aw-promo__title { margin: 0; color: inherit; font-size: clamp(64px, 8vw, 132px); }
.aw-promo__lead { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }

/* ---------------------------------------------------------------- product rail outside the home page */
.aw-page .aw-prail.aw-wrap { padding: 72px 0 0; }

/* ---------------------------------------------------------------- core gallery as a scroll-snap rail */
.aw-ui .wp-block-gallery.is-style-aw-rail {
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	margin: 40px 0;
	padding-bottom: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.aw-ui .wp-block-gallery.is-style-aw-rail > figure.wp-block-image {
	flex: 0 0 min(78%, 520px);
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
.aw-ui .wp-block-gallery.is-style-aw-rail > figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* ---------------------------------------------------------------- core details as the FAQ accordion */
.aw-ui .wp-block-details {
	margin: 0;
	border-top: 2px solid var(--aw-ink);
}
.aw-ui .wp-block-details:last-of-type { border-bottom: 2px solid var(--aw-ink); }
.aw-ui .wp-block-details + :not(.wp-block-details) { margin-top: 32px; }
.aw-ui .wp-block-details > summary {
	position: relative;
	display: block;
	padding: 20px 48px 20px 0;
	color: var(--aw-ink);
	font: 800 19px/1.25 var(--aw-font-text);
	list-style: none;
	cursor: pointer;
}
.aw-ui .wp-block-details > summary::-webkit-details-marker { display: none; }
.aw-ui .wp-block-details > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	font: 400 32px/1 var(--aw-font-text);
}
.aw-ui .wp-block-details[open] > summary::after { content: "\2212"; }
.aw-ui .wp-block-details > summary:focus-visible { outline: none; box-shadow: var(--aw-focus); }
.aw-ui .wp-block-details > :not(summary) { margin: 0 0 1em; }
.aw-ui .wp-block-details > :last-child { padding-bottom: 12px; }

/* Buttons from core/buttons in the kit's square style. */
.aw-ui .wp-block-button__link {
	border-radius: 0;
	background: var(--aw-ink);
	color: var(--aw-paper);
	font: 800 15px/1 var(--aw-font-text);
	letter-spacing: .02em;
	padding: 18px 26px;
}
.aw-ui .wp-block-button__link:hover { background: var(--aw-paper); color: var(--aw-ink); box-shadow: inset 0 0 0 2px var(--aw-ink); }
.aw-ui .is-style-outline .wp-block-button__link { background: transparent; color: var(--aw-ink); box-shadow: inset 0 0 0 2px var(--aw-ink); }
