/* ===========================================================================
   Partnership page, design canvas "Partnerskap" (2026-10-07)
   ===========================================================================
   Loaded only on pages whose content uses the `cq-par-` section (see
   inc/page-partnerskap.php). Values follow the canvas and the Certain QMS
   Web Design System: breadcrumb, then the photo beside H1, lead, body text
   and a direct contact list (two equal columns from 1024px; stacked below,
   with the photo after the text).

   Spacing comes from flex/grid `gap`, so block margins inside the section
   are reset, as on the contact page. */

.cq-main {
	/* Same gutter as the header/footer, so the column lines up with them. */
	--cq-par-gutter: var(--wp--style--root--padding-left, clamp(24px, 5.56vw, 80px));
	--cq-par-muted: #3f4947;
}

.wp-block-post-content > .cq-par-s {
	margin-block: 0 !important;
}

.cq-main .cq-par-s :where(h1, p, ul, li, figure, .wp-block-group) {
	margin: 0 !important;
}

.cq-main .cq-par-s {
	background-color: #ffffff;
	font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	padding-block: var(--cq-crumb-top) clamp(64px, 8vw, 112px);
}

.cq-main .cq-par-wrap {
	box-sizing: border-box;
	margin-inline: auto !important;
	/* 1200px of content, like the header and footer (contentSize). */
	max-width: calc(1200px + 2 * var(--cq-par-gutter));
	padding-inline: var(--cq-par-gutter);
}

.cq-main .cq-par-s .cq-breadcrumb ol {
	margin: 0;
}

.cq-main .cq-par-grid {
	align-items: start;
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr);
	padding-block-start: var(--cq-crumb-gap);
}

/* Stacked, the photo follows the text. */
.cq-main .cq-par-media {
	order: 2;
}

.cq-main .cq-par-media img {
	aspect-ratio: 4 / 3;
	border-radius: var(--cq-radius-md, 12px);
	display: block;
	height: auto;
	object-fit: cover;
	/* Keeps the person at the desk in frame in the 4:5 crop. */
	object-position: 66% 50%;
	width: 100%;
}

.cq-main .cq-par-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cq-main .cq-par-title {
	color: var(--cq-ink);
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
	text-wrap: balance;
}

/* Lead and body text at the site's body size (theme.json "medium", 17px),
   like the rest of the site (Oda, 2026-10-07). */
.cq-main .cq-par-lead,
.cq-main .cq-par-text {
	color: var(--cq-par-muted);
	font-size: var(--wp--preset--font-size--medium, 17px);
	line-height: 1.65;
	max-width: 68ch;
}

/* Direct contacts: hairline-separated rows with a mist icon tile. */
.cq-main .cq-par-list {
	border-top: 1px solid var(--cq-border);
	list-style: none;
	margin-block-start: 8px !important;
	max-width: 480px;
	padding: 0;
}

.cq-main .cq-par-item {
	align-items: center;
	border-bottom: 1px solid var(--cq-border);
	display: flex;
	gap: 16px;
	padding-block: 20px;
}

.cq-main .cq-par-item__icon {
	align-items: center;
	background-color: var(--cq-mist);
	border-radius: var(--cq-radius-sm);
	color: var(--cq-blue);
	display: flex;
	flex-shrink: 0;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.cq-main .cq-par-item__icon::before {
	background-color: currentColor;
	content: "";
	height: 24px;
	-webkit-mask: var(--cq-icon) center / contain no-repeat;
	mask: var(--cq-icon) center / contain no-repeat;
	width: 24px;
}

.cq-main .cq-par-item__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cq-main .cq-par-item__label {
	color: var(--cq-par-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.cq-main .cq-par-item__link {
	color: var(--cq-blue);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.cq-main .cq-par-item__link:hover {
	color: var(--cq-navy);
	text-decoration: underline;
}

.cq-main .cq-par-item__link:focus-visible {
	border-radius: 4px;
	outline: 2px solid var(--cq-blue);
	outline-offset: 2px;
}

@media (min-width: 1024px) {
	.cq-main .cq-par-grid {
		gap: 64px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cq-main .cq-par-media {
		order: 0;
	}

	.cq-main .cq-par-media img {
		aspect-ratio: 4 / 5;
	}
}

/* --- Icons ----------------------------------------------------------------- */
/* Lucide-style, 24px, 1.5px stroke, as in the canvas. */

.cq-par-icon--phone {
	--cq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2a19.8 19.8 0 0 1-8.6-3.1a19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2A2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

.cq-par-icon--mail {
	--cq-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
