/* The Procurement Manager blog: "Contract desk" identity, mirrors theprocurementmanager.com */

:root {
	--tprm-bg: #F3F5F2;
	--tprm-paper: #FDFEFD;
	--tprm-raised: #F9FAF8;
	--tprm-sunken: #EAEDE8;
	--tprm-ink: #102821;
	--tprm-ink-band: #122B24;
	--tprm-ink-band-fg: #F2F5EF;
	--tprm-muted: #51615C;
	--tprm-line: #D6DDD4;
	--tprm-line-strong: #BEC8BC;
	--tprm-brand: #11695C;
	--tprm-brand-strong: #0B5146;
	--tprm-brand-soft: #E4F2EE;
	--tprm-radius: 10px;
	--tprm-shadow: 0 1px 0 rgb(29 51 40 / 0.03), 0 1px 2px rgb(29 51 40 / 0.04), 0 10px 24px -14px rgb(27 64 46 / 0.14);
	--tprm-shadow-lift: 0 1px 0 rgb(29 51 40 / 0.04), 0 2px 6px rgb(29 51 40 / 0.06), 0 24px 48px -24px rgb(27 64 46 / 0.22);
	--tprm-gutter: 16px;
	--tprm-header-h: 64px;
	--tprm-admin-bar: 0px;
	--tprm-measure: 680px;
	--tprm-wide: 1152px;
}
@media (min-width: 640px) {
	:root { --tprm-gutter: 24px; }
}
body.admin-bar { --tprm-admin-bar: 32px; }
@media (max-width: 782px) {
	body.admin-bar { --tprm-admin-bar: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar { --tprm-admin-bar: 0px; }
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--tprm-bg);
	color: var(--tprm-ink);
	font-feature-settings: "tnum" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
::selection { background: rgb(17 105 92 / 0.2); }
:where(a, button, summary, input, [tabindex]):focus-visible {
	outline: 2px solid var(--tprm-brand);
	outline-offset: 2px;
	border-radius: 6px;
}

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.tprm-main { margin: 0; }
.tprm-main > * { margin-block-start: 0; }
.tprm-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--tprm-wide) + 2 * var(--tprm-gutter));
	margin-inline: auto !important;
	padding-inline: var(--tprm-gutter);
}

.tprm-i {
	width: 20px; height: 20px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.tprm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 38px; padding: 0 16px; box-sizing: border-box;
	border-radius: 8px; border: 1px solid transparent;
	font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
	text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s;
}
.tprm-btn .tprm-i { width: 16px; height: 16px; }
.tprm-btn--primary { background: var(--tprm-brand); color: var(--tprm-paper) !important; box-shadow: var(--tprm-shadow); }
.tprm-btn--primary:hover { background: var(--tprm-brand-strong); }
.tprm-btn--secondary { background: var(--tprm-paper); border-color: var(--tprm-line-strong); color: var(--tprm-ink) !important; }
.tprm-btn--secondary:hover { background: var(--tprm-sunken); }
.tprm-btn--ghost { color: var(--tprm-muted) !important; font-weight: 500; }
.tprm-btn--ghost:hover { color: var(--tprm-ink) !important; }
.tprm-btn--light { background: var(--tprm-paper); color: var(--tprm-ink) !important; height: 46px; padding: 0 22px; }
.tprm-btn--light:hover { background: var(--tprm-brand-soft); }
.tprm-btn--outline-light { border-color: rgb(242 245 239 / 0.35); color: var(--tprm-ink-band-fg) !important; height: 46px; padding: 0 22px; }
.tprm-btn--outline-light:hover { border-color: rgb(242 245 239 / 0.7); }
.tprm-btn--block { display: flex; width: 100%; height: 44px; margin-top: 8px; }
.tprm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: var(--tprm-muted); cursor: pointer;
}
.tprm-icon-btn:hover { background: var(--tprm-sunken); color: var(--tprm-ink); }

/* Header */
.tprm-header-part { position: sticky; top: var(--tprm-admin-bar); z-index: 50; margin: 0 !important; }
.tprm-header {
	background: rgb(243 245 242 / 0.88);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--tprm-line);
}
.tprm-header__inner {
	display: flex; align-items: center; gap: 12px;
	max-width: var(--tprm-wide); height: var(--tprm-header-h);
	margin: 0 auto; padding: 0 var(--tprm-gutter);
}
.tprm-brand {
	display: inline-flex; align-items: center; gap: 10px; min-width: 0;
	color: var(--tprm-ink) !important; text-decoration: none !important;
}
.tprm-mark { display: block; flex: none; }
.tprm-brand__name {
	font-size: 15px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tprm-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.tprm-nav a {
	padding: 8px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 500; color: var(--tprm-muted) !important; text-decoration: none !important;
}
.tprm-nav a:hover { color: var(--tprm-ink) !important; }
.tprm-nav a.is-active { color: var(--tprm-ink) !important; font-weight: 700; box-shadow: inset 0 -2px 0 var(--tprm-brand); border-radius: 0; }
.tprm-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tprm-i--x, .tprm-menu-btn.is-open .tprm-i--menu { display: none; }
.tprm-menu-btn.is-open .tprm-i--x { display: block; }
.tprm-mobile-nav { display: grid; gap: 2px; padding: 10px var(--tprm-gutter) 16px; border-top: 1px solid var(--tprm-line); background: var(--tprm-paper); }
.tprm-mobile-nav[hidden] { display: none; }
.tprm-mobile-nav a:not(.tprm-btn) {
	padding: 11px 12px; border-radius: 8px;
	font-size: 15px; font-weight: 500; color: var(--tprm-ink) !important; text-decoration: none !important;
}
.tprm-mobile-nav a:not(.tprm-btn):hover { background: var(--tprm-sunken); }
.tprm-mobile-nav a.is-active { color: var(--tprm-brand) !important; font-weight: 700; }
@media (max-width: 639px) {
	.tprm-hide-sm { display: none !important; }
}
@media (min-width: 768px) {
	.tprm-header__inner { gap: 24px; }
	.tprm-nav { display: flex; }
	.tprm-header__actions { margin-left: 0; }
	.tprm-menu-btn { display: none; }
	.tprm-mobile-nav { display: none !important; }
}

/* Hero */
.tprm-hero {
	position: relative; overflow: hidden;
	padding: 56px 0 44px; border-bottom: 1px solid var(--tprm-line);
}
.tprm-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgb(214 221 212 / 0.5) 1px, transparent 1px),
		linear-gradient(90deg, rgb(214 221 212 / 0.5) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
	mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.tprm-hero > * { position: relative; }
@media (min-width: 1024px) {
	.tprm-hero { padding: 80px 0 64px; }
}
.tprm-hero .tprm-container > * { margin-block: 0; }
.tprm-kicker {
	margin: 0 0 14px !important;
	font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--tprm-brand);
}
.tprm-kicker a { color: inherit !important; text-decoration: none !important; }
.tprm-kicker a:hover { text-decoration: underline !important; }
.tprm-hero__title {
	max-width: 22ch;
	font-size: clamp(36px, 5vw, 56px) !important; font-weight: 800 !important;
	line-height: 1.06 !important; letter-spacing: -0.032em !important;
	text-wrap: balance;
}
.tprm-hero__lead, .tprm-hero .wp-block-term-description {
	max-width: 40rem; margin-top: 18px !important;
	font-size: 18px; line-height: 1.6; color: var(--tprm-muted);
}
.tprm-hero .wp-block-term-description p { margin: 0; }

/* Search */
.tprm-search { margin-top: 24px !important; max-width: 30rem; }
.tprm-search .wp-block-search__inside-wrapper { gap: 8px; border: 0 !important; padding: 0 !important; }
.tprm-search .wp-block-search__input {
	height: 44px; box-sizing: border-box; padding: 0 14px;
	border: 1px solid var(--tprm-line-strong); border-radius: 8px;
	background: var(--tprm-paper); color: var(--tprm-ink); font: inherit; font-size: 15px;
}
.tprm-search .wp-block-search__input:focus { outline: none; border-color: var(--tprm-brand); box-shadow: 0 0 0 3px rgb(17 105 92 / 0.18); }
.tprm-search .wp-block-search__button {
	height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 8px;
	background: var(--tprm-brand); color: var(--tprm-paper); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.tprm-search .wp-block-search__button:hover { background: var(--tprm-brand-strong); }
.tprm-404-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }

/* Post grid */
.tprm-section { padding-top: 40px; padding-bottom: 88px; }
@media (min-width: 1024px) {
	.tprm-section { padding-top: 56px; }
}
.tprm-posts { margin: 0; }
.wp-block-post-template.tprm-grid {
	display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px;
	margin: 0 !important; padding: 0; list-style: none;
}
@media (min-width: 640px) {
	.wp-block-post-template.tprm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.wp-block-post-template.tprm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.tprm-grid > li { margin: 0 !important; display: flex; }
.tprm-card {
	position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
	background: var(--tprm-paper); border: 1px solid var(--tprm-line); border-radius: var(--tprm-radius);
	box-shadow: var(--tprm-shadow); transition: box-shadow .15s, border-color .15s, transform .15s;
}
.tprm-card:hover { box-shadow: var(--tprm-shadow-lift); border-color: var(--tprm-line-strong); }
.tprm-card > * { margin: 0 !important; }
.tprm-card__media { border-bottom: 1px solid var(--tprm-line); background: var(--tprm-sunken); }
.tprm-card__media img { display: block; width: 100%; object-fit: cover; }
.tprm-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.tprm-card__body > * { margin: 0 !important; }
.tprm-card__date {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--tprm-muted); font-variant-numeric: tabular-nums;
}
.tprm-card__date::before {
	content: ""; width: 8px; height: 8px; border-radius: 999px; flex: none;
	background: var(--tprm-brand); box-shadow: 0 0 0 2px var(--tprm-paper), 0 0 0 3px var(--tprm-brand);
}
.tprm-card__title { font-size: 20px !important; font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: -0.015em !important; }
.tprm-card__title a { color: var(--tprm-ink) !important; text-decoration: none !important; }
.tprm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tprm-card__excerpt, .tprm-card__excerpt p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tprm-muted); }
.tprm-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.tprm-card__more {
	margin-top: auto !important; padding-top: 6px;
	font-size: 14px; font-weight: 700; color: var(--tprm-brand) !important; text-decoration: none !important;
}
.tprm-card__more::after { content: " \2192"; }
.tprm-pagination { margin-top: 40px !important; font-size: 14px; gap: 8px; }
.tprm-pagination a { color: var(--tprm-muted) !important; text-decoration: none !important; }
.tprm-pagination a:hover { color: var(--tprm-ink) !important; }
.tprm-pagination .page-numbers { padding: 5px 10px; border-radius: 8px; }
.tprm-pagination .page-numbers.current { background: var(--tprm-brand-soft); color: var(--tprm-brand); font-weight: 700; }
.tprm-empty { color: var(--tprm-muted); }

/* Single article */
.tprm-article { margin: 0; padding-top: 40px; }
@media (min-width: 1024px) {
	.tprm-article { padding-top: 64px; }
}
.tprm-article > * { margin-block: 0; }
.tprm-article__head, .tprm-prose, .tprm-tags, .tprm-postnav {
	box-sizing: border-box; max-width: calc(var(--tprm-measure) + 2 * var(--tprm-gutter));
	margin-inline: auto !important; padding-inline: var(--tprm-gutter);
}
.tprm-article__head > * { margin-block: 0; }
.tprm-back {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px;
	font-size: 14px; font-weight: 600; color: var(--tprm-muted) !important; text-decoration: none !important;
}
.tprm-back:hover { color: var(--tprm-ink) !important; }
.tprm-back .tprm-i { width: 14px; height: 14px; }
.tprm-article__head .tprm-kicker { margin-bottom: 12px !important; }
.tprm-article__title {
	font-size: clamp(34px, 4.6vw, 46px) !important; font-weight: 800 !important;
	line-height: 1.1 !important; letter-spacing: -0.03em !important; text-wrap: balance;
}
.tprm-meta {
	gap: 16px !important; margin-top: 20px !important; padding: 14px 0;
	border-top: 1px solid var(--tprm-line); border-bottom: 1px solid var(--tprm-line);
	font-size: 14px; color: var(--tprm-muted); font-variant-numeric: tabular-nums;
}
.tprm-meta > * { margin: 0 !important; }
.tprm-meta > * + *::before { content: "\00B7"; margin-right: 16px; color: var(--tprm-line-strong); }
.tprm-meta .wp-block-post-author-name { color: var(--tprm-ink); font-weight: 600; }
.tprm-meta a { color: inherit !important; text-decoration: none !important; }
.tprm-article__media {
	box-sizing: border-box; max-width: calc(860px + 2 * var(--tprm-gutter));
	margin: 32px auto 0 !important; padding-inline: var(--tprm-gutter);
}
.tprm-article__media img { display: block; width: 100%; height: auto; border-radius: var(--tprm-radius); border: 1px solid var(--tprm-line); }

.tprm-prose { margin-top: 32px !important; font-size: 18px; line-height: 1.75; color: #22362F; }
@media (max-width: 639px) {
	.tprm-prose { font-size: 17px; }
}
.tprm-prose > * { margin-block: 0 !important; }
.tprm-prose > * + * { margin-top: 1.25em !important; }
.tprm-prose > :where(h2, h3, h4, h5, h6) { color: var(--tprm-ink); scroll-margin-top: calc(var(--tprm-header-h) + var(--tprm-admin-bar) + 16px); }
.tprm-prose > h2 { margin-top: 2.1em !important; font-size: 28px; font-weight: 800; line-height: 1.22; letter-spacing: -0.022em; }
.tprm-prose > h3 { margin-top: 1.8em !important; font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
.tprm-prose > h4 { margin-top: 1.6em !important; font-size: 18px; font-weight: 700; line-height: 1.4; }
.tprm-prose > :where(h2, h3, h4) + * { margin-top: 0.6em !important; }
.tprm-prose strong { color: var(--tprm-ink); font-weight: 700; }
.tprm-prose a {
	color: var(--tprm-brand) !important; font-weight: 600;
	text-decoration: underline; text-decoration-color: rgb(17 105 92 / 0.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.tprm-prose a:hover { text-decoration-color: var(--tprm-brand); }
.tprm-prose :where(ul, ol) { padding-left: 1.4em; }
.tprm-prose li + li { margin-top: 0.4em; }
.tprm-prose li::marker { color: var(--tprm-brand); }
.tprm-prose ol > li::marker { font-weight: 700; font-variant-numeric: tabular-nums; }
.tprm-prose .wp-block-quote, .tprm-prose blockquote {
	margin-inline: 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--tprm-brand); font-size: 1.05em; color: var(--tprm-ink);
}
.tprm-prose blockquote p { margin: 0; }
.tprm-prose blockquote p + p { margin-top: 0.8em; }
.tprm-prose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-style: normal; color: var(--tprm-muted); }
.tprm-prose .wp-block-pullquote { border: 0; padding: 0; text-align: left; }
.tprm-prose :not(pre) > code {
	padding: 0.15em 0.4em; border-radius: 6px; border: 1px solid var(--tprm-line);
	background: var(--tprm-sunken); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em;
}
.tprm-prose pre { overflow-x: auto; }
.tprm-prose pre code { font-family: inherit; }
.tprm-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.tprm-prose figure { margin-inline: 0; }
.tprm-prose figcaption, .tprm-prose .wp-element-caption { margin-top: 10px; font-size: 13px; color: var(--tprm-muted); text-align: left; }
.tprm-prose .wp-block-image img { border: 1px solid var(--tprm-line); }
.tprm-prose hr, .tprm-prose .wp-block-separator { border: 0; border-top: 1px solid var(--tprm-line); margin-block: 2.5em !important; opacity: 1; }
.tprm-prose .wp-block-table { overflow-x: auto; }
.tprm-prose table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums;
	background: var(--tprm-paper); border-radius: var(--tprm-radius); overflow: hidden;
}
.tprm-prose .wp-block-table table { border: 1px solid var(--tprm-line); box-shadow: var(--tprm-shadow); }
.tprm-prose thead { border: 0; }
.tprm-prose th {
	padding: 10px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--tprm-line);
	background: var(--tprm-raised);
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tprm-muted);
}
.tprm-prose td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--tprm-line); vertical-align: top; }
.tprm-prose tbody tr:last-child td { border-bottom: 0; }
.tprm-prose .wp-block-table figcaption { text-align: left; }
.tprm-prose .wp-block-button__link { border-radius: 8px; font-weight: 600; text-decoration: none; color: var(--tprm-paper) !important; }

.tprm-tags { margin-top: 36px !important; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; }
.tprm-tags a {
	display: inline-flex; padding: 4px 10px; border-radius: 999px;
	border: 1px solid var(--tprm-line); background: var(--tprm-paper);
	font-size: 13px; font-weight: 600; color: var(--tprm-muted) !important; text-decoration: none !important;
}
.tprm-tags a:hover { border-color: var(--tprm-line-strong); color: var(--tprm-ink) !important; }
.tprm-tags .wp-block-post-terms__separator { display: none; }
.tprm-postnav { margin-top: 40px !important; padding-top: 20px !important; border-top: 1px solid var(--tprm-line); gap: 16px !important; font-size: 15px; }
.tprm-postnav:not(:has(a)) { display: none !important; }
.tprm-postnav > * { margin: 0 !important; }
.tprm-postnav a { color: var(--tprm-ink) !important; font-weight: 600; text-decoration: none !important; }
.tprm-postnav a:hover { color: var(--tprm-brand) !important; }

/* CTA band */
.tprm-cta { margin: 80px 0 0 !important; padding: 0 var(--tprm-gutter) 88px; }
.tprm-cta__inner {
	max-width: var(--tprm-wide); margin: 0 auto; box-sizing: border-box;
	padding: 40px 24px; border-radius: 14px; background: var(--tprm-ink-band); color: var(--tprm-ink-band-fg);
}
@media (min-width: 768px) {
	.tprm-cta__inner { padding: 48px 48px; }
}
.tprm-cta__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9FCFC2; }
.tprm-cta__title {
	max-width: 24ch; margin: 12px 0 0; color: var(--tprm-ink-band-fg) !important;
	font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em;
}
.tprm-cta__body { max-width: 40rem; margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: rgb(242 245 239 / 0.78); }
.tprm-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* Footer */
.tprm-footer-part { margin: 0 !important; }
.tprm-footer { background: var(--tprm-paper); border-top: 1px solid var(--tprm-line); }
.tprm-footer__grid {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
	max-width: var(--tprm-wide); margin: 0 auto; padding: 48px var(--tprm-gutter);
}
@media (min-width: 640px) {
	.tprm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.tprm-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.tprm-footer__about p { max-width: 24rem; margin: 16px 0 0; font-size: 14px; line-height: 1.65; color: var(--tprm-muted); }
.tprm-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tprm-muted); }
.tprm-footer__links { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tprm-footer__links a { font-size: 14px; color: rgb(16 40 33 / 0.82) !important; text-decoration: none !important; }
.tprm-footer__links a:hover { color: var(--tprm-brand) !important; }
.tprm-footer__bar { border-top: 1px solid var(--tprm-line); }
.tprm-footer__bar-inner {
	display: flex; flex-direction: column; gap: 6px;
	max-width: var(--tprm-wide); margin: 0 auto; padding: 18px var(--tprm-gutter);
	font-size: 12px; color: var(--tprm-muted);
}
@media (min-width: 640px) {
	.tprm-footer__bar-inner { flex-direction: row; justify-content: space-between; }
}
