/* ==========================================================================
   messe-display — shared inner-page chrome
   Page banner + size navigation bar + generic page scaffolding.
   Geometry from the "Exhibition stands ALL" frame (7:14).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page banner — Figma "Container (Beleuchtete LED-Messestände)" 1440x480.
   Base fill #342155 under a #000000 container with an IMAGE on top.
   Text block 530x226 at x=100 (so a 100px gutter), 30px inner padding.
   Dots at y=516 (i.e. 36px above the banner's bottom edge); arrows 48x48.
   -------------------------------------------------------------------------- */
.md-pagebanner {
	position: relative;
	height: 480px;
	background: var(--md-purple);
	overflow: hidden;
}
.md-pagebanner__img {
	position: absolute;
	inset: 0;
	background: var(--md-black) center/cover no-repeat;
}

/* Scrim. Figma node 41:286 sits between the photo and the copy: a linear
   gradient left-to-right, black at 30% fading to transparent at 50%, at full
   fill opacity. Without it the white copy is unreadable over a bright photo —
   this is a real layer in the design, not a readability tweak. */
.md-pagebanner__img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 50%);
}

/* The Services/Print banner is a different composition: no eyebrow, copy,
   arrows or dots — one centred headline — and it stacks TWO copies of the same
   gradient at 65% and 66% fill opacity (Figma 51:4964 and 51:4988). */
.md-pagebanner--centered .md-pagebanner__img::after {
	background:
		linear-gradient(to right, rgba(0,0,0,.65) 30%, rgba(0,0,0,0) 50%),
		linear-gradient(to right, rgba(0,0,0,.66) 30%, rgba(0,0,0,0) 50%);
}
.md-pagebanner--centered .md-pagebanner__inner { justify-content: center; text-align: center; }
.md-pagebanner--centered .md-pagebanner__body { max-width: 1195px; padding-right: 0; }

/* Inter 700/48 lh=52.8 #FFFFFF — the centred banner headline */
.md-pagebanner__headline {
	margin: 0;
	font-family: var(--md-font);
	font-weight: 700;
	font-size: 48px;
	line-height: 52.8px;
	color: var(--md-white);
}
.md-pagebanner__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 100px;
}
.md-pagebanner__body { max-width: 530px; padding-right: 30px; }
.md-pagebanner__eyebrow { margin: 0 0 7px; }
.md-pagebanner__title   { margin: 0 0 30px; }
.md-pagebanner__copy    { margin: 0; }

.md-pagebanner__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 24px;
	background: var(--md-white);
	color: var(--md-black);
}
.md-pagebanner__arrow--prev { left: 24px; }
.md-pagebanner__arrow--next { right: 22px; }

.md-pagebanner__dots {
	position: absolute;
	left: 0; right: 0;
	bottom: 36px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 12px;
}
.md-pagebanner__dots span {
	width: 20px;
	height: 20px;
	border-radius: var(--md-r-4);
	background: var(--md-grey-3);
	opacity: .55;
}
.md-pagebanner__dots span.is-active { opacity: 1; }

/* --------------------------------------------------------------------------
   Size navigation bar — Figma 1440x56, white, sticky.
   Container pad 0/15, itemSpacing 37, each tab pad-top 16, pad-bottom 12-14.
   The active tab carries a 2px black underline.
   -------------------------------------------------------------------------- */
.md-sizenav {
	position: sticky;
	top: 76px;
	z-index: 90;
	background: var(--md-white);
	border-bottom: 1px solid var(--md-line);
}
.md-sizenav__inner {
	display: flex;
	gap: 37px;
	padding: 0 var(--md-gutter);
	overflow-x: auto;
	scrollbar-width: none;
}
.md-sizenav__inner::-webkit-scrollbar { display: none; }
.md-sizenav a {
	flex: 0 0 auto;
	padding: 16px 0 12px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.md-sizenav a.is-active { border-bottom-color: var(--md-black); font-weight: 500; }

/* --------------------------------------------------------------------------
   Generic page scaffolding
   -------------------------------------------------------------------------- */
.md-page { padding: 41px var(--md-gutter); }

.md-intro {
	max-width: 1410px;
	margin-inline: auto;
	padding: 0 var(--md-gutter) 50px;
}
.md-intro p { margin: 0; font-size: 15px; line-height: 24px; color: var(--md-black); }

/* Pagination — Figma "Navigation - Product Pagination": 40x40 items, gap 11,
   active #000000 with white text, the rest #EEEEEE. */
.md-pagination {
	display: flex;
	justify-content: center;
	gap: 11px;
	padding: 33px 0;
}
.md-pagination a,
.md-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--md-fill-3);
	font-size: 14px;
	color: var(--md-black);
}
.md-pagination .is-active { background: var(--md-black); color: var(--md-white); }

@media (max-width: 1099px) {
	.md-pagebanner { height: 400px; }
	.md-pagebanner__inner { padding-inline: 40px; }
	/* The bar is sticky under the header; `top: 0` parked it BEHIND the header
	   (which is also sticky, 76px tall and z-index 100 vs the bar's 90), so the
	   tabs were invisible for the whole scroll below 1100. */
	.md-sizenav { top: 76px; }
}
@media (max-width: 759px) {
	.md-sizenav { top: 64px; }   /* base.css shrinks the header to 64 here */
	.md-pagebanner { height: 340px; }
	.md-pagebanner__inner { padding-inline: 16px; }
	.md-pagebanner__title { font-size: 24px; line-height: 28px; }
	.md-pagebanner__arrow { display: none; }
	.md-page { padding: 24px var(--md-gutter); }
}

/* --------------------------------------------------------------------------
   Prose — legal / informational pages whose body is editor HTML from WordPress.
   No Figma frame exists for these; they reuse the page chrome and the type
   scale so they sit inside the new design rather than the legacy one.
   -------------------------------------------------------------------------- */
.md-prose {
	max-width: 860px;
	margin-inline: auto;
	padding: 64px var(--md-gutter) 80px;
}
.md-prose__title { margin: 0 0 32px; }
.md-prose__body { font-size: 16px; line-height: 28px; color: var(--md-ink-2); }
.md-prose__body h1,
.md-prose__body h2,
.md-prose__body h3,
.md-prose__body h4 {
	margin: 40px 0 14px;
	font-family: var(--md-font-brand);
	font-weight: 700;
	color: var(--md-ink);
	line-height: 1.3;
}
.md-prose__body h2 { font-size: 26px; }
.md-prose__body h3 { font-size: 20px; }
.md-prose__body h4 { font-size: 17px; }
.md-prose__body p { margin: 0 0 18px; }
.md-prose__body ul,
.md-prose__body ol { margin: 0 0 18px; padding-left: 22px; }
.md-prose__body ul { list-style: disc; }
.md-prose__body ol { list-style: decimal; }
.md-prose__body li { margin-bottom: 8px; }
.md-prose__body a { color: var(--md-purple); text-decoration: underline; }
.md-prose__body strong, .md-prose__body b { color: var(--md-ink); }
.md-prose__body img { max-width: 100%; height: auto; margin: 12px 0; }
.md-prose__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; }
.md-prose__body td, .md-prose__body th { padding: 10px; border: 1px solid var(--md-line); text-align: left; }
.md-prose__body hr { border: 0; border-top: 1px solid var(--md-line); margin: 28px 0; }

@media (max-width: 759px) {
	.md-prose { padding: 32px var(--md-gutter) 48px; }
	.md-prose__body { font-size: 15px; line-height: 26px; }
}

/* --------------------------------------------------------------------------
   Auth / simple centred forms (login, sign-up, password reset)
   -------------------------------------------------------------------------- */
.md-auth {
	max-width: 480px;
	margin-inline: auto;
	padding: 64px var(--md-gutter) 80px;
}
.md-auth__title { margin: 0 0 8px; }
.md-auth__intro { margin: 0 0 28px; color: var(--md-ink-2); font-size: 15px; line-height: 24px; }
.md-auth__field { margin-bottom: 16px; }
.md-auth__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 18px;
	color: var(--md-black);
}
.md-auth__field input {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--md-line-2);
	background: var(--md-white);
	font-family: var(--md-font);
	font-size: 15px;
	color: var(--md-black);
}
.md-auth__field input:focus { outline: 2px solid var(--md-purple); outline-offset: -2px; }
.md-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 22px; font-size: 14px; }
.md-auth__row a { color: var(--md-purple); }
.md-auth .md-btn { width: 100%; }
.md-auth__alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--md-ink-2); }
.md-auth__alt a { color: var(--md-purple); font-weight: 600; }
.md-auth__msg { margin: 0 0 20px; padding: 12px 14px; border-radius: var(--md-r-10); font-size: 14px; line-height: 20px; }
.md-auth__msg--error { background: #FDECEC; color: var(--md-red); }
.md-auth__msg--ok { background: #ECF7EE; color: #1B7A31; }

@media (max-width: 759px) { .md-auth { padding: 32px var(--md-gutter) 48px; } }
