/* Minimal custom styles; Tailwind handles most styling */
header {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid transparent;
}
header.scrolled {
	box-shadow: 0 1px 10px rgba(0,0,0,0.06);
	background: rgba(255, 255, 255, 0.92);
	border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Current section indicator in the header nav (set by script.js scroll-spy) */
header nav a[aria-current="true"] {
	color: #557F28;
	font-weight: 600;
}

/* Ensure anchored sections aren't hidden behind the fixed header */
section { scroll-margin-top: 84px; }

/* Visible keyboard focus everywhere. Mouse users are unaffected (:focus-visible). */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #557F28;
	outline-offset: 2px;
}

/* Trustpilot excerpt: fade the clipped edge instead of a hard cut mid-sentence */
.review-excerpt {
	position: relative;
	overflow: hidden;
}
.review-excerpt::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5rem;
	background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
	pointer-events: none;
}

/* Gallery lightbox (progressive enhancement — see script.js) */
[data-gallery] img { cursor: zoom-in; }

dialog.lightbox {
	max-width: min(96vw, 1400px);
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
dialog.lightbox::backdrop {
	background: rgba(15, 23, 42, 0.88);
	backdrop-filter: blur(2px);
}
dialog.lightbox img {
	display: block;
	max-width: 100%;
	max-height: 82vh;
	width: auto;
	margin: 0 auto;
	border-radius: 12px;
	background: #fff;
}
dialog.lightbox figcaption {
	margin-top: 0.75rem;
	color: #f1f5f9;
	font-size: 0.875rem;
	text-align: center;
}
dialog.lightbox .lb-close {
	position: absolute;
	top: -0.75rem;
	right: -0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	color: #0f172a;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
@media (max-width: 640px) {
	dialog.lightbox .lb-close { top: 0.25rem; right: 0.25rem; }
}

/* Gentle image smoothing hints (won't force pixelation) */
img {
	image-rendering: auto;
}

/* Danish compound words must not force horizontal scrolling on narrow phones. */
h1, h2, h3, [aria-label="Brødkrumme"] {
	overflow-wrap: anywhere;
	hyphens: auto;
}

html, body {
	max-width: 100%;
	overflow-x: clip;
}

.grid > *, .flex > * {
	min-width: 0;
}

[aria-label="Brødkrumme"] ol {
	flex-wrap: wrap;
}
/* Non-standard Safari hint (safe no-op elsewhere) */
@supports (-webkit-hyphens: none) {
	img {
		image-rendering: -webkit-optimize-contrast;
	}
}
