/* ===================================================================
   WP-Bridge — WordPress-specific additions on top of the ported
   lohr.css design tokens (native block typography, a11y helpers,
   pagination). Kept separate so lohr.css stays a verbatim copy of the
   canonical sitepackage stylesheet.
   =================================================================== */

/* .chip is `inline-flex` in lohr.css, but CSS Grid blockifies inline-level
   display values on direct grid children and stretches them to fill the
   column by default — visible on .event-card__body/.company-card (both
   display:grid) where a lone category chip would otherwise span full width.
   justify-self is a no-op outside of a grid context, so this is safe
   everywhere .chip is used. */
.chip { justify-self: start; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: absolute !important;
	left: 12px; top: 12px;
	width: auto; height: auto;
	padding: 12px 18px; margin: 0;
	clip: auto;
	background: var(--ink); color: #fff;
	border-radius: 8px; z-index: 200; font-weight: 600;
}

/* Native block / rich-text content (Inhalt-style pages, news, detail bodies) */
.entry-content,
.rte,
.prose {
	font-size: 18px;
	color: var(--ink-soft);
}
.entry-content > *,
.rte > *,
.prose > * { margin-top: 0; margin-bottom: 20px; }
.entry-content > *:last-child,
.rte > *:last-child,
.prose > *:last-child { margin-bottom: 0; }
.entry-content h2, .rte h2, .prose h2 { font-size: 30px; color: var(--ink); margin-top: 12px; }
.entry-content h3, .rte h3, .prose h3 { font-size: 23px; color: var(--ink); margin-top: 8px; }
.entry-content a, .rte a, .prose a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol,
.rte ul, .rte ol,
.prose ul, .prose ol { padding-left: 1.3em; }
.entry-content li, .rte li, .prose li { margin-bottom: 6px; }
.entry-content blockquote,
.rte blockquote,
.prose blockquote,
.wp-block-quote {
	border-left: 4px solid var(--lime);
	padding-left: 20px; margin: 24px 0;
	font-family: var(--font-display);
	font-size: 24px; color: var(--green-deep);
}
.entry-content figure, .rte figure, .prose figure { margin: 0; }
.entry-content img, .rte img, .prose img { border-radius: var(--radius); }
.entry-content figcaption, .rte figcaption, .prose figcaption {
	font-size: 14px; color: var(--ink-soft); margin-top: 8px;
}

.alignwide { max-width: calc(var(--container) + 160px); margin-inline: auto; }
.alignfull { max-width: none; margin-inline: 0; }

/* Pagination (search results, news archive) */
.lohr-pagination {
	display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; justify-content: center;
}
.lohr-pagination a,
.lohr-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	border-radius: var(--radius-sm); border: 1px solid var(--line);
	font-family: var(--font-display); font-weight: 600; font-size: 15px;
	color: var(--ink);
}
.lohr-pagination a:hover { background: var(--paper-2); }
.lohr-pagination .current { background: var(--green); color: #fff; border-color: transparent; }

/* Mobile drawer / search overlay state toggles (see assets/js/main.js) */
.drawer[hidden], .search-ov[hidden] { display: none; }
body.lohr-drawer-open { overflow: hidden; }
.site-head--scrolled { box-shadow: var(--shadow-sm); }

/* The logo's "a. Main" suffix is absolutely positioned 30px to the right of
   the wordmark (see brand.jsx LohrLogo) — at narrow widths that collides
   with the header/footer's other content, so it's dropped below ~420px. */
@media (max-width: 420px) {
	.lohr-logo__suffix { display: none; }
}
