/* Winnipeg Prototyping: portfolio index and case-study pages. Loaded only on /portfolio/ and its child pages. */
.wp-pf,
.wp-pf-lead,
.wp-pf-meta {
	--wp-pf-navy: #03255B;
	--wp-pf-accent: #EE9632;
	--wp-pf-ink: #14181C;
	--wp-pf-muted: #5F6670;
	--wp-pf-line: #DDE2E8;
	--wp-pf-surface: #F5F7FA;
}

/* Shared text treatments on Elementor widgets */
.wp-pf-lead p {
	font-size: 19px;
	line-height: 1.55;
	color: #14181C;
	max-width: 68ch;
	margin: 0;
}
.wp-pf-meta p {
	font-size: 15px;
	line-height: 1.7;
	color: #5F6670;
	margin: 0 0 12px;
	padding-left: 14px;
	border-left: 3px solid #EE9632;
}
.wp-pf-meta strong { color: #03255B; font-weight: 600; }
.wp-pf-h2 .elementor-heading-title {
	font-size: 26px;
	line-height: 1.15;
	font-weight: 600;
	color: #03255B;
}
.wp-pf-list ul { margin: 0; padding-left: 20px; }
.wp-pf-list li { margin-bottom: 10px; line-height: 1.6; }
.wp-pf-list li::marker { color: #EE9632; }
.wp-pf-tools p { font-size: 15px; color: #5F6670; border-top: 1px solid #DDE2E8; padding-top: 14px; }
.wp-pf-img img,
.wp-pf-gallery img {
	border: 1px solid #DDE2E8;
	border-radius: 6px;
	background: #fff;
	width: 100%;
	height: auto;
}
.wp-pf-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.wp-pf-cta-btn .elementor-button { padding: 14px 30px; font-weight: 600; box-shadow: none; }

/* Filter bar */
.wp-pf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--wp-pf-line);
}
.wp-pf-filter {
	appearance: none;
	background: #fff;
	color: var(--wp-pf-navy);
	border: 1px solid var(--wp-pf-navy);
	border-radius: 3px;
	padding: 9px 16px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	min-height: 44px;
}
.wp-pf-filter:hover { background: var(--wp-pf-surface); }
.wp-pf-filter:focus-visible { outline: 2px solid var(--wp-pf-accent); outline-offset: 2px; }
.wp-pf-filter.is-active { background: var(--wp-pf-navy); color: #fff; }

/* Case studies: the first is a full-width lead, the rest sit two across */
.wp-pf-cases {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}
.wp-pf-case {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--wp-pf-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.wp-pf-case__media { display: block; background: var(--wp-pf-surface); }
.wp-pf-case__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wp-pf-case__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.wp-pf-case__services {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp-pf-navy);
}
.wp-pf-case__title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; font-weight: 600; }
.wp-pf-case__title a { color: var(--wp-pf-ink); text-decoration: none; }
.wp-pf-case__title a:hover { color: var(--wp-pf-navy); text-decoration: underline; }
.wp-pf-case__summary { margin: 0 0 14px; color: var(--wp-pf-muted); line-height: 1.6; }
.wp-pf-case__client { margin: 0 0 18px; font-size: 14px; color: var(--wp-pf-muted); }
.wp-pf-case__link {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 600;
	color: var(--wp-pf-navy);
	text-decoration: none;
	border-bottom: 2px solid var(--wp-pf-accent);
	padding-bottom: 2px;
}
.wp-pf-case__link:hover { color: var(--wp-pf-ink); }

@media (min-width: 900px) {
	.wp-pf-case:first-child:not([hidden]) {
		grid-column: 1 / -1;
		flex-direction: row;
	}
	.wp-pf-case:first-child .wp-pf-case__media { flex: 0 0 55%; }
	.wp-pf-case:first-child .wp-pf-case__body { padding: 36px; justify-content: center; }
	.wp-pf-case:first-child .wp-pf-case__title { font-size: 30px; line-height: 1.12; }
	.wp-pf-case:first-child .wp-pf-case__link { margin-top: 0; }
}

/* More projects: compact rows separated by hairlines, not cards */
.wp-pf-more { margin-top: 64px; }
.wp-pf-more__title { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--wp-pf-navy); margin: 0 0 8px; }
.wp-pf-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.wp-pf-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--wp-pf-line); }
.wp-pf-item__media { flex: 0 0 96px; }
.wp-pf-item__media img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 3px; border: 1px solid var(--wp-pf-line); }
.wp-pf-item__title { margin: 0 0 4px; font-size: 18px; line-height: 1.25; font-weight: 600; color: var(--wp-pf-ink); }
.wp-pf-item__meta { margin: 0 0 8px; font-size: 13px; color: var(--wp-pf-navy); }
.wp-pf-item__text { margin: 0; color: var(--wp-pf-muted); line-height: 1.55; font-size: 15px; }
.wp-pf-empty { color: var(--wp-pf-muted); padding: 24px 0; }
.wp-pf [hidden] { display: none !important; }

@media (max-width: 767px) {
	.wp-pf-lead p { font-size: 17px; }
	.wp-pf-h2 .elementor-heading-title { font-size: 22px; }
	.wp-pf-cases { grid-template-columns: 1fr; gap: 24px; }
	.wp-pf-case__body { padding: 20px; }
	.wp-pf-case__title { font-size: 20px; }
	.wp-pf-items { grid-template-columns: 1fr; }
	.wp-pf-item__media { flex-basis: 72px; }
	.wp-pf-item__media img { width: 72px; height: 72px; }
	.wp-pf-filters { gap: 6px; margin-bottom: 24px; }
	.wp-pf-filter { font-size: 14px; padding: 9px 12px; }
	.wp-pf-more { margin-top: 40px; }
}

/* Breadcrumb wrap: long case-study titles must not push the page wider than the screen */
.site-breadcrumb { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.site-breadcrumb .breadcrumb_last { white-space: normal; }
