/* Brand layer (includes/brand.php). Colour tokens --cc-* are printed inline by cc_brand_token_css(). */

/* Site title: mark + two-tone wordmark. */
.wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: var(--cc-ink);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.wp-block-site-title .cc-mark {
	width: 1.6em;
	height: 1.6em;
	flex: none;
}

.cc-brand-accent {
	color: var(--cc-leaf);
}

/* Lists in posts and pages: leaf check marks instead of bullets. */
.wp-block-post-content > ul.wp-block-list {
	list-style: none;
	padding-left: 1.6em;
}

.wp-block-post-content > ul.wp-block-list > li {
	position: relative;
}

.wp-block-post-content > ul.wp-block-list > li::before {
	content: "✓";
	position: absolute;
	left: -1.4em;
	color: var(--cc-leaf);
	font-weight: 800;
}

/* Data badge and "Data checked" line (answer card, markenkonzept.md §7.4 and §8). */
.cc-badge {
	display: inline-block;
	justify-self: start;
	margin: 0;
	padding: 0.2rem 0.8rem;
	border: 1px solid var(--cc-leaf);
	border-radius: 999px;
	color: var(--cc-leaf);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.5;
}

.cc-badge a {
	color: inherit;
}

.cc-checked {
	margin: 0 0 1rem;
	color: var(--cc-muted);
	font-size: 0.9rem;
	font-weight: 600;
}

/* Tables: tabular numbers so columns line up. */
.wp-block-table td,
.cc-calc__table td {
	font-variant-numeric: tabular-nums;
}

/* Food posts: the featured image is the answer card (tools/make_cards.py, 1200 × 630).
   Show it whole instead of the theme's 3:2 crop. */
.single-post .wp-block-post-featured-image img {
	aspect-ratio: 1200 / 630 !important;
	object-fit: contain !important;
	height: auto !important;
	border-radius: 12px;
}

/* "Cite this page" box (includes/reuse.php). */
.cc-cite {
	margin-top: 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--cc-oat);
	border-radius: 12px;
	font-size: 0.95rem;
}
.cc-cite h2 {
	margin-top: 0;
	font-size: 1.25rem;
}
.cc-cite__label {
	margin: 1rem 0 0.25rem;
	font-weight: 600;
}
.cc-cite__code {
	margin: 0;
	padding: 0.75rem;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	background: var(--cc-paper);
	border: 1px solid var(--cc-line);
	border-radius: 8px;
	font-size: 0.85rem;
}
.cc-cite__license {
	margin-bottom: 0;
	color: var(--cc-muted);
}

/* Hub page actions: CSV download and print, the button looks like a link. */
.cc-food-index__print {
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-leaf);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Tap targets of at least 44 × 44 px: menu buttons and menu links (audit M5). */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wp-block-navigation .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
footer.wp-block-template-part .wp-block-navigation {
	row-gap: 0;
}

@media print {
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.cc-consent,
	.cc-cite,
	.cc-food-index__actions,
	.wp-block-post-featured-image {
		display: none !important;
	}
	.cc-calc__table {
		display: table;
		overflow: visible;
	}
}
