/**
 * Public bylaw page + [mmd_bylaw] embed (mirrors council meeting document cards).
 */

.mmd-bylaw {
	--mmd-by-text: #1a1a1a;
	--mmd-by-muted: #5a5a5a;
	--mmd-by-accent: #1a4d6d;
	--mmd-by-border: #d8dde3;
	--mmd-by-surface: #f7f8fa;
	--mmd-by-link: #1a4d6d;
	--mmd-by-icon: #c0392b;
	box-sizing: border-box;
	color: var(--mmd-by-text);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.05rem;
	line-height: 1.5;
	margin: 0 auto;
	max-width: 48rem;
	padding: 2.5rem 1.5rem 3rem;
	width: 100%;
}

.mmd-bylaw *,
.mmd-bylaw *::before,
.mmd-bylaw *::after {
	box-sizing: border-box;
}

.mmd-bylaw__header {
	margin: 0 0 2rem;
	padding: 0 0 1.5rem;
	border-bottom: 1px solid var(--mmd-by-border);
}

.mmd-bylaw__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--mmd-by-text);
}

.mmd-bylaw__section-title {
	margin: 0 0 0.85rem;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mmd-by-muted);
}

.mmd-bylaw__downloads {
	margin: 0 0 2rem;
}

.mmd-bylaw__download-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.mmd-bylaw__download-item {
	flex: 1 1 9.5rem;
	min-width: 8.5rem;
	max-width: 12rem;
}

.mmd-bylaw__download-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.65rem;
	height: 100%;
	padding: 1.1rem 0.85rem 1rem;
	background: var(--mmd-by-surface);
	border: 1px solid var(--mmd-by-border);
	border-radius: 0.4rem;
	color: var(--mmd-by-link);
	text-decoration: none;
	text-align: center;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mmd-bylaw__download-link:hover,
.mmd-bylaw__download-link:focus-visible {
	background: #eef2f6;
	border-color: var(--mmd-by-accent);
	color: var(--mmd-by-accent);
	outline: none;
}

.mmd-bylaw__download-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mmd-by-icon);
	line-height: 0;
}

.mmd-bylaw__icon-svg {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
}

.mmd-bylaw__download-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	width: 100%;
}

.mmd-bylaw__download-label {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.mmd-bylaw__download-action {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--mmd-by-accent);
}

.mmd-bylaw__content {
	margin: 0;
	padding: 0;
	color: var(--mmd-by-text);
}

.mmd-bylaw__content > *:first-child {
	margin-top: 0;
}

.mmd-bylaw__content > *:last-child {
	margin-bottom: 0;
}

.mmd-bylaw__content p,
.mmd-bylaw__content ul,
.mmd-bylaw__content ol {
	margin: 0 0 1.1rem;
}

.mmd-bylaw__content a {
	color: var(--mmd-by-link);
}

.mmd-bylaw__content a:hover,
.mmd-bylaw__content a:focus-visible {
	color: var(--mmd-by-accent);
}

@media (max-width: 480px) {
	.mmd-bylaw {
		padding: 1.75rem 1.1rem 2.5rem;
	}

	.mmd-bylaw__download-item {
		flex: 1 1 calc(50% - 0.45rem);
		max-width: none;
	}
}
