/*
 * sms-zmenki.com 2026 redesign: shared foundation.
 * Tokens, page frame, header band, menu bar, age strip, phone header + drawer,
 * bars/panels, profile cards, pagination, buttons, form controls, boxes, SEO text, footer.
 * Page-specific rules live in zm2026-profil.css, zm2026-racun.css, zm2026-koticek.css, zm2026-pravno.css.
 * Breakpoints (shared by every file): 1100px, 900px (phone header from here down), 640px, 420px.
 */

:root {
	--zm-plum-950: #2E0A1F;   /* cookie bar */
	--zm-plum-900: #64023B;   /* dark end of the gloss */
	--zm-plum-800: #6A0540;   /* dark text on pink */
	--zm-plum-700: #80074D;   /* hover text, strong */
	--zm-plum-650: #7F0049;   /* footer links */
	--zm-plum-600: #8A0652;   /* names, headings, links */
	--zm-plum-500: #9B1061;   /* wordmark */
	--zm-plum-400: #B0177A;   /* focus ring */
	--zm-rose-700: #8C3D68;   /* SEO text, footer text */
	--zm-rose-650: #8A3A66;   /* slogan */
	--zm-rose-600: #9E4A77;   /* card meta, age links */
	--zm-rose-400: #B54C88;   /* icons, accents */
	--zm-rose-300: #D99BBC;   /* card hover border */
	--zm-pink-400: #E0A5BB;   /* pale pink line (info box border) */
	--zm-field-line: #BD6A96; /* form field border: >= 3:1 on white and on the page pink (WCAG 1.4.11) */
	--zm-pink-300: #F1CFDD;   /* rules */
	--zm-pink-200: #F8E5EB;   /* input background */
	--zm-pink-100: #FBE4EC;   /* page background */
	--zm-text: #3A2230;
	--zm-grey-700: #666666;
	--zm-grey-600: #6E6E6E;
	--zm-grey-line: #E1E1E1;
	--zm-white: #FFFFFF;
	--zm-error: #A3122C;
	--zm-error-bg: #FDECEF;
	--zm-error-line: #E7A9B5;
	--zm-ok: #1E6B2A;
	--zm-ok-bg: #EDF7EE;
	--zm-ok-line: #A9D3AF;

	--zm-gloss: linear-gradient(180deg, #7F004A 0%, #8D0754 20%, #9E1062 48%, #8B0653 80%, #81014B 100%);
	--zm-gloss-menu: linear-gradient(180deg, #7F004A 0%, #8A0652 22%, #9E1062 50%, #8A0652 78%, #81014B 100%);
	--zm-gloss-current: linear-gradient(180deg, #64023B 0%, #760647 18%, #9E1062 50%, #760647 82%, #64023B 100%);
	--zm-gloss-btn: linear-gradient(180deg, #A6236F 0%, #9E1062 46%, #86044F 54%, #7F004A 100%);
	--zm-gloss-btn-hover: linear-gradient(180deg, #B8337F 0%, #A8146B 46%, #900857 54%, #86044F 100%);
	--zm-gloss-btn-active: linear-gradient(180deg, #7F004A 0%, #86044F 100%);
	--zm-tile: linear-gradient(180deg, #FFFFFF 0%, #F2F2F2 100%);
	--zm-tile-current: linear-gradient(180deg, #942365 0%, #BB4488 50%, #952265 100%);

	--zm-font-head: 'PT Sans Caption', 'Noto Sans', Tahoma, Verdana, sans-serif;
	--zm-font-body: 'Noto Sans', Tahoma, Verdana, sans-serif;
	--zm-font-logo: 'Mystery Quest', cursive;

	--zm-max: 1248px;     /* 1200px content + 2 x 24px gutter */
	--zm-gutter: 24px;
	--zm-radius: 6px;
	--zm-radius-sm: 4px;
	--zm-input-h: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* body is the flex column: the page frame (.zm-page) and the sticky cookie bar (consent.php) share the
   window height, so while the bar is shown the footer sits directly above it instead of under it. */
body.zm {
	display: flex; flex-direction: column;
	margin: 0;
	min-height: 100vh;
	font-family: var(--zm-font-body);
	font-size: 15px;
	line-height: 22px;
	color: var(--zm-text);
	background: linear-gradient(180deg, #EBB2C3 0px, #EFBDCD 70px, #F5CBD9 140px, #F3C8D7 190px, #FBE4EC 200px) 0 0 / 100% 202px no-repeat var(--zm-pink-100);
	-webkit-font-smoothing: antialiased;
}
.zm img { max-width: 100%; }
.zm a { color: var(--zm-plum-600); }
.zm a:hover { color: var(--zm-plum-400); }
.zm ::placeholder { color: #8E3A68; opacity: 1; }
.zm :focus-visible { outline: 3px solid var(--zm-plum-400); outline-offset: 2px; }

.zm-page { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 0; }
.zm-main { display: flex; flex-direction: column; flex: 0 0 auto; }
.zm-main:focus { outline: none; }
/* The SEO text block after <main> takes up the spare height, so the footer sits at the bottom of short pages
   (just above the cookie bar while that is shown). */
.zm-after { flex: 1 0 auto; }
.zm-wrap { width: 100%; max-width: var(--zm-max); margin: 0 auto; padding-left: var(--zm-gutter); padding-right: var(--zm-gutter); }
.zm-main > .zm-wrap { padding-top: 16px; }

/* Visually hidden, still read by screen readers. .invisible is the legacy name used in older markup. */
.zm-sr, .zm .invisible {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.zm-skip {
	position: absolute; left: 12px; top: -60px; z-index: 2000;
	padding: 10px 16px; border-radius: var(--zm-radius-sm);
	background: var(--zm-plum-700); color: var(--zm-white) !important;
	font-weight: 700; text-decoration: none;
}
.zm-skip:focus { top: 12px; }

/* ---------- Header band (desktop) ---------- */
.zm-header { position: relative; }
.zm-head {
	position: relative;
	display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
	min-height: 176px;
}
.zm-head__photo {
	position: absolute; left: 150px; top: 0;
	width: min(780px, calc(100% - 450px)); height: 170px; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 90px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 90px), transparent 100%);
	pointer-events: none;
}
.zm-head__photo img { display: block; max-width: none !important; width: 960px; height: 162px; margin-top: 8px; }
.zm-brand {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding-top: 34px;
}
.zm-logo {
	display: inline-block; padding: 4px 2px;
	font-family: var(--zm-font-logo); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: .005em;
	color: var(--zm-plum-500) !important; -webkit-text-stroke: .03em var(--zm-plum-500);
	text-decoration: none; white-space: nowrap;
	filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .75));
}
.zm-logo__i { position: relative; display: inline-block; }
.zm-logo__i svg { position: absolute; left: 44%; top: -.08em; width: .3em; height: .3em; transform: translateX(-50%); overflow: visible; }
.zm-logo__dot { display: inline-block; width: .2em; height: .2em; margin: 0 .02em; vertical-align: 0; overflow: visible; }
.zm-logo svg path { fill: var(--zm-plum-500); stroke: var(--zm-plum-500); stroke-width: 1.5; stroke-linejoin: round; }
.zm-slogan {
	margin: 0; display: flex; flex-direction: column; align-items: center;
	font-family: var(--zm-font-head); font-weight: 700; font-size: 21px; line-height: 25px;
	color: var(--zm-rose-650); text-shadow: 1px 1px 0 var(--zm-white); white-space: nowrap;
}

/* Login box, top right */
.zm-login {
	position: relative; z-index: 1; flex: none; width: 268px;
	padding: 16px 0 14px 28px;
	border-left: 1px solid rgba(255, 255, 255, .7);
	box-shadow: -1px 0 0 rgba(181, 76, 136, .18);
}
.zm-login form { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.zm-login__title {
	margin: 0 0 1px; display: flex; align-items: center; gap: 6px;
	font-family: var(--zm-font-head); font-weight: 700; font-size: 15px; line-height: 20px;
	text-transform: uppercase; color: var(--zm-plum-600);
}
.zm-login__title svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--zm-rose-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zm-login__row { display: flex; gap: 8px; }
.zm-login__row .zm-input { flex: 1 1 auto; min-width: 0; width: auto; }
.zm-login__who { margin: 0; font-size: 15px; line-height: 22px; color: var(--zm-plum-800); overflow-wrap: anywhere; }
.zm-login__who strong { color: var(--zm-plum-700); }
.zm-login .zm-login__out { gap: 10px; }
.zm-login__out .zm-btn { align-self: flex-start; padding: 0 20px; }

/* ---------- Menu bar ---------- */
.zm-menu { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap;
	border-radius: var(--zm-radius); overflow: hidden; background: var(--zm-gloss-menu);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 0 rgba(255, 255, 255, .7), 0 2px 6px rgba(128, 7, 77, .22);
}
.zm-menu > li { flex: 1 1 auto; display: flex; }
.zm-menu > li + li { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12), inset 2px 0 0 rgba(80, 0, 45, .25); }
.zm-menu a {
	flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
	height: 48px; padding: 0 18px;
	font-family: var(--zm-font-head); font-weight: 700; font-size: 15px; line-height: 20px;
	text-transform: uppercase; text-decoration: none; white-space: nowrap;
	color: #E8D0DC !important; text-shadow: 0 1px 0 rgba(60, 0, 35, .45);
}
.zm-menu a:hover { color: var(--zm-white) !important; background: linear-gradient(180deg, #64023B 0%, #81094F 26%, #9E1062 50%, #81094F 74%, #64023B 100%); }
.zm-menu a[aria-current="page"] {
	color: var(--zm-white) !important; background: var(--zm-gloss-current);
	box-shadow: inset 0 2px 4px rgba(50, 0, 28, .45); text-shadow: 0 1px 0 rgba(60, 0, 35, .5);
}
.zm-menu a:focus-visible { outline: 3px solid var(--zm-white); outline-offset: -4px; }
.zm-menu svg, .zm-ext { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Age strip ---------- */
.zm-age {
	display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px;
	padding: 2px 16px 2px 18px; border-radius: 0 0 8px 8px;
	box-shadow: inset 0 -1px 0 var(--zm-white), 0 2px 0 var(--zm-pink-300);
}
.zm-age > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--zm-plum-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zm-age__label { margin: 0 10px 0 4px; font-weight: 700; font-size: 15px; line-height: 20px; color: var(--zm-plum-800); }
.zm-age ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; flex-wrap: wrap; }
.zm-age__sep { padding: 0 6px; color: var(--zm-rose-600); font-size: 15px; }
.zm-age a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
	font-size: 15px; line-height: 20px; color: var(--zm-rose-600);
	text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap;
}
.zm-age a:hover { color: var(--zm-plum-700); text-decoration-thickness: 2px; }
.zm-age a[aria-current="page"] { font-weight: 700; color: var(--zm-plum-700); text-decoration: none; box-shadow: inset 0 -3px 0 var(--zm-rose-400); }

/* ---------- Phone header button + drawer (#mobileNav) ---------- */
#mobileNavBtn { display: none; }
#mobileNav { display: none; }
.zm-drawer-backdrop { display: none; }

/* ---------- Bar + panel (the content box) ---------- */
.zm-box { display: flex; flex-direction: column; border-radius: var(--zm-radius); background: var(--zm-white); box-shadow: 0 1px 2px rgba(128, 7, 77, .10); }
.zm-box ~ .zm-box, .zm-ad ~ .zm-box { margin-top: 20px; }
/* AdSense slot between boxes (markup copied byte for byte from the old page). The <ins> only shows after
   consent (consent.css hides it before); hide the whole slot until then so it leaves no empty gap. */
.zm-ad { margin-top: 20px; min-height: 0; }
html:not(.consent-all) .zm-ad { display: none; }
/* .zm-ad--side: the slot that was in the old left column (adSpace_01, 3564898894). The old mobile.css hid it
   on small screens; it stays hidden on phones so it does not push the page content (e.g. the SMS form) down. */
.zm-bar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 24px;
	min-height: 48px; padding: 8px 20px;
	border-radius: var(--zm-radius) var(--zm-radius) 0 0;
	background: var(--zm-gloss); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
	color: var(--zm-white);
}
.zm-bar__title {
	margin: 0; font-family: var(--zm-font-head); font-weight: 700; font-size: 19px; line-height: 26px;
	color: var(--zm-white); text-shadow: 0 1px 0 rgba(60, 0, 35, .5);
}
.zm-bar__sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--zm-white); }
.zm-bar a { color: var(--zm-white); }
.zm-bar a:focus-visible { outline-color: var(--zm-white); }
.zm-panel { position: relative; padding: 24px 24px 18px; }

/* ---------- Profile cards ---------- */
.zm-grid {
	margin: 0; padding: 0; list-style: none;
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 20px;
}
.zm-grid > li { display: flex; min-width: 0; }
.zm-card {
	display: flex; flex-direction: column; width: 100%; min-width: 0;
	padding: 4px; border: 1px solid var(--zm-grey-line); border-radius: var(--zm-radius-sm);
	background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 78%, #F1F1F1 100%);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
	color: var(--zm-text) !important; text-decoration: none; text-align: center;
	transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.zm-card:hover { border-color: var(--zm-rose-300); box-shadow: 0 2px 10px rgba(128, 7, 77, .14); }
.zm-card:hover .zm-card__name { text-decoration: underline; }
.zm-card__photo { display: block; aspect-ratio: 152 / 200; border-radius: 2px; overflow: hidden; background: #EDE3E7; }
.zm-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zm-card__body { display: flex; flex-direction: column; padding: 8px 6px; }
.zm-card__name {
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-weight: 700; font-size: 15px; line-height: 22px; letter-spacing: .02em; text-transform: uppercase;
	color: var(--zm-plum-600);
}
.zm-card__meta {
	display: flex; justify-content: center; min-width: 0; white-space: nowrap;
	font-size: 14px; line-height: 20px; color: var(--zm-rose-600); font-variant-numeric: tabular-nums;
}
/* the place is free text of any length: it is cut with an ellipsis, the age always shows in full */
.zm-card__region { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zm-card__sep, .zm-card__age { flex: none; }
.zm-card__desc {
	display: block; height: 40px; margin-top: 5px; overflow: hidden; overflow-wrap: anywhere;
	font-size: 14px; line-height: 20px; color: var(--zm-grey-600);
}
.zm-card__sep { margin: 0 .3em; } /* the "|" carries its own spacing (no literal spaces), so a cut place does not leave a double gap */
.zm-empty { margin: 8px 0 16px; padding: 28px 16px; text-align: center; color: var(--zm-plum-800); font-size: 16px; }

/* ---------- Pagination ---------- */
.zm-pages { display: flex; justify-content: center; margin-top: 12px; padding-top: 14px; }
.zm-pages ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.zm-pages a, .zm-pages li > span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; }
.zm-tile {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 32px; height: 32px; padding: 0 4px;
	border: 1px solid var(--zm-grey-line); border-radius: var(--zm-radius-sm); background: var(--zm-tile);
	color: var(--zm-grey-700); font-weight: 700; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums;
}
.zm-pages a:hover .zm-tile, .zm-tile--current {
	color: var(--zm-white); border-color: #8A1F5E; background: var(--zm-tile-current);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.zm-pages a:focus-visible { outline-offset: -4px; }

/* ---------- Buttons ---------- */
.zm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 16px; margin: 0;
	border: 1px solid #6C0B44; border-radius: 5px;
	background: var(--zm-gloss-btn);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(80, 0, 40, .3);
	color: var(--zm-white) !important;
	font-family: var(--zm-font-head); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: .02em;
	text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 0 rgba(60, 0, 35, .5); white-space: nowrap;
	cursor: pointer; -webkit-appearance: none; appearance: none;
}
.zm-btn:hover { background: var(--zm-gloss-btn-hover); color: var(--zm-white); }
.zm-btn:active { background: var(--zm-gloss-btn-active); }
.zm-btn[disabled], .zm-btn[aria-disabled="true"] { opacity: .6; cursor: default; }
.zm-btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.zm-btn--block { display: flex; width: 100%; }
/* Secondary: grey tile style (like the pagination tiles) */
.zm-btn--light {
	border-color: #CFCFCF; background: var(--zm-tile); color: var(--zm-plum-700) !important;
	text-shadow: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.zm-btn--light:hover { background: linear-gradient(180deg, #FFFFFF 0%, #F8E5EB 100%); border-color: var(--zm-rose-300); color: var(--zm-plum-700); }
.zm-btn--light:active { background: #F1F1F1; }

/* ---------- Form controls ---------- */
.zm-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.zm-label { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--zm-plum-800); }
.zm-label .zm-req { color: var(--zm-error); margin-left: 2px; }
.zm-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--zm-grey-600); }
.zm-input, .zm-select, .zm-textarea {
	display: block; width: 100%; margin: 0;
	height: var(--zm-input-h); padding: 0 12px;
	border: 1px solid var(--zm-field-line); border-radius: 5px;
	background: var(--zm-pink-200);
	box-shadow: inset 0 2px 3px rgba(181, 76, 136, .18);
	font-family: inherit; font-size: 15px; line-height: 20px; color: var(--zm-plum-800);
	color-scheme: light;
}
.zm-textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 22px; resize: vertical; }
.zm-select {
	padding-right: 36px; -webkit-appearance: none; appearance: none; cursor: pointer;
	background: var(--zm-pink-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B1061' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px 14px no-repeat;
}
.zm-input:hover, .zm-select:hover, .zm-textarea:hover { border-color: var(--zm-plum-400); }
.zm .zm-input:focus-visible, .zm .zm-select:focus-visible, .zm .zm-textarea:focus-visible,
.zm .zm-input:focus, .zm .zm-select:focus, .zm .zm-textarea:focus {
	outline: none; border-color: var(--zm-plum-500);
	box-shadow: inset 0 2px 3px rgba(181, 76, 136, .18), 0 0 0 3px #E9A3C5;
}
.zm-input[aria-invalid="true"], .zm-select[aria-invalid="true"], .zm-textarea[aria-invalid="true"] { border-color: var(--zm-error); }
.zm-input[type="file"] { height: auto; padding: 8px 10px; }

.zm-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 15px; line-height: 22px; }
.zm-check input[type="checkbox"], .zm-check input[type="radio"] {
	flex: none; width: 20px; height: 20px; margin: 1px 0 0;
	accent-color: var(--zm-plum-500); cursor: pointer;
}

/* ---------- Message boxes ---------- */
.zm-alert {
	margin: 0 0 16px; padding: 12px 16px;
	border: 1px solid; border-left-width: 5px; border-radius: var(--zm-radius-sm);
	font-size: 15px; line-height: 22px;
}
.zm-alert p { margin: 0; }
.zm-alert p + p { margin-top: 6px; }
.zm-alert--error { color: var(--zm-error); background: var(--zm-error-bg); border-color: var(--zm-error-line); border-left-color: var(--zm-error); }
.zm-alert--ok { color: var(--zm-ok); background: var(--zm-ok-bg); border-color: var(--zm-ok-line); border-left-color: var(--zm-ok); }
.zm-alert--info { color: var(--zm-plum-800); background: var(--zm-pink-200); border-color: var(--zm-pink-400); border-left-color: var(--zm-plum-500); }
.zm-error-text { margin: 4px 0 0; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--zm-error); }

/* ---------- Headings, text, definition rows ---------- */
.zm-h2 { margin: 0 0 12px; font-family: var(--zm-font-head); font-weight: 700; font-size: 20px; line-height: 26px; color: var(--zm-plum-600); }
.zm-h3 { margin: 0 0 8px; font-family: var(--zm-font-head); font-weight: 700; font-size: 16px; line-height: 22px; text-transform: uppercase; letter-spacing: .02em; color: var(--zm-plum-600); }
.zm-text { margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--zm-text); }
.zm-dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 15px; line-height: 22px; }
.zm-dl dt { font-weight: 700; color: var(--zm-rose-600); }
.zm-dl dd { margin: 0; color: var(--zm-text); overflow-wrap: anywhere; }
.zm-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 8px; }

/* ---------- SEO text + footer ---------- */
.zm-seo { margin: 36px 0 0; font-size: 14px; line-height: 22px; color: var(--zm-rose-700); }
.zm-seo p { margin: 0; }
.zm-footer { width: 100%; max-width: var(--zm-max); margin: 0 auto; padding: 28px var(--zm-gutter) 36px; }
.zm-footer__rule { height: 4px; border-radius: 4px; background: linear-gradient(180deg, #EFD1DD 0, #EFD1DD 1px, #FFFFFF 1px, #FFFFFF 2px, #F3D6E2 2px, #F3D6E2 4px); }
/* Links row: the separators are drawn by CSS on every link but the first. Each link keeps its separator
   (nowrap li), and on phones (<=640px) the separators are dropped, so no line starts or ends with a lone "|". */
.zm-footer__row {
	margin: 10px 0 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 8px;
	font-size: 14px; line-height: 20px; color: var(--zm-rose-700); text-align: center;
}
.zm-footer__links { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.zm-footer__links li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.zm-footer__links li + li::before { content: "|"; content: "|" / ""; }
.zm-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--zm-plum-650) !important; text-decoration: none; }
.zm-footer__links a:hover { color: var(--zm-plum-400) !important; text-decoration: underline; }
.zm-footer__copy { margin: 0; display: inline-flex; align-items: center; min-height: 44px; }

/* ============================ Responsive ============================ */
@media (max-width: 1100px) {
	/* still 6 per row (a listing page holds 18 profiles: 3 full rows); narrower cards (~125-145px) get tighter gaps,
	   a 14px name and the age on its own line under the place */
	.zm-grid { gap: 18px 12px; }
	.zm-card__name { font-size: 14px; line-height: 20px; letter-spacing: .01em; }
	.zm-card__meta { flex-direction: column; }
	.zm-card__sep { display: none; }
	.zm-head__photo { left: 330px; width: calc(100% - 620px); }
	.zm-head__photo img { margin-left: -190px; }
	.zm-menu a { padding: 0 10px; font-size: 14px; }
}

/* Phone header from 900px down: pink band with wordmark + slogan + round menu button; menu bar, age strip and login box move into the drawer. */
@media (max-width: 900px) {
	:root { --zm-gutter: 16px; }
	body.zm { background: linear-gradient(180deg, #EDB8CA 0px, #F5CBD9 70px, #F3C8D7 110px, #FBE4EC 122px) 0 0 / 100% 124px no-repeat var(--zm-pink-100); }
	/* tablet and phone: 3 per row (18 profiles = 6 full rows); the cards are wide again, so place | age on one line.
	   Tablet (641-900px): cards capped at 200px and centred, so the 152x200 list thumbnails are not blown up (phone: see 640px) */
	.zm-grid { grid-template-columns: repeat(3, minmax(0, 200px)); justify-content: center; gap: 18px 24px; }
	.zm-card__name { font-size: 15px; line-height: 22px; letter-spacing: .02em; }
	.zm-card__meta { flex-direction: row; }
	.zm-card__sep { display: inline; }
	.zm-head { min-height: 0; align-items: center; padding-top: 16px; padding-bottom: 18px; }
	.zm-login, .zm-nav, .zm-age { display: none; }
	/* tablet: the header photo stays, between the wordmark and the menu button */
	.zm-head__photo { left: 330px; right: 76px; top: 0; bottom: 0; width: auto; height: auto; }
	.zm-head__photo img { width: auto; height: 100%; margin: 0 0 0 -210px; }
	.zm-brand { align-items: flex-start; gap: 2px; padding-top: 0; min-width: 0; }
	.zm-logo { padding: 2px 0; font-size: 40px; }
	.zm-slogan { align-items: flex-start; font-size: 16px; line-height: 20px; color: #7E2E5A; }

	#mobileNavBtn {
		display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center;
		width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
		background: linear-gradient(180deg, #9B1061 0%, #86044F 55%, #7F004A 100%);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 4px rgba(128, 7, 77, .3);
		color: var(--zm-white);
	}
	#mobileNavBtn:hover { background: var(--zm-gloss-btn-hover); }
	#mobileNavBtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; }

	#mobileNav.open {
		display: flex; flex-direction: column;
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 2147483600; /* above the cookie bar */
		width: min(340px, 88vw); overflow-y: auto; -webkit-overflow-scrolling: touch;
		background: var(--zm-white);
		box-shadow: 4px 0 24px rgba(46, 10, 31, .35);
	}
	/* Real backdrop under the open drawer: it takes the tap/click that closes the drawer,
	   so nothing underneath (e.g. a profile card) gets clicked by it. */
	.zm-drawer-backdrop:not([hidden]) {
		display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483500; /* above the cookie bar, under the drawer */
		background: rgba(46, 10, 31, .45);
	}
	.zm-drawer__head {
		position: sticky; top: 0; z-index: 1;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		min-height: 60px; padding: 6px 8px 6px 20px;
		background: var(--zm-gloss); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
	}
	.zm-drawer__title { margin: 0; font-family: var(--zm-font-head); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--zm-white); text-transform: uppercase; text-shadow: 0 1px 0 rgba(60, 0, 35, .5); }
	#mobileNav .close {
		display: inline-flex; align-items: center; justify-content: center; flex: none;
		width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
		border: 1px solid rgba(255, 255, 255, .55); color: var(--zm-white);
	}
	#mobileNav .close:hover { background: rgba(255, 255, 255, .14); }
	#mobileNav .close:focus-visible { outline: 3px solid var(--zm-white); outline-offset: 0; }
	#mobileNav .close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
	#mobileNav ul { margin: 0; padding: 0; list-style: none; }
	#mobileNav li + li { border-top: 1px solid var(--zm-pink-300); }
	#mobileNav ul a {
		display: flex; align-items: center; justify-content: space-between; gap: 8px;
		min-height: 50px; padding: 0 20px;
		font-family: var(--zm-font-head); font-weight: 700; font-size: 16px; line-height: 22px;
		text-transform: uppercase; text-decoration: none; color: var(--zm-plum-700);
	}
	#mobileNav ul a::after {
		content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
		border-top: 2px solid var(--zm-rose-400); border-right: 2px solid var(--zm-rose-400); transform: rotate(45deg);
	}
	#mobileNav ul a:hover { background: var(--zm-pink-200); }
	#mobileNav ul a[aria-current="page"] { background: var(--zm-pink-100); box-shadow: inset 5px 0 0 var(--zm-plum-500); color: var(--zm-plum-800); }
	#mobileNav ul a:focus-visible { outline-offset: -3px; }
	#mobileNav ul a .zm-ext { margin-left: auto; }
	#mobileNav .mobileLogin {
		display: flex; flex-direction: column; gap: 10px;
		margin: 0; padding: 18px 20px 24px;
		border-top: 1px solid var(--zm-pink-300); background: var(--zm-pink-100);
	}
	#mobileNav .mobileLoginTitle { font-family: var(--zm-font-head); font-weight: 700; font-size: 15px; line-height: 20px; text-transform: uppercase; color: var(--zm-plum-600); }
	#mobileNav .mobileLogin .zm-input { font-size: 16px; }

	.zm-main > .zm-wrap { padding-top: 0; }
	.zm-ad--side { display: none !important; }
}

@media (max-width: 640px) {
	:root { --zm-gutter: 12px; }
	.zm-head__photo { display: none; }
	.zm-head { padding-left: 20px; padding-right: 16px; padding-bottom: 24px; }
	.zm-logo { font-size: 33px; }
	.zm-slogan { font-size: 15px; line-height: 19px; }
	.zm-bar { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-height: 46px; padding: 8px 16px; }
	.zm-bar__title { font-size: 18px; line-height: 24px; }
	.zm-bar__sub { font-size: 13px; line-height: 18px; }
	.zm-panel { padding: 14px 12px; }
	.zm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: normal; gap: 14px 10px; }
	.zm-card { padding: 3px; background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 74%, #F1F1F1 100%); }
	.zm-card__body { padding: 6px 2px; }
	.zm-card__name { font-size: 13px; line-height: 18px; }
	.zm-card__meta { flex-direction: column; font-size: 13px; line-height: 18px; }
	.zm-card__sep { display: none; }
	.zm-card__desc { height: 36px; margin-top: 4px; font-size: 13px; line-height: 18px; }
	.zm-pages { margin-top: 6px; padding-top: 8px; }
	.zm-seo { margin: 28px 8px 0; line-height: 21px; }
	.zm-footer { padding-top: 20px; padding-bottom: 28px; }
	.zm-footer__row { flex-direction: column; gap: 0; }
	.zm-footer__links { gap: 0 20px; }
	.zm-footer__links li + li::before { content: none; }
	.zm-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.zm-input, .zm-select, .zm-textarea { font-size: 16px; } /* no iOS zoom on focus */
	.zm-dl dd { margin-bottom: 8px; }
}

@media (max-width: 420px) {
	.zm-head { padding-left: 14px; padding-right: 12px; gap: 10px; }
	.zm-logo { font-size: 30px; }
	.zm-slogan { font-size: 14px; line-height: 18px; }
	.zm-grid { gap: 12px 8px; }
	.zm-card__name { letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.zm-card { transition: none; }
}

@media print {
	.zm-head__photo, .zm-nav, .zm-age, #mobileNavBtn, #mobileNav, .zm-login { display: none !important; }
	body.zm { background: #fff; }
}
