/*
 * Life Now Directory — public styles (v0.4).
 *
 * Every component reads design tokens (--lnd-*). A directory changes its look
 * by overriding tokens on .lnd-root (see Support\Theme), never by editing
 * component rules or adding inline styles in templates.
 */

/* ================================================================ Tokens */

.lnd-root {
	/* Brand */
	--lnd-primary: #1f6f5c;
	--lnd-primary-contrast: #ffffff;
	--lnd-primary-text: var(--lnd-ink-light, var(--lnd-primary));
	--lnd-accent-soft: color-mix(in srgb, var(--lnd-primary) 11%, var(--lnd-surface));
	--lnd-accent-faint: color-mix(in srgb, var(--lnd-primary) 5%, var(--lnd-surface));

	/* Surfaces & text */
	--lnd-background: transparent;
	--lnd-surface: #ffffff;
	--lnd-surface-alt: #f4f5f3;
	--lnd-text: #16201c;
	--lnd-muted: #5b6661;
	--lnd-border: #e4e7e3;
	--lnd-open: #15803d;
	--lnd-closed: #9a3412;

	/* Shape & depth */
	--lnd-radius: 18px;
	--lnd-radius-sm: 12px;
	--lnd-radius-pill: 999px;
	--lnd-shadow-sm: 0 1px 2px rgba(16, 24, 20, .05), 0 1px 3px rgba(16, 24, 20, .05);
	--lnd-shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 6px 20px rgba(16, 24, 20, .07);
	--lnd-shadow-lg: 0 2px 6px rgba(16, 24, 20, .06), 0 18px 44px rgba(16, 24, 20, .14);

	/* Type */
	--lnd-font-heading: inherit;
	--lnd-font-body: inherit;
	--lnd-font-size: 1rem;

	/* Layout */
	--lnd-space: 16px;
	--lnd-gutter: clamp(16px, 3vw, 28px);
	--lnd-max-width: 1240px;

	box-sizing: border-box;
	max-width: var(--lnd-max-width);
	margin: 0 auto;
	padding: 24px var(--lnd-gutter) 48px;
	background: var(--lnd-background);
	color: var(--lnd-text);
	font-family: var(--lnd-font-body);
	font-size: var(--lnd-font-size);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.lnd-root[data-lnd-theme="dark"] {
	--lnd-primary: #5cc7a8;
	--lnd-primary-contrast: #0b1512;
	--lnd-primary-text: var(--lnd-ink-dark, var(--lnd-primary));
	--lnd-background: #0f1412;
	--lnd-surface: #171e1b;
	--lnd-surface-alt: #1e2723;
	--lnd-text: #edf2ef;
	--lnd-muted: #a1aea8;
	--lnd-border: #2a3531;
	--lnd-open: #4ade80;
	--lnd-closed: #fdba74;
	--lnd-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--lnd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .3);
	--lnd-shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 44px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
	.lnd-root[data-lnd-theme="auto"] {
		--lnd-primary: #5cc7a8;
		--lnd-primary-contrast: #0b1512;
		--lnd-primary-text: var(--lnd-ink-dark, var(--lnd-primary));
		--lnd-background: #0f1412;
		--lnd-surface: #171e1b;
		--lnd-surface-alt: #1e2723;
		--lnd-text: #edf2ef;
		--lnd-muted: #a1aea8;
		--lnd-border: #2a3531;
		--lnd-open: #4ade80;
		--lnd-closed: #fdba74;
		--lnd-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
		--lnd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .3);
		--lnd-shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 44px rgba(0, 0, 0, .45);
	}
}

/* ================================================================ Base */

.lnd-root *,
.lnd-root *::before,
.lnd-root *::after { box-sizing: inherit; }

.lnd-root img { max-width: 100%; height: auto; display: block; }
.lnd-root a { color: var(--lnd-primary-text); text-decoration: none; }
.lnd-root h1, .lnd-root h2 { font-family: var(--lnd-font-heading); color: var(--lnd-text); }
.lnd-root p { margin: 0; }
.lnd-icon { flex: none; }

.lnd-embed { margin: 0; background: #fff; -webkit-overflow-scrolling: touch; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(> .lnd-embed) { height: auto; overflow-y: auto; }
.lnd-embed:has(.lnd-root[data-lnd-theme="dark"]) { background: #0f1412; }
.lnd-embed .lnd-root {
	--lnd-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--lnd-font-heading: var(--lnd-font-body);
	padding-top: var(--lnd-gutter);
}
.lnd-standalone { margin: 0; }
.lnd-body .lnd-page { width: 100%; }

.lnd-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lnd-preview-notice {
	margin: 0 0 var(--lnd-space) !important;
	padding: 10px 14px;
	border-radius: var(--lnd-radius-sm);
	background: #fff4d6;
	color: #5c4300;
	font-size: .9rem;
}

/* ================================================================ Directory hero */

.lnd-hero { margin-bottom: 36px; }

.lnd-hero-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--lnd-radius);
	padding: clamp(40px, 7vw, 84px) clamp(20px, 6vw, 72px) clamp(64px, 8vw, 96px);
	text-align: center;
}
.lnd-hero:not(:has(.lnd-search)) .lnd-hero-band { padding-bottom: clamp(40px, 7vw, 84px); }

/* No cover: an intentional tinted band in the accent color. */
.lnd-hero.no-cover .lnd-hero-band {
	background:
		radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--lnd-primary) 16%, transparent) 0%, transparent 55%),
		radial-gradient(90% 80% at 100% 100%, color-mix(in srgb, var(--lnd-primary) 12%, transparent) 0%, transparent 60%),
		var(--lnd-accent-faint);
	border: 1px solid color-mix(in srgb, var(--lnd-primary) 12%, var(--lnd-border));
}

/* Cover: full-bleed image with a legibility scrim. */
.lnd-hero.has-cover .lnd-hero-band { min-height: clamp(300px, 38vw, 440px); display: flex; align-items: center; justify-content: center; color: #fff; }
.lnd-hero-cover { position: absolute; inset: 0; z-index: -2; }
.lnd-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.lnd-hero.has-cover .lnd-hero-band::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(8, 12, 10, .30) 0%, rgba(8, 12, 10, .45) 45%, rgba(8, 12, 10, .72) 100%);
}

.lnd-hero-inner { position: relative; max-width: 780px; margin: 0 auto; width: 100%; }

.lnd-hero-logo {
	display: flex; align-items: center; justify-content: center;
	width: 92px; height: 92px;
	margin: 0 auto 18px;
	padding: 10px;
	border-radius: calc(var(--lnd-radius) + 4px);
	background: #fff;
	box-shadow: var(--lnd-shadow);
}
.lnd-hero-logo img { width: 100%; height: 100%; object-fit: contain; }

.lnd-eyebrow {
	margin: 0 0 8px !important;
	color: var(--lnd-primary-text);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.lnd-dir-name {
	margin: 0 !important;
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.025em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}
.lnd-dir-description { margin-top: 14px; color: var(--lnd-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); text-wrap: pretty; }
.lnd-dir-description p { margin: 0 0 .5em; }
.lnd-dir-description p:last-child { margin-bottom: 0; }
.lnd-dir-location {
	display: inline-flex !important; align-items: center; gap: 6px;
	margin-top: 14px !important;
	padding: 6px 14px;
	border-radius: var(--lnd-radius-pill);
	background: color-mix(in srgb, var(--lnd-surface) 70%, transparent);
	color: var(--lnd-muted);
	font-size: .9rem;
	font-weight: 500;
}

.lnd-hero.has-cover .lnd-eyebrow { color: rgba(255, 255, 255, .85); }
.lnd-hero.has-cover .lnd-dir-name { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.lnd-hero.has-cover .lnd-dir-description { color: rgba(255, 255, 255, .9); }
.lnd-hero.has-cover .lnd-dir-location { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); }

/* Direct app header — account, Discover, and public directory/listing pages (never embeds). */
.lnd-root .lnd-app-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin: 0 0 20px; padding: 12px 0; border-bottom: 1px solid var(--lnd-border);
	font-family: var(--lnd-font-body); font-size: .95rem;
}
.lnd-root .lnd-app-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--lnd-text); font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.lnd-root .lnd-app-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnd-root .lnd-app-mark { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lnd-primary); color: var(--lnd-primary-contrast); font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.lnd-root .lnd-app-logo { flex: none; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.lnd-root .lnd-app-links { display: flex; align-items: center; gap: 6px 16px; flex: none; }
.lnd-root .lnd-app-links > a:not(.lnd-btn) { color: var(--lnd-text); font-weight: 600; text-decoration: none; }
.lnd-root .lnd-app-links > a[aria-current="page"] { color: var(--lnd-primary-text); }
.lnd-root .lnd-app-account { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lnd-surface-alt); }
.lnd-root .lnd-app-account:hover, .lnd-root .lnd-app-account:focus-visible { background: var(--lnd-accent-soft); }
.lnd-root .lnd-app-links > a.lnd-app-edit { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--lnd-radius-pill); background: var(--lnd-accent-soft); color: var(--lnd-primary-text); font-weight: 700; font-size: .875rem; }
.lnd-root .lnd-app-links > a.lnd-app-edit:hover { background: color-mix(in srgb, var(--lnd-primary) 18%, var(--lnd-surface)); }
@media (max-width: 600px) {
	.lnd-root .lnd-app-bar { padding: 8px 0; margin-bottom: 14px; gap: 8px; }
	.lnd-root .lnd-app-links { gap: 6px 12px; }
	.lnd-root .lnd-app-links > a.lnd-app-edit { padding: 0 12px; }
	.lnd-root .lnd-app-bar:not(.is-directory) .lnd-app-links .lnd-btn.is-primary { display: none; }
}
@media (max-width: 380px) {
	.lnd-root .lnd-app-links > a.lnd-app-edit { font-size: 0; gap: 0; width: 40px; padding: 0; justify-content: center; }
}

/* "Suggest a listing" — directories that accept submissions. */
.lnd-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 28px 0 0; padding: 16px 18px; border: 1px dashed var(--lnd-border); border-radius: var(--lnd-radius); background: var(--lnd-surface); color: var(--lnd-muted); }
.lnd-root .lnd-suggest-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--lnd-radius-pill); background: var(--lnd-accent-soft); color: var(--lnd-primary-text); font-weight: 700; }

/* Search — the primary control, overlapping the band's lower edge. */
.lnd-search {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: calc(100% - 2 * clamp(12px, 4vw, 48px));
	max-width: 780px;
	margin: -34px auto 0;
	background: var(--lnd-surface);
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius-pill);
	box-shadow: var(--lnd-shadow-lg);
	transition: border-color .15s, box-shadow .15s;
}
.lnd-hero:not(:has(.lnd-hero-band)) .lnd-search { margin-top: 0; }
.lnd-search:focus-within { border-color: var(--lnd-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lnd-primary) 18%, transparent), var(--lnd-shadow-lg); }
.lnd-search-icon { position: absolute; left: 24px; display: flex; color: var(--lnd-muted); pointer-events: none; }
.lnd-root .lnd-search-input {
	flex: 1;
	min-width: 0;
	height: 68px;
	margin: 0;
	padding: 0 12px 0 60px;
	border: 0;
	border-radius: var(--lnd-radius-pill);
	background: transparent;
	color: var(--lnd-text);
	font: inherit;
	font-size: 1.12rem;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.lnd-root .lnd-search-input::placeholder { color: var(--lnd-muted); opacity: .85; }
.lnd-root .lnd-search-button {
	height: 52px;
	margin: 0 8px 0 0;
	padding: 0 26px;
	border: 0;
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-primary);
	color: var(--lnd-primary-contrast);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s;
}
.lnd-root .lnd-search-button:hover { filter: brightness(1.08); }

/* Category chips: top N visible, "More" reveals the rest (JS only). */
.lnd-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 980px;
	margin: 22px auto 0;
}
.lnd-root .lnd-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface);
	color: var(--lnd-text);
	font: inherit;
	font-size: .92rem;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.lnd-root .lnd-chip:hover { border-color: color-mix(in srgb, var(--lnd-primary) 50%, var(--lnd-border)); background: var(--lnd-accent-faint); }
.lnd-root .lnd-chip.is-active { background: var(--lnd-primary); border-color: var(--lnd-primary); color: var(--lnd-primary-contrast); }
.lnd-chip-count {
	min-width: 20px; padding: 0 6px;
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface-alt);
	color: var(--lnd-muted);
	font-size: .75rem; font-weight: 600; line-height: 20px; text-align: center;
}
.lnd-chip.is-active .lnd-chip-count { background: color-mix(in srgb, var(--lnd-primary-contrast) 22%, transparent); color: inherit; }
.lnd-chip-more { display: none !important; }
.lnd-js .lnd-chip-more { display: inline-flex !important; }
.lnd-js .lnd-chips:not(.is-expanded) .lnd-chip.is-extra { display: none; }

/* ================================================================ Results */

.lnd-summary {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
	margin: 0 0 18px !important;
	color: var(--lnd-muted);
	font-weight: 500;
}
.lnd-root .lnd-clear { font-weight: 600; }
.lnd-summary[hidden], .lnd-empty[hidden] { display: none; }

.lnd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr));
	align-items: start;
	gap: 24px;
}

.lnd-empty {
	padding: 56px var(--lnd-space);
	border: 1px dashed var(--lnd-border);
	border-radius: var(--lnd-radius);
	color: var(--lnd-muted);
	text-align: center;
}

.lnd-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.lnd-root .lnd-page-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 10px;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius-sm);
	background: var(--lnd-surface);
	color: var(--lnd-text);
	font-weight: 600;
}
.lnd-page-num.is-current { background: var(--lnd-primary); border-color: var(--lnd-primary); color: var(--lnd-primary-contrast); }

.lnd-footer { margin-top: 56px; color: var(--lnd-muted); font-size: .78rem; text-align: center; opacity: .75; }

/* ================================================================ Cards */

.lnd-root .lnd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius);
	background: var(--lnd-surface);
	box-shadow: var(--lnd-shadow-sm);
	color: var(--lnd-text);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lnd-root .lnd-card:hover { transform: translateY(-3px); box-shadow: var(--lnd-shadow-lg); border-color: color-mix(in srgb, var(--lnd-primary) 28%, var(--lnd-border)); }
.lnd-root .lnd-card:focus-visible { outline: 3px solid var(--lnd-primary); outline-offset: 3px; }
.lnd-card[hidden] { display: none; }
.lnd-card.is-featured { border-color: color-mix(in srgb, var(--lnd-primary) 40%, var(--lnd-border)); }

.lnd-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--lnd-surface-alt);
}
.lnd-card-media .lnd-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lnd-root .lnd-card:hover .lnd-card-img { transform: scale(1.04); }

/* Logo-only card: logo centred on a tinted panel so the grid keeps its rhythm. */
.media-logo .lnd-card-media {
	aspect-ratio: 2 / 1;
	display: flex; align-items: center; justify-content: center;
	background:
		radial-gradient(80% 80% at 50% 40%, var(--lnd-surface) 0%, transparent 70%),
		var(--lnd-accent-faint);
	border-bottom: 1px solid var(--lnd-border);
}
.lnd-card-logo-panel { display: flex; align-items: center; justify-content: center; width: 58%; height: 58%; }
.lnd-card-logo-panel img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Photo + logo: logo becomes a badge over the photo's lower edge. */
.lnd-card-logo-badge {
	position: relative;
	z-index: 1;
	display: flex; align-items: center; justify-content: center;
	width: 58px; height: 58px;
	margin: -30px 0 0 18px;
	padding: 6px;
	border: 3px solid var(--lnd-surface);
	border-radius: var(--lnd-radius-sm);
	background: #fff;
	box-shadow: var(--lnd-shadow);
}
.lnd-card-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.has-badge-logo .lnd-card-body { padding-top: 10px; }

/* Text-only card: a thin accent rule keeps it intentional. */
.media-none::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--lnd-primary), color-mix(in srgb, var(--lnd-primary) 35%, var(--lnd-surface)));
}
.media-none .lnd-card-body { padding-top: 20px; }
.media-none .lnd-card-title { font-size: 1.2rem; }
.media-none .lnd-card-excerpt { -webkit-line-clamp: 4; }

.lnd-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px 3px 8px;
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-primary);
	color: var(--lnd-primary-contrast);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.4;
	text-transform: uppercase;
}
.lnd-badge-float { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

.lnd-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 20px 18px; }
.lnd-card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; }
.lnd-root .lnd-card-category {
	color: var(--lnd-primary-text);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.lnd-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: var(--lnd-font-heading);
	font-size: 1.14rem;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.01em;
	overflow-wrap: anywhere;
}
.lnd-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--lnd-muted);
	font-size: .94rem;
	line-height: 1.5;
}
.lnd-card-title, .lnd-card-excerpt { margin-bottom: 0; }
.lnd-card-body > :nth-last-child(2) { margin-bottom: 8px; }
.lnd-card-meta {
	display: flex; flex-direction: column; gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--lnd-border);

}
.lnd-meta-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--lnd-muted); font-size: .88rem; }
.lnd-meta-item > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnd-meta-item .lnd-icon { opacity: .75; }

/* Open / closed status */
.lnd-status { display: inline-flex; align-items: center; gap: 8px; }
.lnd-status-dot { flex: none; width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--lnd-muted); }
.lnd-status.is-open { color: var(--lnd-open); font-weight: 600; }
.lnd-status.is-open .lnd-status-dot { background: var(--lnd-open); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lnd-open) 22%, transparent); }
.lnd-status.is-closed .lnd-status-dot { background: var(--lnd-closed); }

/* ================================================================ Listing profile */

.lnd-listing-page { --lnd-max-width: 1120px; }

.lnd-back { margin-bottom: 18px; }
.lnd-root .lnd-back a {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 6px 14px 6px 8px;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface);
	color: var(--lnd-text);
	font-size: .92rem;
	font-weight: 600;
	transition: border-color .15s;
}
.lnd-root .lnd-back a:hover { border-color: var(--lnd-primary); color: var(--lnd-primary-text); }

.lnd-profile-header { position: relative; }
.lnd-profile-cover {
	aspect-ratio: 21 / 8;
	overflow: hidden;
	border-radius: var(--lnd-radius);
	background: var(--lnd-surface-alt);
}
.lnd-profile-cover img { width: 100%; height: 100%; object-fit: cover; }

.lnd-profile.no-cover .lnd-profile-header {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid color-mix(in srgb, var(--lnd-primary) 12%, var(--lnd-border));
	border-radius: var(--lnd-radius);
	background:
		radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--lnd-primary) 14%, transparent) 0%, transparent 60%),
		var(--lnd-accent-faint);
}

.lnd-profile-identity { display: flex; align-items: flex-end; gap: 22px; }
.lnd-profile.has-cover .lnd-profile-identity { align-items: flex-start; padding: 0 clamp(4px, 2vw, 28px); margin-top: 22px; }
.lnd-profile.has-cover .lnd-profile-logo { margin-top: -78px; position: relative; z-index: 1; }
.lnd-profile.has-cover.has-logo .lnd-profile-titles { padding-top: 6px; }
.lnd-profile.no-cover .lnd-profile-identity { align-items: center; }

.lnd-profile-logo {
	flex: none;
	display: flex; align-items: center; justify-content: center;
	width: 112px; height: 112px;
	padding: 10px;
	border: 4px solid var(--lnd-surface);
	border-radius: calc(var(--lnd-radius) + 4px);
	background: #fff;
	box-shadow: var(--lnd-shadow);
}
.lnd-profile-logo img { width: 100%; height: 100%; object-fit: contain; }

.lnd-profile-titles { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.lnd-profile-title {
	margin: 0 !important;
	font-size: clamp(1.8rem, 4.2vw, 2.9rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.025em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}
.lnd-profile-short { color: var(--lnd-muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); text-wrap: pretty; }
.lnd-profile-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 2px !important; }
.lnd-profile-facts .lnd-meta-item { font-size: .95rem; }
.lnd-profile-facts .lnd-meta-item > span:last-child { white-space: normal; }

/* Actions: website / call / email */
.lnd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lnd-profile.has-cover .lnd-actions { padding: 0 clamp(4px, 2vw, 28px); }
.lnd-root .lnd-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface);
	color: var(--lnd-text);
	font-weight: 600;
	box-shadow: var(--lnd-shadow-sm);
	transition: border-color .15s, background .15s, filter .15s;
}
.lnd-root .lnd-button:hover { border-color: var(--lnd-primary); }
.lnd-root .lnd-button.is-primary { background: var(--lnd-primary); border-color: var(--lnd-primary); color: var(--lnd-primary-contrast); }
.lnd-root .lnd-button.is-primary:hover { filter: brightness(1.08); }
.lnd-root .lnd-button:focus-visible { outline: 3px solid var(--lnd-primary); outline-offset: 2px; }

.lnd-profile-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
	margin-top: 36px;
}
.lnd-profile-body.no-aside { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.lnd-profile-body.no-main { grid-template-columns: minmax(0, 1fr); }
.lnd-profile-body.no-main .lnd-profile-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.lnd-section-title { margin: 0 0 14px !important; font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; }
.lnd-profile-main { padding-top: 4px; }
.lnd-prose { font-size: 1.06rem; line-height: 1.7; }
.lnd-prose p { margin: 0 0 1em; }
.lnd-prose a { text-decoration: underline; text-underline-offset: 2px; }

.lnd-profile-aside { display: flex; flex-direction: column; gap: 18px; }
.lnd-panel {
	padding: 22px;
	border: 1px solid var(--lnd-border);
	border-radius: var(--lnd-radius);
	background: var(--lnd-surface);
	box-shadow: var(--lnd-shadow-sm);
}

.lnd-contact { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lnd-contact li { margin: 0; }
.lnd-contact-row {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 10px;
	border-radius: var(--lnd-radius-sm);
	color: var(--lnd-text);
}
.lnd-root a.lnd-contact-row { color: var(--lnd-text); transition: background .15s; }
.lnd-root a.lnd-contact-row:hover { background: var(--lnd-accent-faint); }
.lnd-contact-icon {
	flex: none;
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--lnd-accent-soft);
	color: var(--lnd-primary-text);
}
.lnd-contact-text { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.lnd-contact-label { color: var(--lnd-muted); font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lnd-contact-value { font-weight: 600; font-style: normal; overflow-wrap: anywhere; }
a.lnd-contact-row .lnd-contact-value { color: var(--lnd-primary-text); }

.lnd-status-lg { margin: 0 0 12px !important; font-size: 1rem; }
.lnd-hours { margin: 0 -10px; }
.lnd-hours-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 10px; border-radius: var(--lnd-radius-sm); }
.lnd-hours-row + .lnd-hours-row { margin-top: 2px; }
.lnd-hours-row.is-today { background: var(--lnd-accent-soft); }
.lnd-hours-row.is-today dt, .lnd-hours-row.is-today dd { color: var(--lnd-text); font-weight: 700; }
.lnd-hours dt { font-weight: 600; white-space: nowrap; }
.lnd-hours dd { margin: 0; color: var(--lnd-muted); text-align: right; white-space: nowrap; }
.lnd-hours-note { margin-top: 12px !important; color: var(--lnd-muted); font-size: .9rem; }

/* Curator context (directory-specific, never canonical) */
.lnd-curator {
	margin-top: 28px;
	padding: 18px 22px;
	border-left: 4px solid var(--lnd-primary);
	border-radius: var(--lnd-radius-sm);
	background: var(--lnd-accent-faint);
}
.lnd-curator-from { margin: 0 0 6px !important; color: var(--lnd-primary-text); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lnd-curator-headline { margin: 0 0 6px !important; font-family: var(--lnd-font-heading); font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.lnd-curator-note { color: var(--lnd-text); font-size: 1.02rem; }
.lnd-curator-note p { margin: 0 0 .6em; }
.lnd-curator-note p:last-child { margin-bottom: 0; }

/* ================================================================ Responsive */

@media (max-width: 860px) {
	.lnd-profile-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.lnd-profile-cover { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
	.lnd-root { padding-top: 12px; }
	.lnd-hero { margin-bottom: 28px; }
	.lnd-hero-band { padding: 36px 20px 58px; }
	.lnd-hero.has-cover .lnd-hero-band { min-height: 300px; }
	.lnd-hero-logo { width: 72px; height: 72px; margin-bottom: 14px; }
	.lnd-search { width: calc(100% - 20px); margin-top: -30px; }
	.lnd-root .lnd-search-input { height: 58px; padding-left: 50px; font-size: 1rem; }
	.lnd-search-icon { left: 18px; }
	.lnd-root .lnd-search-button { display: none; }

	.lnd-chips {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		margin: 18px calc(var(--lnd-gutter) * -1) 0;
		padding: 2px var(--lnd-gutter) 8px;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
	}
	.lnd-chips::-webkit-scrollbar { display: none; }
	.lnd-root .lnd-chip { flex: none; }
	/* On phones every category is one swipe away, so show them all. */
	.lnd-js .lnd-chips:not(.is-expanded) .lnd-chip.is-extra { display: inline-flex; }
	.lnd-js .lnd-chip-more { display: none !important; }

	.lnd-grid { gap: 16px; }

	.lnd-profile-identity { flex-direction: column; align-items: flex-start !important; gap: 14px; }
	.lnd-profile.has-cover .lnd-profile-identity { margin-top: 18px; }
	.lnd-profile.has-cover .lnd-profile-logo { margin-top: -60px; }
	.lnd-profile.has-cover.has-logo .lnd-profile-titles { padding-top: 0; }
	.lnd-profile-logo { width: 84px; height: 84px; }
	.lnd-profile.no-cover .lnd-profile-header { padding: 22px; }
	.lnd-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
	.lnd-root .lnd-button { flex-direction: column; gap: 4px; min-height: 64px; padding: 8px 6px; border-radius: var(--lnd-radius-sm); font-size: .85rem; }
	.lnd-actions-1 .lnd-button { flex-direction: row; min-height: 52px; }
	.lnd-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.lnd-root .lnd-card, .lnd-root .lnd-chip, .lnd-search, .lnd-card-media .lnd-card-img { transition: none; }
	.lnd-root .lnd-card:hover { transform: none; }
	.lnd-root .lnd-card:hover .lnd-card-img { transform: none; }
}

/* ================================================================ Live Release (v0.4) */

/* Area / tag filters under the category chips */
.lnd-filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 16px auto 0; max-width: 780px; }
.lnd-filter { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.lnd-filter-label { color: var(--lnd-muted); font-size: .85rem; font-weight: 600; }
.lnd-root .lnd-filter select {
	min-height: 40px; max-width: 100%; margin: 0; padding: 0 34px 0 14px;
	border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235b6661' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--lnd-text); font: inherit; font-size: .92rem; -webkit-appearance: none; appearance: none;
}
.lnd-root .lnd-filter select:focus-visible { outline: 3px solid var(--lnd-primary); outline-offset: 2px; }
.lnd-filter-check { gap: 6px; font-size: .92rem; cursor: pointer; }
.lnd-filter-check input { width: 18px; height: 18px; accent-color: var(--lnd-primary); }
.lnd-root .lnd-filter-apply { min-height: 40px; padding: 0 16px; border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-pill); background: var(--lnd-surface); color: var(--lnd-text); font: inherit; font-weight: 600; cursor: pointer; }

/* Areas & tags on a listing inside a directory */
.lnd-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 !important; }
.lnd-root .lnd-highlight {
	display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px;
	border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface); color: var(--lnd-text); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.lnd-root .lnd-highlight:hover { border-color: var(--lnd-primary); color: var(--lnd-primary-text); }
.lnd-root .lnd-highlight.is-area { background: var(--lnd-accent-faint); }
.lnd-highlight .lnd-icon { color: var(--lnd-primary-text); }

/* Save (favorite) + owner edit link */
.lnd-participate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.lnd-profile.has-cover .lnd-participate { padding: 0 clamp(4px, 2vw, 28px); }
.lnd-save-form { margin: 0; }
.lnd-root .lnd-save {
	display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px;
	border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-pill);
	background: var(--lnd-surface); color: var(--lnd-text); font: inherit; font-weight: 600; font-size: .95rem;
	text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s;
}
.lnd-root .lnd-save:hover { border-color: #e11d48; }
.lnd-root .lnd-save:focus-visible { outline: 3px solid var(--lnd-primary); outline-offset: 2px; }
.lnd-save .lnd-icon { color: #e11d48; }
.lnd-save-on, .lnd-save-off { display: inline-flex; align-items: center; gap: 7px; }
.lnd-save .lnd-save-on, .lnd-save.is-on .lnd-save-off { display: none; }
.lnd-save.is-on .lnd-save-on { display: inline-flex; }
.lnd-root .lnd-save.is-on { border-color: color-mix(in srgb, #e11d48 45%, var(--lnd-border)); background: color-mix(in srgb, #e11d48 7%, var(--lnd-surface)); }
.lnd-root .lnd-manage-link { color: var(--lnd-primary-text); font-weight: 600; font-size: .95rem; }

/* "Is this your business?" */
.lnd-claim-panel {
	display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 18px 20px;
	border: 1px dashed color-mix(in srgb, var(--lnd-primary) 40%, var(--lnd-border)); border-radius: var(--lnd-radius);
	background: var(--lnd-accent-faint);
}
.lnd-claim-panel > div { flex: 1; min-width: 0; }
.lnd-claim-panel p { margin: 0 !important; color: var(--lnd-muted); }
.lnd-claim-panel .lnd-claim-title { color: var(--lnd-text); font-weight: 700; }
.lnd-claim-icon { display: flex; flex: none; color: var(--lnd-primary-text); }
.lnd-root .lnd-claim-panel .lnd-button { flex: none; flex-direction: row; min-height: 44px; }

@media (max-width: 600px) {
	.lnd-filters { justify-content: stretch; }
	.lnd-filter { flex: 1 1 140px; }
	.lnd-root .lnd-filter select { width: 100%; }
	.lnd-filter-label { display: none; }
	.lnd-claim-panel { flex-wrap: wrap; }
	.lnd-root .lnd-claim-panel .lnd-button { width: 100%; }
}

.lnd-root .lnd-app-account .lnd-app-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.lnd-root .lnd-app-account:has(.lnd-app-avatar) { overflow: hidden; }

.lnd-root .lnd-hours-tz { margin: 10px 0 0; color: var(--lnd-muted); font-size: .82rem; }
.lnd-root .lnd-attribution { margin: 4px 0 0; color: var(--lnd-muted); font-size: .88rem; }

/* ---------------------------------------------------------------- Listing action bar (v0.4.3) */
.lnd-root .lnd-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.lnd-root .lnd-actionbar .lnd-save-form { margin: 0; }
.lnd-root .lnd-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-pill); background: var(--lnd-surface); color: var(--lnd-text); font: inherit; font-size: .92rem; font-weight: 650; line-height: 1; text-decoration: none; cursor: pointer; }
.lnd-root .lnd-act:hover { border-color: var(--lnd-primary); color: var(--lnd-primary-text); }
.lnd-root .lnd-act:focus-visible { outline: 3px solid color-mix(in srgb, var(--lnd-primary) 45%, transparent); outline-offset: 2px; }
.lnd-root .lnd-act.is-primary { background: var(--lnd-primary); border-color: var(--lnd-primary); color: var(--lnd-primary-contrast); }
.lnd-root .lnd-act.is-icon { width: 42px; padding: 0; }
.lnd-root .lnd-act[data-lnd-done] { border-color: var(--lnd-open); color: var(--lnd-open); }
.lnd-root .lnd-save.is-on { color: #e11d48; border-color: color-mix(in srgb, #e11d48 40%, var(--lnd-border)); }
.lnd-root .lnd-save .lnd-save-on { display: none; }
.lnd-root .lnd-save.is-on .lnd-save-on { display: inline-flex; align-items: center; gap: 6px; }
.lnd-root .lnd-save.is-on .lnd-save-off { display: none; }
.lnd-root .lnd-save .lnd-save-off { display: inline-flex; align-items: center; gap: 6px; }
.lnd-root .lnd-act { box-sizing: border-box; margin: 0; }
/* Themes style <details>/<summary> (padding, borders, markers); the More menu
   must look and size exactly like its sibling buttons at every width. */
.lnd-root .lnd-more { position: relative; margin: 0; padding: 0; border: 0; background: none; }
.lnd-root .lnd-more > summary { list-style: none; margin: 0; }
.lnd-root .lnd-more > summary.lnd-act { padding: 0 14px; }
.lnd-root .lnd-more > summary::marker { content: ""; }
.lnd-root .lnd-more > summary::-webkit-details-marker { display: none; }
.lnd-root .lnd-more-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; background: var(--lnd-surface); border: 1px solid var(--lnd-border); border-radius: var(--lnd-radius-sm); box-shadow: var(--lnd-shadow-lg); }
.lnd-root .lnd-more-menu > * { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--lnd-text); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.lnd-root .lnd-more-menu > *:hover, .lnd-root .lnd-more-menu > *:focus-visible { background: var(--lnd-surface-alt); }
.lnd-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--lnd-radius, 16px); background: var(--lnd-surface, #fff); color: var(--lnd-text, #16201c); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lnd-dialog::backdrop { background: rgba(10, 16, 13, .5); }
.lnd-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 6px 22px; }
.lnd-dialog-head h2 { margin: 0; font-size: 1.15rem; }
.lnd-dialog-x { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lnd-surface-alt, #f4f5f3); color: inherit; cursor: pointer; }
.lnd-dialog-body { padding: 6px 22px 22px; }
.lnd-dialog-lede { margin: 0 0 14px; color: var(--lnd-muted, #5b6661); }
.lnd-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lnd-dialog .lnd-embed-code { width: 100%; box-sizing: border-box; min-height: 120px; padding: 10px; border: 1px solid var(--lnd-border, #e4e7e3); border-radius: 10px; font: .8rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lnd-dialog .lnd-check.is-in { opacity: .7; }
.lnd-add-empty .lnd-add-title { margin: 0 0 4px; font-weight: 700; }
@media (max-width: 600px) {
	.lnd-root .lnd-actionbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lnd-root .lnd-actionbar:has([data-lnd-edit-listing]) { grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; }
	.lnd-root .lnd-actionbar .lnd-act { flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 4px; font-size: .78rem; border-radius: 14px; width: 100%; }
	.lnd-root .lnd-actionbar .lnd-save-form, .lnd-root .lnd-actionbar .lnd-more { min-width: 0; }
	.lnd-root .lnd-actionbar .lnd-save .lnd-save-on, .lnd-root .lnd-actionbar .lnd-save .lnd-save-off { flex-direction: column; gap: 4px; }
	.lnd-root .lnd-actionbar .lnd-act.is-icon { width: 44px; min-height: 58px; }
	.lnd-root .lnd-actionbar .lnd-more > summary.lnd-act { padding: 6px 4px; }
	.lnd-root .lnd-hours-row { flex-wrap: wrap; column-gap: 12px; row-gap: 2px; }
	.lnd-root .lnd-hours dd { white-space: normal; }
	.lnd-root .lnd-more-menu { left: auto; right: 0; }
	.lnd-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
.lnd-root > .lnd-notice, .lnd-root > .lnd-flash { margin: 0 0 16px; }

/* Notifications bell (header) */
.lnd-root .lnd-app-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--lnd-text); }
.lnd-root .lnd-app-bell:hover, .lnd-root .lnd-app-bell:focus-visible { background: var(--lnd-surface-alt); }
.lnd-root .lnd-bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d97706; color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--lnd-surface); }
.lnd-dialog .lnd-embed-label { margin: 14px 0 6px; font-weight: 650; font-size: .9rem; }
.lnd-dialog .lnd-embed-label:first-of-type { margin-top: 0; }

/* v0.4.4i — Listing fallback cover. Never invents a photograph for missing media. */
.media-placeholder .lnd-card-media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #eef7f4; border-bottom: 1px solid var(--lnd-border); }
.lnd-listing-placeholder { position: relative; isolation: isolate; }
.lnd-listing-placeholder-pattern {
    position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(145deg, rgba(39,145,128,.18), transparent 48%),
      radial-gradient(circle at 78% 25%, rgba(99,184,170,.22), transparent 28%),
      linear-gradient(135deg, #f0f8f6, #e1f1ed);
}
.lnd-listing-placeholder-pattern::after {
    content:""; position:absolute; inset:0; opacity:.38;
    background-image: linear-gradient(rgba(32,126,111,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(32,126,111,.08) 1px, transparent 1px);
    background-size: 34px 34px; transform: rotate(8deg) scale(1.2);
}
.lnd-listing-placeholder-icon { display:grid; place-items:center; width:56px; height:56px; border-radius:18px; background:rgba(255,255,255,.88); color:var(--lnd-primary-text); box-shadow:0 10px 28px rgba(18,92,81,.12); }
