/*
 * Mischlingsliebe — "Hundemarke" design system.
 * Fonts: Bricolage Grotesque and Figtree (SIL Open Font License), downloaded from
 * Google Fonts and self-hosted in ./fonts so no visitor request goes to Google.
 */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 600 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("fonts/figtree-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--ml-berry: #7b0f4b;
	--ml-berry-deep: #5a0a37;
	--ml-berry-soft: #f1e5ec;
	--ml-on-berry: #fbf3f7;
	--ml-on-berry-soft: #e7cbda;
	--ml-ground: #f6f3f5;
	--ml-white: #ffffff;
	--ml-ink: #2b2025;
	--ml-ink-soft: #5e5258;
	--ml-line: #e4d8df;
	--ml-sun: #f2b33d;
	--ml-sun-deep: #e29e1c;
	--ml-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--ml-text: "Figtree", system-ui, sans-serif;
	--ml-r-card: 28px;
	--ml-r-photo: 20px;
	--ml-shadow: 0 1px 2px rgba(91, 10, 55, 0.06), 0 12px 32px -12px rgba(91, 10, 55, 0.18);
	--ml-shadow-lift: 0 2px 4px rgba(91, 10, 55, 0.08), 0 22px 40px -14px rgba(91, 10, 55, 0.28);
	--ml-ease: cubic-bezier(0.22, 1, 0.36, 1);

}

/* ---------- Base ---------- */

body {
	background: var(--ml-ground);
	color: var(--ml-ink);
	font-family: var(--ml-text);
	font-size: 17px;
	line-height: 1.6;
	caret-color: var(--ml-berry);
	scrollbar-color: var(--ml-berry) var(--ml-ground);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--ml-berry); color: var(--ml-on-berry); }
/* The association's name is never split. */
.home h1 { hyphens: manual; -webkit-hyphens: manual; }

h1, h2, h3, h4 {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
	font-family: var(--ml-display);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.06;
	text-wrap: balance;
	color: inherit;
}

a { color: var(--ml-berry); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover, a:active { color: var(--ml-berry-deep); }

/* Hello's default buttons are pink (#c36); bring them into the palette. Component buttons below override. */
button, [type="button"], [type="submit"] { border-color: var(--ml-berry); color: var(--ml-berry); border-radius: 999px; }
button:hover, button:focus, [type="button"]:hover, [type="button"]:focus, [type="submit"]:hover, [type="submit"]:focus { background-color: var(--ml-berry); color: var(--ml-on-berry); }

/* Theme templates and footer run full width; Hello caps .site-main and non-dynamic footers at 1140px. */
body:not([class*="elementor-page-"]) .site-main.ml-dogs,
body:not([class*="elementor-page-"]) .site-main.ml-dog { max-width: none; width: 100%; margin: 0; padding: 0; }
.site-footer.ml-footer { max-width: none; width: 100%; margin: 0; }

:focus-visible { outline: 3px solid var(--ml-berry); outline-offset: 3px; border-radius: 6px; }
.ml-band :focus-visible { outline-color: var(--ml-sun); }

/* ---------- Header (Hello Elementor) ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	max-width: none;
	margin: 0;
	padding: 20px 24px;
	background: var(--ml-berry);
	color: var(--ml-on-berry);
}
.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 0;
}
.site-header .site-logo img,
.site-header .custom-logo { display: block; width: auto; max-height: 76px; }
.site-header .site-navigation ul.menu { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-header .site-navigation ul.menu > li > a {
	padding: 10px 0;
	color: var(--ml-on-berry);
	font-family: var(--ml-text);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.site-header .site-navigation ul.menu > li.menu-item-has-children > a { padding-right: 4px; }
.site-header .site-navigation ul.menu > li > a:hover,
.site-header .site-navigation ul.menu > li.current-menu-item > a,
.site-header .site-navigation ul.menu > li.current-menu-ancestor > a {
	color: var(--ml-on-berry);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.site-header .site-navigation ul.menu li.menu-item-has-children::after,
.site-header .site-navigation-dropdown ul.menu li.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 10px;
	height: 6px;
	margin-left: 6px;
	background: var(--ml-on-berry);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-header .site-navigation ul.menu li.menu-item-has-children { display: flex; align-items: center; }
.site-header .site-navigation ul.menu li.menu-item-has-children::after { position: static !important; transform: none !important; }
.site-header .site-navigation-dropdown ul.menu li.menu-item-has-children > a::after { background: var(--ml-berry); }
.site-header .site-navigation ul.menu li ul {
	min-width: 240px;
	padding: 8px;
	border: 0;
	border-radius: 18px;
	background: var(--ml-white);
	box-shadow: var(--ml-shadow-lift);
}
.site-header .site-navigation ul.menu li ul li { border: 0; }
.site-header .site-navigation ul.menu li ul a {
	padding: 10px 14px;
	border-radius: 12px;
	color: var(--ml-ink);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.site-header .site-navigation ul.menu li ul a:hover { background: var(--ml-berry-soft); color: var(--ml-berry); }
.site-header .site-navigation-toggle-holder { padding: 0; }
.site-header .site-navigation-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--ml-on-berry-soft);
	border-radius: 999px;
	background: transparent;
	color: var(--ml-on-berry);
}
.site-header .site-navigation-toggle-icon {
	position: relative;
	display: block;
	width: 20px !important;
	height: 2px !important;
	border-radius: 2px;
	background: var(--ml-on-berry) !important;
}
.site-header .site-navigation-toggle-icon::before,
.site-header .site-navigation-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px !important;
	height: 2px !important;
	border-radius: 2px;
	background: var(--ml-on-berry) !important;
	transform: none;
}
.site-header .site-navigation-toggle-icon::before { top: -6px; }
.site-header .site-navigation-toggle-icon::after { top: 6px; }
.site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon { background: transparent !important; }
.site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header .site-navigation-toggle[aria-expanded="true"] .site-navigation-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.site-header .site-navigation-dropdown ul.menu {
	margin-top: 12px;
	padding: 8px;
	border-radius: var(--ml-r-card);
	background: var(--ml-white);
	box-shadow: var(--ml-shadow-lift);
}
.site-header .site-navigation-dropdown ul.menu li a {
	padding: 14px 16px;
	border-radius: 14px;
	background: transparent;
	color: var(--ml-ink);
	font-weight: 700;
	text-decoration: none;
}
.site-header .site-navigation-dropdown ul.menu li.current-menu-item > a { background: var(--ml-berry-soft); color: var(--ml-berry); }
.site-header .site-navigation-dropdown ul.menu li ul a { padding-left: 32px; font-weight: 600; }

/* Sticky header: below the admin bar when logged in; anchors land clear of it; shadow appears once scrolled. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
html { scroll-padding-top: 120px; }
@supports (animation-timeline: scroll()) {
	@keyframes ml-header-lift {
		to { box-shadow: 0 10px 28px -12px rgba(43, 32, 37, 0.45); padding-top: 10px; padding-bottom: 10px; }
	}
	.site-header { animation: ml-header-lift linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
}

/* ---------- Site search ---------- */

.site-header .ml-search-toggle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	margin-left: 16px;
	padding: 0;
	border: 2px solid var(--ml-on-berry-soft);
	border-radius: 999px;
	background: transparent;
	color: var(--ml-on-berry);
	cursor: pointer;
}
.site-header .ml-search-toggle:hover,
.site-header .ml-search-toggle:focus-visible { background: var(--ml-on-berry); color: var(--ml-berry); }
.site-header .header-inner > .site-navigation { margin-left: auto; }
@media (max-width: 1024px) {
	.site-header .ml-search-toggle { margin-left: auto; margin-right: 8px; }
}

.ml-search-dialog {
	width: min(760px, calc(100vw - 32px));
	margin: 96px auto auto;
	padding: 20px 64px 20px 20px;
	border: 0;
	border-radius: var(--ml-r-card);
	background: var(--ml-white);
	box-shadow: var(--ml-shadow-lift);
	color: var(--ml-ink);
	overflow: visible;
}
.ml-search-dialog::backdrop { background: rgba(43, 32, 37, 0.55); }
.ml-search-dialog[open] { animation: ml-search-in 260ms var(--ml-ease); }
@keyframes ml-search-in { from { opacity: 0; transform: translateY(-8px); } }
.ml-search-dialog__close {
	position: absolute;
	top: 26px;
	right: 18px;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ml-ink-soft);
	cursor: pointer;
}
.ml-search-dialog__close:hover, .ml-search-dialog__close:focus { background: var(--ml-berry-soft); color: var(--ml-berry); }

.ml-site-search { display: flex; align-items: center; gap: 12px; margin: 0; }
.ml-site-search__field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.ml-site-search__icon { position: absolute; left: 20px; color: var(--ml-ink-soft); pointer-events: none; }
.ml-site-search .ml-site-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ml-site-search .ml-site-search__input {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding: 0 20px 0 54px;
	border: 2px solid var(--ml-line);
	border-radius: 999px;
	background: var(--ml-white);
	font: 600 17px/1.2 var(--ml-text);
	color: var(--ml-ink);
}
.ml-site-search .ml-site-search__input::placeholder { color: var(--ml-ink-soft); opacity: 1; font-weight: 500; }
.ml-site-search .ml-site-search__input:hover { border-color: var(--ml-berry); }
.ml-site-search .ml-site-search__input:focus { outline: none; border-color: var(--ml-berry); box-shadow: 0 0 0 3px rgba(123, 15, 75, 0.2); }

.ml-suggest {
	position: absolute;
	z-index: 30;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: min(60vh, 520px);
	overflow-y: auto;
	padding: 8px;
	background: var(--ml-white);
	border-radius: 24px;
	box-shadow: var(--ml-shadow-lift);
	text-align: left;
}
.ml-suggest[hidden] { display: none; }
.ml-suggest__group {
	margin: 8px 12px 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ml-ink-soft);
}
.ml-suggest__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 12px;
	border-radius: 16px;
	color: var(--ml-ink);
	text-decoration: none;
}
.ml-suggest__item img { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.ml-suggest__text { display: flex; flex-direction: column; min-width: 0; }
.ml-suggest__title { font-weight: 700; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-suggest__title mark { background: var(--ml-berry-soft); color: var(--ml-berry); border-radius: 3px; padding: 0; }
.ml-suggest__meta { font-size: 13px; font-weight: 600; color: var(--ml-ink-soft); font-variant-numeric: tabular-nums; }
.ml-suggest__item:hover,
.ml-suggest__item[aria-selected="true"] { background: var(--ml-berry-soft); color: var(--ml-ink); }
.ml-suggest__all {
	display: block;
	margin-top: 4px;
	padding: 12px;
	border-top: 1px solid var(--ml-line);
	border-radius: 0 0 16px 16px;
	color: var(--ml-berry);
	font-weight: 700;
	text-decoration: none;
}
.ml-suggest__all:hover,
.ml-suggest__all[aria-selected="true"] { background: var(--ml-berry-soft); color: var(--ml-berry); }
.ml-suggest__empty { margin: 0; padding: 14px 12px; color: var(--ml-ink-soft); }
.ml-site-search.is-loading .ml-site-search__icon { animation: ml-pulse 900ms ease-in-out infinite alternate; color: var(--ml-berry); }
@keyframes ml-pulse { to { opacity: 0.35; } }

.ml-results__count { margin: 0; color: var(--ml-on-berry-soft); font-weight: 700; }
.ml-results__form {
	position: relative;
	z-index: 40;
	margin: -64px 0 48px;
	padding: 20px;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow-lift);
}
.ml-results__group { margin: 0 0 56px; }
.ml-results__heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; font-size: 32px; }
.ml-results__heading span { font-family: var(--ml-text); font-size: 16px; font-weight: 700; color: var(--ml-ink-soft); }
.ml-results__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ml-result {
	display: grid;
	gap: 4px;
	padding: 20px 24px;
	border-radius: 20px;
	background: var(--ml-white);
	box-shadow: var(--ml-shadow);
	color: var(--ml-ink);
	text-decoration: none;
	transition: box-shadow 200ms var(--ml-ease), transform 200ms var(--ml-ease);
}
.ml-result:hover { box-shadow: var(--ml-shadow-lift); transform: translateY(-1px); color: var(--ml-ink); }
.ml-result__title { font-family: var(--ml-display); font-weight: 800; font-size: 22px; color: var(--ml-berry); }
.ml-result__meta { font-size: 14px; font-weight: 700; color: var(--ml-ink-soft); }
.ml-result__excerpt { font-size: 16px; line-height: 1.55; color: var(--ml-ink-soft); max-width: 80ch; }
.ml-results__empty { max-width: 68ch; }
.ml-results__empty p { margin: 0 0 12px; }

@media (max-width: 640px) {
	.ml-search-dialog { margin-top: 72px; padding: 16px 56px 16px 16px; }
	.ml-search-dialog__close { top: 20px; right: 10px; }
	.ml-site-search { flex-wrap: wrap; }
	.ml-site-search__field { flex-basis: 100%; }
	.ml-site-search .ml-btn { width: 100%; }
	.ml-results__form { padding: 16px; }
}

/* ---------- Footer ---------- */

.ml-footer { background: var(--ml-berry-deep); color: var(--ml-on-berry-soft); padding: 48px 24px; }
.ml-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1290px;
	margin: 0 auto;
}
.ml-footer__menu { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.ml-footer__menu a { color: var(--ml-on-berry); font-weight: 700; font-size: 14px; text-decoration: none; }
.ml-footer__menu a:hover { text-decoration: underline; }
.ml-footer__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ml-footer__social a {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	color: var(--ml-on-berry);
	transition: background-color 200ms var(--ml-ease);
}
.ml-footer__social a:hover { background: rgba(251, 243, 247, 0.14); }
.ml-footer__social svg { fill: currentColor; }
.ml-footer__address { width: 100%; margin: 0; font-size: 14px; color: var(--ml-on-berry-soft); }
.ml-footer__address a { color: var(--ml-on-berry); font-weight: 700; text-decoration: none; }
.ml-footer__address a:hover { color: var(--ml-sun); }
.ml-footer__copy { width: 100%; margin: 8px 0 0; font-size: 14px; color: var(--ml-on-berry-soft); }
.site-header :focus-visible, .ml-footer :focus-visible { outline-color: var(--ml-sun); }

@media (max-width: 640px) {
	.site-header { padding: 14px 16px; }
	.site-header .site-logo img, .site-header .custom-logo { max-height: 60px; }
	.ml-footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Buttons ---------- */

.ml-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	font-family: var(--ml-display);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms var(--ml-ease), transform 160ms var(--ml-ease);
}
.ml-btn:active { transform: scale(0.97); }
.ml-btn--sun { background: var(--ml-sun); color: var(--ml-ink); }
.ml-btn--sun:hover { background: var(--ml-sun-deep); color: var(--ml-ink); }
.ml-btn--outline { background: transparent; border: 2px solid var(--ml-berry); color: var(--ml-berry); }
.ml-btn--outline:hover { background: var(--ml-berry); color: var(--ml-on-berry); }
.ml-band .ml-btn--outline, .ml-card--berry .ml-btn--outline { border-color: var(--ml-on-berry); color: var(--ml-on-berry); }
.ml-band .ml-btn--outline:hover, .ml-card--berry .ml-btn--outline:hover { background: var(--ml-on-berry); color: var(--ml-berry); }
.ml-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.ml-actions .ml-btn { line-height: 1.15; text-align: center; }
@media (max-width: 640px) { .ml-actions .ml-btn { width: 100%; } }

/* ---------- Berry band (hero and section bands) ---------- */

.ml-band {
	background: var(--ml-berry);
	color: var(--ml-on-berry);
	border-radius: 0 0 48px 48px;
}
.ml-band--top { border-radius: 48px 48px 0 0; }
.ml-band--round { border-radius: 48px; }
.ml-band a:not(.elementor-button):not(.ml-btn) { color: var(--ml-on-berry); }
.ml-band a:not(.elementor-button):not(.ml-btn):hover { color: var(--ml-on-berry); text-decoration: underline; }
.ml-band .elementor-widget-text-editor { color: var(--ml-on-berry); }
.ml-band .ml-quiet { color: var(--ml-on-berry-soft); }

/* ---------- Dog search ---------- */

.ml-search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 24px;
	margin: 0;
	padding: 16px 16px 16px 32px;
	background: var(--ml-white);
	border-radius: 44px;
	box-shadow: var(--ml-shadow-lift);
	color: var(--ml-ink);
}
.ml-search__group { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ml-search__label {
	float: left;
	margin: 0 0 6px 4px;
	padding: 0;
	font-family: var(--ml-text);
	font-weight: 700;
	font-size: 14px;
	color: var(--ml-ink-soft);
}
.ml-search__group .ml-search__pills { clear: both; }
.ml-search__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-pill { position: relative; margin: 0; cursor: pointer; }
.ml-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ml-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid var(--ml-line);
	border-radius: 999px;
	background: var(--ml-white);
	font-weight: 600;
	font-size: 15px;
	color: var(--ml-ink);
	transition: border-color 160ms var(--ml-ease), background-color 160ms var(--ml-ease), transform 160ms var(--ml-ease);
}
.ml-pill:hover span { border-color: var(--ml-berry); }
.ml-pill:active span { transform: scale(0.96); }
.ml-pill input:checked + span { background: var(--ml-ink); border-color: var(--ml-ink); color: var(--ml-white); }
.ml-pill input:focus-visible + span { outline: 3px solid var(--ml-berry); outline-offset: 3px; }
.ml-select {
	appearance: none;
	-webkit-appearance: none;
	min-height: 44px;
	width: 230px;
	padding: 0 44px 0 16px;
	border: 2px solid var(--ml-line);
	border-radius: 999px;
	background: var(--ml-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%237b0f4b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
	font: 600 15px/1.2 var(--ml-text);
	color: var(--ml-ink);
	text-overflow: ellipsis;
	cursor: pointer;
}
.ml-select:hover { border-color: var(--ml-berry); }
.ml-search .ml-btn { margin-left: auto; }

@media (max-width: 1180px) {
	.ml-search { border-radius: var(--ml-r-card); padding: 24px; }
	.ml-search .ml-btn { margin-left: 0; width: 100%; }
	.ml-search__group { width: 100%; }
	.ml-search__label { float: none; }
	.ml-select { width: 100%; }
}

/* ---------- Dog tags (newest dogs) ---------- */

.ml-tags {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ml-tags__item { margin: 0; padding: 0; }
.ml-tag {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 12px 22px;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow);
	color: var(--ml-ink);
	text-decoration: none;
	transform-origin: 50% 22px;
	transition: transform 520ms var(--ml-ease), box-shadow 520ms var(--ml-ease);
}
.ml-tag__hole {
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 50%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	border-radius: 50%;
	background: var(--ml-ground);
	box-shadow: inset 0 2px 3px rgba(43, 32, 37, 0.25);
}
.ml-tag__photo { display: block; overflow: hidden; border-radius: var(--ml-r-photo); aspect-ratio: 3 / 2; background: var(--ml-berry-soft); }
.ml-tag__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ml-tag__name {
	margin: 16px 8px 0;
	font-family: var(--ml-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.ml-tag__facts {
	margin: 6px 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ml-ink-soft);
	font-variant-numeric: tabular-nums;
}
.ml-tag__facts span { white-space: nowrap; }
.ml-tag__flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 8px 0; }
.ml-tag:hover,
.ml-tag:focus-visible { transform: rotate(-2.5deg) translateY(-2px); box-shadow: var(--ml-shadow-lift); color: var(--ml-ink); }

/* Status markers are drawn as small tags: outlined = Pate gesucht, filled = Pflegestelle gesucht. */
.ml-flag {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px 0 22px;
	border-radius: 6px 999px 999px 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.ml-flag::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
}
.ml-flag--pate { border: 2px solid var(--ml-berry); color: var(--ml-berry); }
.ml-flag--pate::before { border: 2px solid var(--ml-berry); left: 6px; }
.ml-flag--ps { background: var(--ml-berry); color: var(--ml-on-berry); border: 2px solid var(--ml-berry); }
.ml-flag--ps::before { background: var(--ml-on-berry); }
.ml-flag--reserviert { background: var(--ml-ink); color: var(--ml-white); border: 2px solid var(--ml-ink); }
.ml-flag--reserviert::before { background: var(--ml-white); }

@media (max-width: 1024px) {
	.ml-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ml-tags {
		display: flex;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding: 4px 0 16px;
		margin: 0;
		scrollbar-width: none;
	}
	.ml-tags__item { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Cards and prose on Elementor pages ---------- */

.ml-card {
	position: relative;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow);
	color: var(--ml-ink);
}
.ml-card::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--ml-ground);
	box-shadow: inset 0 2px 3px rgba(43, 32, 37, 0.22);
}
.ml-card--berry { background: var(--ml-berry); color: var(--ml-on-berry); }
.ml-card--berry::before { background: var(--ml-berry-deep); }
.ml-card--berry a { color: var(--ml-on-berry); }
.ml-card--berry a:hover { color: var(--ml-sun); }
.ml-card--soft { background: var(--ml-berry-soft); box-shadow: none; }
.ml-card--soft::before { background: var(--ml-ground); }

.ml-prose p { margin: 0 0 1em; max-width: 68ch; }
.ml-prose p:last-child { margin-bottom: 0; }
.ml-prose a { color: var(--ml-berry); font-weight: 700; }
.ml-prose a:hover { color: var(--ml-berry-deep); }
.ml-card--berry .ml-prose a, .ml-band .ml-prose a { color: var(--ml-on-berry); }
.ml-card--berry .ml-prose a:hover, .ml-band .ml-prose a:hover { color: var(--ml-sun); }

.ml-photo img { border-radius: var(--ml-r-card); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.ml-photo--wide img { aspect-ratio: 16 / 10; }

/* Adoption path: a strict numbered sequence. */
.ml-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ml-step;
}
.ml-steps li { counter-increment: ml-step; margin: 0; }
.ml-steps a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 22px 8px 8px;
	border-radius: 999px;
	background: var(--ml-white);
	box-shadow: var(--ml-shadow);
	color: var(--ml-ink);
	font-weight: 700;
	text-decoration: none;
	transition: transform 200ms var(--ml-ease), box-shadow 200ms var(--ml-ease);
}
.ml-steps a::before {
	content: counter(ml-step);
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ml-berry);
	color: var(--ml-on-berry);
	font-family: var(--ml-display);
	font-weight: 800;
	font-size: 18px;
}
.ml-steps a:hover { transform: translateY(-2px); box-shadow: var(--ml-shadow-lift); }
.ml-band .ml-steps a:not(.ml-btn):not(.elementor-button),
.ml-band .ml-steps a:not(.ml-btn):not(.elementor-button):hover { color: var(--ml-ink); text-decoration: none; }

/* ---------- Content pages ---------- */

/* Section index: the page's headings as pills; long legal pages get a two-column list. */
.ml-toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ml-toc li { margin: 0; }
.ml-toc a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--ml-line);
	border-radius: 999px;
	background: var(--ml-white);
	color: var(--ml-ink);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.ml-toc a:hover { border-color: var(--ml-berry); color: var(--ml-berry); }
.ml-toc .ml-toc--long { display: block; columns: 2 280px; column-gap: 32px; padding: 24px 28px; border-radius: var(--ml-r-card); background: var(--ml-white); box-shadow: var(--ml-shadow); }
.ml-toc .ml-toc--long li { break-inside: avoid; padding: 4px 0; }
.ml-toc .ml-toc--long a { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--ml-berry); font-size: 16px; }
.ml-toc .ml-toc--long a:hover { text-decoration: underline; }

/* Adoption pages: the home page's numbered steps, the current page filled. */
.ml-process .ml-steps a[aria-current="page"] { background: var(--ml-ink); color: var(--ml-white); }
.ml-process .ml-steps a[aria-current="page"]::before { background: var(--ml-sun); color: var(--ml-ink); }

/* Card grids built from the page's own entries: team members, dogs that found a home. */
.ml-article .ml-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.ml-article .ml-grid--found { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-article .ml-grid > .e-con { --width: auto; width: auto; max-width: none; }
.ml-grid-card {
	position: relative;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow);
}
.ml-grid-card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 14px;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--ml-ground);
	box-shadow: inset 0 2px 3px rgba(43, 32, 37, 0.25);
}
.ml-grid-card .elementor-widget-heading, .ml-grid-card .elementor-widget-text-editor { padding: 0 8px; }
.ml-grid-card__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--ml-r-photo); }
.ml-grid--found .ml-grid-card__photo img { aspect-ratio: 1; }
.ml-grid-card__photo { margin: 0 !important; }

/* Spendenübersicht: one card per year, each month a row. */
.ml-ledger .elementor-widget-html .wp-block-file { justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ml-line); font-weight: 600; }
.ml-ledger .elementor-widget-html .wp-block-file:last-child { border-bottom: 0; }

/* Photo grids that replaced long carousels. */
.ml-gallery .gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Partner banners (third-party artwork) sit in a quiet white frame. */
.ml-article .elementor-widget-html figure.wp-block-image { margin: 0; padding: 16px; border-radius: var(--ml-r-photo); background: var(--ml-white); box-shadow: var(--ml-shadow); text-align: center; }
.ml-article .elementor-widget-html figure.wp-block-image img { border-radius: 8px; }

.ml-article, .ml-dog__story { overflow-wrap: break-word; }
/* The article column and the cards in it stack as plain blocks, not flex columns. iOS Safari sizes an image
   inside a flex column from the file's natural size rather than its width on screen, so the block ends up
   shorter than the photo and the text below slides over it. Block flow has no such step; the gaps Elementor
   would add become margins. */
.ml-article > .e-con-inner,
.ml-article .ml-card,
.ml-article .ml-grid-card,
.ml-dog__story .e-con-inner { display: block !important; }
/* Same for any column that holds just a photo (home page): the column stays a flex item of its row. */
.e-con:has(> .elementor-widget-image:only-child),
.e-con-inner:has(> .elementor-widget-image:only-child) { display: block !important; }
.ml-article > .e-con-inner > .elementor-element + .elementor-element,
.ml-dog__story .e-con-inner > .elementor-element + .elementor-element { margin-top: 24px; }
.ml-article .ml-card > .elementor-element + .elementor-element { margin-top: 12px; }
.ml-article .ml-grid-card > .elementor-element + .elementor-element { margin-top: 10px; }
.ml-article .elementor-widget, .ml-dog__story .elementor-widget { flex-shrink: 0 !important; }
.ml-article a, .ml-dog__story a { overflow-wrap: anywhere; }
.ml-article iframe, .ml-article img, .ml-article video { max-width: 100%; }
.ml-article table { display: block; max-width: 100%; overflow-x: auto; }
/* SVG logos: up to 360px wide, at their own proportions. The width is given without a percentage on purpose:
   Elementor's flex column sizes the block from the SVG's natural size when the width is a percentage, and the
   stretched logo then runs into the text below. */
.ml-article .elementor-widget-image img[src$=".svg"] { display: block; width: min(360px, calc(100vw - 32px)); max-width: none; height: auto; max-height: none; margin: 0 auto; }

.ml-photo--natural img { aspect-ratio: auto; width: auto; max-width: 100%; max-height: 80vh; object-fit: contain; }
@media (max-width: 640px) {
	.ml-photo--natural img:not([src$=".svg"]),
	.ml-article .elementor-widget-image img:not([src$=".svg"]),
	.ml-article .elementor-widget-html figure.wp-block-image img,
	.ml-dog__story .elementor-widget-image img { width: 100%; height: auto; max-height: none; }
}
.ml-photo--natural .elementor-widget-container, .ml-photo--natural { text-align: center; }

/* Photo carousel (Elementor image carousel): one even frame, arrows as pills, berry dots. */
.ml-carousel .swiper-slide-image { display: block; width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; border-radius: var(--ml-r-card); }
.ml-carousel .elementor-swiper-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ml-ink);
	box-shadow: var(--ml-shadow);
}
.ml-carousel .elementor-swiper-button svg { width: 18px; height: 18px; fill: var(--ml-ink) !important; }
.ml-carousel .elementor-swiper-button i { color: var(--ml-ink) !important; font-size: 18px; }
.ml-carousel .swiper-pagination-bullet { background: var(--ml-ink-soft); opacity: 0.35; }
.ml-carousel .swiper-pagination-bullet-active { background: var(--ml-berry); opacity: 1; }
.ml-article div:has(> a[download]) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ml-line);
	font-weight: 600;
}
.ml-article a[download] {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--ml-berry);
	border-radius: 999px;
	color: var(--ml-berry);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.ml-article .elementor-widget-html:has(a[download]) + .elementor-widget-html:has(a[download]) { margin-top: -24px; }
.ml-article .elementor-widget-html p:empty { display: none; }
.ml-article .ml-prose h2,
.ml-article .elementor-widget-html h2 {
	margin: 40px 0 12px !important;
	font-family: var(--ml-display) !important;
	font-weight: 800 !important;
	font-size: 36px !important;
	line-height: 1.06 !important;
	letter-spacing: -0.02em !important;
	color: var(--ml-ink);
}
.ml-article .elementor-widget-html div:not(.ml-actions):has(> a:not([download])),
.ml-article .ml-prose .elementor-widget-container > div:has(> a) {
	padding: 12px 0;
	border-bottom: 1px solid var(--ml-line);
	font-weight: 600;
}
.ml-article a[download]:hover { background: var(--ml-berry); color: var(--ml-on-berry); }
.ml-video .elementor-wrapper { border-radius: var(--ml-r-card); overflow: hidden; }
.ml-dog-content > .e-con-inner { gap: 24px; }
.ml-article .ml-prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.ml-article .ml-prose li { margin: 0.25em 0; }
.ml-article .ml-prose li::marker { color: var(--ml-berry); }
.ml-step-heading .elementor-heading-title { color: var(--ml-berry) !important; }
.ml-bank .ml-prose p { margin: 0 0 0.35em; font-variant-numeric: tabular-nums; }
.ml-gallery .gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 !important; }
.ml-gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.ml-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ml-r-photo); border: 0 !important; }
.ml-article .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ml-article .wp-block-file a.wp-block-file__button,
.ml-article .wp-block-file a.wp-element-button {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
	border: 2px solid var(--ml-berry); border-radius: 999px; background: var(--ml-berry); color: var(--ml-on-berry);
	font-size: 15px; font-weight: 700; text-decoration: none;
}
.ml-article .wp-block-file a.wp-block-file__button:hover,
.ml-article .wp-block-file a.wp-element-button:hover { background: var(--ml-berry-deep); border-color: var(--ml-berry-deep); color: var(--ml-on-berry); }
@media (max-width: 640px) {
	.ml-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ml-search { padding: 20px; }
	.ml-pill span { padding: 0 13px; }
}

/* ---------- Theme pages: band, dog list, dog profile ---------- */

.ml-theme-band { padding: 24px 24px 112px; }
.ml-theme-band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; max-width: 1290px; margin: 0 auto; }
.ml-theme-band__title { width: 100%; margin: 0; font-size: clamp(40px, 5vw, 64px); color: var(--ml-on-berry); }
.ml-theme-band__meta--soft { margin-top: -12px; font-size: 16px; font-weight: 600; }
.ml-btn__ext { flex: none; margin-left: 2px; }
.ml-theme-band__meta { width: 100%; margin: -4px 0 0; font-weight: 700; font-size: 18px; color: var(--ml-on-berry-soft); font-variant-numeric: tabular-nums; }
.ml-theme-band .ml-flag--pate { border-color: var(--ml-on-berry); color: var(--ml-on-berry); }
.ml-theme-band .ml-flag--pate::before { border-color: var(--ml-on-berry); }
.ml-theme-band .ml-flag--ps { background: var(--ml-on-berry); border-color: var(--ml-on-berry); color: var(--ml-berry); }
.ml-theme-band .ml-flag--ps::before { background: var(--ml-berry); }
.ml-theme-band .ml-flag--reserviert { background: var(--ml-ink); border-color: var(--ml-ink); color: var(--ml-white); }
.ml-theme-band .ml-flag { min-height: 32px; font-size: 14px; }
.ml-theme-band .ml-tag__flags { margin: 0; }
.ml-theme-band .ml-btn { margin-left: auto; }

.ml-dogs__inner { max-width: 1338px; margin: 0 auto; padding: 0 24px 112px; }
.ml-dogs__inner > .ml-filter-box { position: relative; z-index: 2; margin: -64px 0 24px; }
.ml-filter-box__toggle { display: none; }
.ml-filter {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 16px;
	margin: 0;
	padding: 24px;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow-lift);
}
.ml-filter__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.ml-filter .ml-search__label { float: none; margin: 0 0 0 4px; }
.ml-filter .ml-select { width: 100%; }
.ml-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.ml-chips li { margin: 0; }
.ml-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 14px 0 18px;
	border-radius: 999px;
	background: var(--ml-ink);
	color: var(--ml-white);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}
.ml-chip span { font-size: 20px; line-height: 1; }
.ml-chip:hover { background: var(--ml-berry); color: var(--ml-on-berry); }
.ml-chips__reset { margin-left: 8px; font-weight: 700; }
.ml-tags--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: 24px; }
.ml-chips + .ml-tags--grid { margin-top: 0; }
.ml-tag__place {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--ml-ink-soft);
}
.ml-tag__place::before {
	content: "";
	width: 12px;
	height: 14px;
	background: var(--ml-berry);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.2 6 8 6 8s6-3.8 6-8a6 6 0 0 0-6-6Zm0 8.2A2.2 2.2 0 1 1 6 3.8a2.2 2.2 0 0 1 0 4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M6 0a6 6 0 0 0-6 6c0 4.2 6 8 6 8s6-3.8 6-8a6 6 0 0 0-6-6Zm0 8.2A2.2 2.2 0 1 1 6 3.8a2.2 2.2 0 0 1 0 4.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ml-empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 0; }
.ml-tag__more {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 16px 8px 0;
	padding: 0 20px;
	border: 2px solid var(--ml-berry);
	border-radius: 999px;
	color: var(--ml-berry);
	font-weight: 700;
	transition: background-color 200ms var(--ml-ease), color 200ms var(--ml-ease);
}
.ml-tag__excerpt { margin: 12px 8px 0; font-size: 15px; line-height: 1.55; color: var(--ml-ink-soft); }
.ml-blog .ml-tag__photo { aspect-ratio: 3 / 2; }
.ml-blog .ml-tags--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.single-post .ml-article img { border-radius: var(--ml-r-photo); }
.ml-post-close { max-width: 860px; margin: 48px auto 0; }
.ml-blog .ml-tag:not(:has(.ml-tag__photo)) .ml-tag__name { margin-top: 36px; }
.ml-blog .ml-dogs__inner { padding-top: 0; }
.ml-blog .ml-tags--grid { margin-top: -48px; position: relative; z-index: 2; }
.ml-tag:hover .ml-tag__more { background: var(--ml-berry); color: var(--ml-on-berry); }
.ml-empty { margin: 0; font-family: var(--ml-display); font-weight: 700; font-size: 24px; }
.ml-pagination .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.ml-pagination .nav-links { flex-wrap: wrap; }
.ml-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--ml-white); color: var(--ml-ink); font-weight: 700; text-decoration: none; }
.ml-pagination .page-numbers.current { background: var(--ml-ink); color: var(--ml-white); }

.ml-dog .ml-theme-band { padding-bottom: 72px; }
.ml-dog__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	align-items: start;
	gap: 56px;
	max-width: 1338px;
	margin: 0 auto;
	padding: 56px 24px 64px;
}
.ml-dog__story { font-size: 18px; line-height: 1.65; }
.ml-dog__story > :first-child { margin-top: 0 !important; }
.ml-dog__story > * { max-width: 68ch; }
.ml-dog__story .wp-block-getwid-images-slider { max-width: none; margin-bottom: 32px; }
.ml-dog__story .wp-block-getwid-images-slider img { border-radius: var(--ml-r-card); }
.wp-block-getwid-images-slider .slick-arrow {
	font-size: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--ml-white) !important;
}
.wp-block-getwid-images-slider .slick-arrow * { font-size: 22px; }
.wp-block-getwid-images-slider .slick-dots button { border: 0; background: transparent; }
.ml-dog__facts { position: sticky; top: 24px; }
.ml-facts {
	margin: 0;
	padding: 36px 24px 12px;
	background: var(--ml-white);
	border-radius: var(--ml-r-card);
	box-shadow: var(--ml-shadow);
	position: relative;
}
.ml-facts::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--ml-ground);
	box-shadow: inset 0 2px 3px rgba(43, 32, 37, 0.22);
}
.ml-facts__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ml-line); }
.ml-facts__row:last-child { border-bottom: 0; }
.ml-facts dt { color: var(--ml-ink-soft); font-weight: 600; font-size: 15px; }
.ml-facts dd { margin: 0; font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.ml-dog__how { align-self: center; margin-left: 8px; font-weight: 700; }
.ml-dog__close {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px 56px;
}
.ml-dog__after {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px 112px;
}
.ml-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ml-share__title { margin-right: 8px; font-weight: 700; color: var(--ml-ink-soft); }
.ml-share__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--ml-line);
	border-radius: 999px;
	color: var(--ml-ink);
	font-weight: 700;
	text-decoration: none;
}
.ml-share__link svg { fill: var(--ml-berry); }
.ml-share__link:hover { border-color: var(--ml-berry); color: var(--ml-ink); }
.ml-dog-nav { display: flex; gap: 12px; }
.ml-dog-nav a {
	display: flex;
	flex-direction: column;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--ml-white);
	box-shadow: var(--ml-shadow);
	color: var(--ml-ink);
	text-decoration: none;
}
.ml-dog-nav__label { font-size: 12px; font-weight: 700; color: var(--ml-ink-soft); }
.ml-dog-nav__name { font-family: var(--ml-display); font-weight: 800; font-size: 18px; }
.ml-dog-nav a:hover { box-shadow: var(--ml-shadow-lift); }

@media (max-width: 1180px) {
	.ml-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ml-filter .ml-btn { grid-column: 1 / -1; }
	.ml-dog__inner { grid-template-columns: minmax(0, 1fr); }
	.ml-dog__facts { position: static; }
}
@media (max-width: 1024px) {
	.ml-tags--grid, .ml-blog .ml-tags--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ml-article .ml-grid, .ml-article .ml-grid--found { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ml-gallery .gallery-columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	.ml-article .ml-grid { grid-template-columns: minmax(0, 1fr); }
	.ml-article .ml-grid--found { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.ml-gallery .gallery-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ml-dog__how { margin: 4px auto 0; }
	.ml-toc a { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 640px) {
	.ml-theme-band { padding: 16px 16px 96px; }
	.ml-theme-band .ml-btn { margin-left: 0; width: 100%; }
	.ml-dogs__inner, .ml-dog__inner, .ml-dog__after, .ml-dog__close { padding-left: 16px; padding-right: 16px; }
	.ml-dog__close .ml-btn { width: 100%; }
	.ml-dogs__inner > .ml-filter-box { margin-top: -72px; }
	.ml-filter-box--home .ml-search { margin-top: 12px; }
	.ml-blog .ml-tags--grid { grid-template-columns: minmax(0, 1fr); }
	.ml-filter-box__toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		padding: 0 22px;
		border-radius: 999px;
		background: var(--ml-white);
		box-shadow: var(--ml-shadow-lift);
		font-family: var(--ml-display);
		font-weight: 700;
		font-size: 17px;
		color: var(--ml-ink);
		cursor: pointer;
		list-style: none;
	}
	.ml-filter-box__toggle::-webkit-details-marker { display: none; }
	.ml-filter-box__toggle::after {
		content: "";
		width: 14px;
		height: 9px;
		background: var(--ml-berry);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: transform 200ms var(--ml-ease);
	}
	.ml-filter-box[open] .ml-filter-box__toggle::after { transform: rotate(180deg); }
	.ml-filter-box__count {
		display: inline-grid;
		place-items: center;
		min-width: 24px;
		height: 24px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--ml-berry);
		color: var(--ml-on-berry);
		font-family: var(--ml-text);
		font-size: 14px;
	}
	.ml-filter { grid-template-columns: minmax(0, 1fr); margin-top: 12px; padding: 20px; }
	.ml-tags--grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; overflow: visible; padding: 0; }
	.ml-tags--grid .ml-tags__item { flex: none; }
	.ml-chips { margin-bottom: 20px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.site-header { animation: none; }
	.ml-site-search.is-loading .ml-site-search__icon { animation: none; }
	.ml-search-dialog[open] { animation: none; }
	.ml-result { transition: none; }
	.ml-tag, .ml-steps a, .ml-btn, .ml-pill span, .ml-tag__more, .ml-filter-box__toggle::after { transition: none; }
	.ml-tag:hover, .ml-tag:focus-visible, .ml-steps a:hover { transform: none; }
}
