/**
 * Pontiac Ouest — Budget & Finances pages.
 * Rides on the .po-meetings tokens/wrapper (accent per municipality, headings);
 * this file only adds the year cards.
 */

.po-meetings.po-budget {
	padding-top: 24px;
}

.po-budget__years {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.po-budget__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 20px 22px;
	background: var(--po-surface);
	border: 1px solid var(--po-line);
	border-top: 4px solid var(--po-accent);
	border-radius: var(--po-radius);
	box-shadow: var(--po-shadow);
}

.po-meetings .po-budget__year {
	margin: 0;
	font-family: var(--po-heading-font);
	font-size: 1.8rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--po-ink);
}

.po-budget__docs {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
	color: var(--po-muted);
}

.po-budget__docs li {
	margin: 0;
	padding: 3px 0;
}

.po-meetings a.po-budget__btn {
	align-self: flex-start;
	margin-top: auto;
	padding: 9px 18px;
	border-radius: 6px;
	background: var(--po-accent-ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.po-meetings a.po-budget__btn:hover,
.po-meetings a.po-budget__btn:focus-visible {
	filter: brightness(1.12);
	transform: translateY(-1px);
}

.po-budget__pending {
	margin-top: auto;
	font-size: 0.8rem;
	font-style: italic;
	color: var(--po-muted);
}

/* Keep the whole page in the 1280px container (the generic .po-meetings rule makes main full width). */
body.tb-core-page .tb-core-page__main:has(> .tb-core-page__block--html .po-budget) {
	max-width: 1280px;
	margin: 0 auto;
	padding: 56px 20px 0;
}

body.tb-core-page .tb-core-page__block--html .tb-core-page__block-inner:has(.po-budget) {
	padding: 0;
}

.po-meetings.po-budget {
	padding-left: 0;
	padding-right: 0;
}

/* Image-right intro block: text left, circular logo right, headline in the site heading style. */
body.tb-core-page .tb-core-page__block--image-right {
	margin: 0 0 48px;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 48px;
	max-width: none;
	padding: 0;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-body {
	order: 1;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-image {
	order: 2;
	margin: 0;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-title {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 14px;
	font-family: "Fjalla One", sans-serif;
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 400;
	line-height: 1.15;
	text-transform: uppercase;
	color: #222233;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--po-accent);
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-text {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #222233;
}

body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-image img {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	body.tb-core-page .tb-core-page__main:has(> .tb-core-page__block--html .po-budget) {
		padding: 36px 16px 0;
	}

	body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-image {
		order: 0;
	}

	body.tb-core-page .tb-core-page__block--image-right .tb-core-page__block-image img {
		width: 160px;
	}
}

/* Tenders & Contracts: SEAO button + notices list. */
.po-tenders__cta {
	margin: 0;
}

.po-meetings a.po-budget__btn.po-tenders__btn,
.po-tenders__cta .po-budget__btn {
	display: inline-block;
	padding: 12px 22px;
}

/* Bylaws list. */
.po-bylaws {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.po-bylaw {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 20px;
	background: var(--po-surface);
	border: 1px solid var(--po-line);
	border-left: 4px solid var(--po-accent);
	border-radius: 8px;
}

.po-meetings a.po-bylaw__title {
	color: var(--po-ink);
	font-weight: 600;
	text-decoration: none;
}

.po-meetings a.po-bylaw__title:hover {
	color: var(--po-accent-ink);
}

.po-meetings a.po-bylaw__dl {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.po-bylaw {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
