/**
 * CFOA Opportunities Board.
 *
 * Restrained institutional styling: a serif display face for headings, a
 * neutral ink palette, generous rules and no decorative colour beyond a single
 * muted brass accent reserved for CFOA mentions. Everything is scoped under
 * .cfoa- so it does not fight the host theme.
 */

.cfoa-board,
.cfoa-teaser,
.cfoa-submit,
.cfoa-single {
	--cfoa-ink: #10203a;
	--cfoa-ink-soft: #44515f;
	--cfoa-muted: #78838f;
	--cfoa-rule: #dde1e7;
	--cfoa-rule-strong: #bcc4ce;
	--cfoa-surface: #ffffff;
	--cfoa-surface-alt: #f6f7f9;
	--cfoa-accent: #a8863a;
	--cfoa-accent-soft: #f8f4ea;

	color: var(--cfoa-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	max-width: 1120px;
	margin: 0 auto;
}

.cfoa-board *,
.cfoa-teaser *,
.cfoa-submit *,
.cfoa-single * {
	box-sizing: border-box;
}

/* Headings ---------------------------------------------------------------- */

.cfoa-teaser-heading,
.cfoa-teaser-subheading,
.cfoa-submit-heading,
.cfoa-single-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	color: var(--cfoa-ink);
	letter-spacing: -0.01em;
	margin: 0;
}

.cfoa-teaser-heading {
	font-size: 30px;
	line-height: 1.25;
}

.cfoa-teaser-subheading,
.cfoa-submit-heading {
	font-size: 21px;
	line-height: 1.3;
	margin-bottom: 12px;
}

/* Board header ------------------------------------------------------------ */

.cfoa-board-header {
	border-bottom: 2px solid var(--cfoa-ink);
	padding-bottom: 12px;
	margin-bottom: 20px;
}

.cfoa-board-meta {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.cfoa-board-count {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	line-height: 1;
}

.cfoa-board-count-label {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
}

.cfoa-board-mentions {
	margin-left: auto;
	font-size: 13px;
	color: var(--cfoa-accent);
	letter-spacing: 0.04em;
}

/* Filters ----------------------------------------------------------------- */

.cfoa-filters {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 14px 16px;
	align-items: end;
	padding: 18px;
	background: var(--cfoa-surface-alt);
	border: 1px solid var(--cfoa-rule);
	margin-bottom: 24px;
}

.cfoa-filter label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
	margin-bottom: 5px;
}

.cfoa-filter input[type="search"],
.cfoa-filter select {
	width: 100%;
	padding: 9px 11px;
	font-size: 14px;
	font-family: inherit;
	color: var(--cfoa-ink);
	background: var(--cfoa-surface);
	border: 1px solid var(--cfoa-rule-strong);
	border-radius: 0;
	appearance: none;
}

.cfoa-filter select {
	background-image: linear-gradient(45deg, transparent 50%, var(--cfoa-ink-soft) 50%), linear-gradient(135deg, var(--cfoa-ink-soft) 50%, transparent 50%);
	background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 32px;
}

.cfoa-filter input[type="search"]:focus,
.cfoa-filter select:focus {
	outline: 2px solid var(--cfoa-ink);
	outline-offset: 1px;
}

.cfoa-filter-toggle {
	grid-column: 1 / 3;
}

.cfoa-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cfoa-ink);
	cursor: pointer;
}

.cfoa-switch input {
	width: 16px;
	height: 16px;
	accent-color: var(--cfoa-accent);
}

.cfoa-filter-actions {
	grid-column: 3 / 5;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

/* Buttons ----------------------------------------------------------------- */

.cfoa-button {
	display: inline-block;
	padding: 10px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	border: 1px solid var(--cfoa-ink);
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.cfoa-button-primary {
	background: var(--cfoa-ink);
	color: #ffffff;
}

.cfoa-button-primary:hover,
.cfoa-button-primary:focus {
	background: #000000;
	color: #ffffff;
}

.cfoa-button-quiet {
	background: transparent;
	color: var(--cfoa-ink);
	border-color: var(--cfoa-rule-strong);
}

.cfoa-button-quiet:hover {
	border-color: var(--cfoa-ink);
}

.cfoa-button:focus-visible {
	outline: 2px solid var(--cfoa-accent);
	outline-offset: 2px;
}

/* Member sign in. Weighted to read as the door into the register rather than
   as an afterthought: brass rule, brass type, and a shackle that lifts on
   hover. It has to be the thing a non-member notices and cannot use. */

.cfoa-button-unlock {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--cfoa-surface);
	color: var(--cfoa-accent);
	border-color: var(--cfoa-accent);
	letter-spacing: 0.04em;
}

.cfoa-button-unlock:hover,
.cfoa-button-unlock:focus-visible {
	background: var(--cfoa-accent);
	color: #ffffff;
}

.cfoa-unlock-glyph {
	display: inline-flex;
	width: 15px;
	height: 15px;
}

.cfoa-unlock-glyph svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* The shackle is a separate path so it can lift out of the body. */
.cfoa-unlock-glyph svg path {
	transform-origin: 12px 10.5px;
	transition: transform 0.22s cubic-bezier( 0.34, 1.4, 0.64, 1 );
}

.cfoa-button-unlock:hover .cfoa-unlock-glyph svg path,
.cfoa-button-unlock:focus-visible .cfoa-unlock-glyph svg path {
	transform: translate( 2.5px, -2.5px ) rotate( 12deg );
}

@media ( prefers-reduced-motion: reduce ) {
	.cfoa-unlock-glyph svg path {
		transition: none;
	}

	.cfoa-button-unlock:hover .cfoa-unlock-glyph svg path,
	.cfoa-button-unlock:focus-visible .cfoa-unlock-glyph svg path {
		transform: none;
	}
}

.cfoa-button[disabled] {
	opacity: 0.4;
	cursor: default;
}

/* Listing cards ----------------------------------------------------------- */

.cfoa-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--cfoa-rule);
}

.cfoa-card {
	border-bottom: 1px solid var(--cfoa-rule);
	padding: 22px 0;
}

.cfoa-card-mention {
	border-left: 3px solid var(--cfoa-accent);
	padding-left: 18px;
	background: linear-gradient(90deg, var(--cfoa-accent-soft), transparent 55%);
}

.cfoa-card-flag {
	margin: 0 0 8px 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cfoa-accent);
}

.cfoa-card-body {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.cfoa-card-logo img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border: 1px solid var(--cfoa-rule);
	background: #ffffff;
}

.cfoa-card-main {
	flex: 1 1 auto;
	min-width: 0;
}

.cfoa-card-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
}

.cfoa-card-employer {
	margin: 3px 0 0 0;
	font-size: 15px;
	color: var(--cfoa-ink-soft);
}

.cfoa-card-facts {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 8px 0 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--cfoa-muted);
}

.cfoa-card-facts li + li::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: 14px;
	vertical-align: middle;
	background: var(--cfoa-rule-strong);
	border-radius: 50%;
}

.cfoa-card-summary {
	margin: 10px 0 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--cfoa-ink-soft);
	max-width: 68ch;
}

.cfoa-card-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0 0;
	padding: 0;
}

.cfoa-card-tags li {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cfoa-ink-soft);
	border: 1px solid var(--cfoa-rule-strong);
	padding: 3px 8px;
}

.cfoa-card-action {
	flex: 0 0 auto;
	padding-top: 2px;
}

/* Pagination -------------------------------------------------------------- */

.cfoa-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}

.cfoa-pagination-state {
	font-size: 13px;
	color: var(--cfoa-muted);
}

/* Empty and loading states ------------------------------------------------ */

.cfoa-empty {
	padding: 48px 24px;
	text-align: center;
	border: 1px solid var(--cfoa-rule);
	background: var(--cfoa-surface-alt);
}

.cfoa-empty p {
	margin: 0 0 6px 0;
}

.cfoa-muted {
	color: var(--cfoa-muted);
	font-size: 14px;
}

.cfoa-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.cfoa-board-footnote {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--cfoa-rule);
	font-size: 13px;
	color: var(--cfoa-muted);
}

/* Public register ------------------------------------------------------------
   The page is a register, so it is set like one: a masthead over a double
   rule, figures in oldstyle serif, and a ruled ledger with dot leaders and
   tabular counts, which is how contract listings have always been printed. */

.cfoa-locked-notice {
	border-left: 3px solid var(--cfoa-accent);
	background: var(--cfoa-accent-soft);
	padding: 12px 16px;
	margin-bottom: 28px;
}

.cfoa-locked-notice p {
	margin: 0;
	font-size: 14px;
}

.cfoa-eyebrow {
	margin: 0 0 10px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cfoa-accent);
}

.cfoa-masthead {
	position: relative;
	padding-bottom: 22px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--cfoa-rule);
}

/* The second, heavier rule of the pair. */
.cfoa-masthead::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 3px;
	background: var(--cfoa-ink);
}

.cfoa-teaser-heading {
	font-size: clamp( 28px, 3.4vw, 38px );
	line-height: 1.15;
}

.cfoa-teaser-lede {
	margin: 14px 0 0 0;
	max-width: 60ch;
	font-size: 17px;
	line-height: 1.62;
	color: var(--cfoa-ink-soft);
}

/* Figures. Sized to their content so two of them do not stretch to fill. */

.cfoa-figures {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0 44px;
	margin-bottom: 36px;
}

.cfoa-figure {
	position: relative;
	padding-right: 44px;
}

.cfoa-figure + .cfoa-figure::before {
	content: "";
	position: absolute;
	left: -44px;
	top: 4px;
	bottom: 6px;
	width: 1px;
	background: var(--cfoa-rule);
}

.cfoa-figure:last-child {
	padding-right: 0;
}

.cfoa-figure-value {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 44px;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--cfoa-ink);
}

.cfoa-figure-label {
	display: block;
	margin-top: 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
}

/* The ledger. */

.cfoa-ledger-head {
	margin: 0 0 2px 0;
	padding-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
	border-bottom: 1px solid var(--cfoa-ink);
}

.cfoa-ledger-block {
	margin-bottom: 40px;
}

/* Multi-column rather than grid, so the register reads down the first column
   and then down the second, the way a printed listing does. */
.cfoa-ledger {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 60px;
}

/* The dot leader is the only rule each row needs. A solid rule underneath it
   as well gave every line two horizontals and turned the block into noise. */
.cfoa-ledger-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 9px 0;
	font-size: 15px;
	break-inside: avoid;
}

.cfoa-ledger-label {
	color: var(--cfoa-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Dot leader, the device that makes label and figure read as one line. */
.cfoa-ledger-leader {
	flex: 1 1 auto;
	min-width: 18px;
	border-bottom: 1px dotted var(--cfoa-rule-strong);
	transform: translateY(-2px);
}

.cfoa-ledger-count {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--cfoa-ink);
}

/* Preview cards. */

.cfoa-teaser-previews {
	margin-bottom: 40px;
}

.cfoa-preview-list {
	list-style: none;
	margin: 20px 0 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--cfoa-rule);
	border: 1px solid var(--cfoa-rule);
}

.cfoa-preview-card {
	display: flex;
	flex-direction: column;
	background: var(--cfoa-surface);
	padding: 20px;
}

.cfoa-preview-mention {
	background: var(--cfoa-accent-soft);
}

.cfoa-preview-flag {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cfoa-accent);
}

.cfoa-preview-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--cfoa-ink);
}

.cfoa-preview-employer {
	margin: 5px 0 0 0;
	font-size: 14px;
	color: var(--cfoa-ink-soft);
}

.cfoa-preview-facts {
	list-style: none;
	margin: 10px 0 0 0;
	padding: 0;
	font-size: 13px;
	color: var(--cfoa-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 3px 12px;
}

.cfoa-preview-locked {
	margin: 16px 0 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--cfoa-rule);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
}

/* Membership panel. */

.cfoa-teaser-cta {
	border: 1px solid var(--cfoa-rule);
	border-top: 3px solid var(--cfoa-ink);
	padding: 30px 32px;
	background: var(--cfoa-surface-alt);
}

.cfoa-teaser-cta .cfoa-teaser-subheading {
	margin-bottom: 18px;
}

.cfoa-teaser-benefits {
	margin: 0 0 22px 0;
	padding: 0;
	list-style: none;
	max-width: 62ch;
}

.cfoa-teaser-benefits li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
	font-size: 15px;
	color: var(--cfoa-ink-soft);
}

.cfoa-teaser-benefits li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 1px;
	background: var(--cfoa-accent);
}

.cfoa-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cfoa-teaser-signin {
	margin: 14px 0 0 0;
	font-size: 13px;
	color: var(--cfoa-muted);
}

@media (max-width: 520px) {
	.cfoa-cta-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.cfoa-cta-actions .cfoa-button {
		justify-content: center;
		text-align: center;
	}
}

/* Single listing ---------------------------------------------------------- */

.cfoa-single-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	border-bottom: 2px solid var(--cfoa-ink);
	padding-bottom: 16px;
	margin-bottom: 20px;
}

.cfoa-single-logo {
	border: 1px solid var(--cfoa-rule);
	object-fit: contain;
	background: #ffffff;
}

.cfoa-single-title {
	font-size: 26px;
}

.cfoa-single-employer {
	margin: 4px 0 0 0;
	font-size: 16px;
	color: var(--cfoa-ink-soft);
}

.cfoa-single-facts {
	list-style: none;
	margin: 0 0 24px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0;
	border-top: 1px solid var(--cfoa-rule);
}

.cfoa-single-facts li {
	padding: 12px 2px;
	border-bottom: 1px solid var(--cfoa-rule);
}

.cfoa-fact-label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
	margin-bottom: 2px;
}

.cfoa-single-summary h2 {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 6px 0;
}

.cfoa-single-summary p {
	margin: 0;
	max-width: 70ch;
	color: var(--cfoa-ink-soft);
}

.cfoa-single-action {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--cfoa-rule);
}

.cfoa-single-action .cfoa-muted {
	margin-top: 10px;
}

.cfoa-single-back {
	margin-top: 24px;
	font-size: 14px;
}

/* Submission form --------------------------------------------------------- */

.cfoa-submit-lede {
	color: var(--cfoa-ink-soft);
	max-width: 68ch;
	margin-bottom: 24px;
}

.cfoa-form .cfoa-field {
	margin-bottom: 18px;
}

.cfoa-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cfoa-field label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cfoa-muted);
	margin-bottom: 5px;
}

.cfoa-field input[type="text"],
.cfoa-field input[type="email"],
.cfoa-field input[type="url"],
.cfoa-field select,
.cfoa-field textarea {
	width: 100%;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 15px;
	color: var(--cfoa-ink);
	background: var(--cfoa-surface);
	border: 1px solid var(--cfoa-rule-strong);
	border-radius: 0;
}

.cfoa-field textarea {
	resize: vertical;
	min-height: 140px;
}

.cfoa-field input:focus,
.cfoa-field select:focus,
.cfoa-field textarea:focus {
	outline: 2px solid var(--cfoa-ink);
	outline-offset: 1px;
}

.cfoa-field-help {
	margin: 5px 0 0 0;
	font-size: 12px;
	color: var(--cfoa-muted);
}

.cfoa-checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cfoa-ink);
	margin-bottom: 0;
}

.cfoa-checkbox input {
	margin-top: 3px;
	accent-color: var(--cfoa-accent);
}

.cfoa-field-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cfoa-notice {
	padding: 12px 16px;
	margin-bottom: 22px;
	border-left: 3px solid var(--cfoa-rule-strong);
	background: var(--cfoa-surface-alt);
	font-size: 14px;
}

.cfoa-notice-success {
	border-left-color: #2f6f3e;
}

.cfoa-notice-error {
	border-left-color: #96322c;
}

.cfoa-notice p {
	margin: 0;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 860px) {
	.cfoa-filters {
		grid-template-columns: 1fr 1fr;
	}

	.cfoa-filter-keyword,
	.cfoa-filter-toggle,
	.cfoa-filter-actions {
		grid-column: 1 / 3;
	}

	.cfoa-filter-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.cfoa-ledger {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	.cfoa-figures {
		gap: 0 28px;
	}

	.cfoa-figure {
		padding-right: 28px;
	}

	.cfoa-figure + .cfoa-figure::before {
		left: -28px;
	}

	.cfoa-figure-value {
		font-size: 34px;
	}
}

@media (max-width: 640px) {
	.cfoa-filters {
		grid-template-columns: 1fr;
	}

	.cfoa-filter-keyword,
	.cfoa-filter-toggle,
	.cfoa-filter-actions {
		grid-column: 1;
	}

	.cfoa-card-body {
		flex-direction: column;
		gap: 12px;
	}

	.cfoa-card-action {
		width: 100%;
	}

	.cfoa-card-action .cfoa-button {
		width: 100%;
		text-align: center;
	}

	.cfoa-field-row {
		grid-template-columns: 1fr;
	}

	.cfoa-single-header {
		flex-direction: column;
	}
}

/* Theme defence ---------------------------------------------------------------
   WordPress themes style the content area with selectors like
   `.entry-content p` and `.entry-content ul li`, which are two levels of
   specificity and beat a single class. Repeating the root class here raises
   these rules above the theme's without resorting to !important, and keeps the
   board looking the same whatever theme it is dropped into. */

.cfoa-teaser.cfoa-teaser,
.cfoa-board.cfoa-board,
.cfoa-single.cfoa-single,
.cfoa-submit.cfoa-submit {
	background: transparent;
	color: var(--cfoa-ink);
}

/* Themes commonly give block-level landmarks a dark band. Nothing inside the
   board should ever pick up a background from the theme. */
/* Painted white rather than left transparent. Transparent only wins if the
   dark band is on this element; opaque white also covers a band painted on a
   wrapper the plugin does not control. */
.cfoa-teaser.cfoa-teaser .cfoa-masthead,
.cfoa-teaser.cfoa-teaser .cfoa-ledger-block,
.cfoa-teaser.cfoa-teaser .cfoa-teaser-previews,
.cfoa-teaser.cfoa-teaser .cfoa-figures,
.cfoa-board.cfoa-board .cfoa-board-header,
.cfoa-single.cfoa-single .cfoa-single-header {
	background: var(--cfoa-surface);
	padding-left: 0;
	padding-right: 0;
}

.cfoa-teaser.cfoa-teaser,
.cfoa-board.cfoa-board,
.cfoa-single.cfoa-single {
	background: var(--cfoa-surface);
}

/* Lists. */
.cfoa-teaser.cfoa-teaser ul,
.cfoa-board.cfoa-board ul,
.cfoa-single.cfoa-single ul,
.cfoa-submit.cfoa-submit ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cfoa-teaser.cfoa-teaser li,
.cfoa-board.cfoa-board li,
.cfoa-single.cfoa-single li {
	margin: 0;
	list-style: none;
}

.cfoa-teaser.cfoa-teaser li::marker,
.cfoa-board.cfoa-board li::marker {
	content: "";
}

/* Type colour. */
.cfoa-teaser.cfoa-teaser .cfoa-teaser-heading,
.cfoa-teaser.cfoa-teaser .cfoa-teaser-subheading,
.cfoa-teaser.cfoa-teaser .cfoa-preview-title,
.cfoa-teaser.cfoa-teaser .cfoa-figure-value,
.cfoa-teaser.cfoa-teaser .cfoa-ledger-label,
.cfoa-teaser.cfoa-teaser .cfoa-ledger-count,
.cfoa-board.cfoa-board .cfoa-card-title,
.cfoa-board.cfoa-board .cfoa-board-count {
	color: var(--cfoa-ink);
}

.cfoa-teaser.cfoa-teaser .cfoa-teaser-lede,
.cfoa-teaser.cfoa-teaser .cfoa-preview-employer,
.cfoa-teaser.cfoa-teaser .cfoa-teaser-benefits li,
.cfoa-board.cfoa-board .cfoa-card-employer,
.cfoa-board.cfoa-board .cfoa-card-summary {
	color: var(--cfoa-ink-soft);
}

.cfoa-teaser.cfoa-teaser .cfoa-eyebrow,
.cfoa-teaser.cfoa-teaser .cfoa-preview-flag,
.cfoa-board.cfoa-board .cfoa-card-flag {
	color: var(--cfoa-accent);
}

.cfoa-teaser.cfoa-teaser .cfoa-figure-label,
.cfoa-teaser.cfoa-teaser .cfoa-ledger-head,
.cfoa-teaser.cfoa-teaser .cfoa-preview-facts,
.cfoa-teaser.cfoa-teaser .cfoa-preview-facts li,
.cfoa-teaser.cfoa-teaser .cfoa-preview-locked,
.cfoa-teaser.cfoa-teaser .cfoa-teaser-signin,
.cfoa-board.cfoa-board .cfoa-card-facts,
.cfoa-board.cfoa-board .cfoa-card-facts li {
	color: var(--cfoa-muted);
}

/* Buttons. Flex rather than inline-block so the label sits on the optical
   centre regardless of the theme's line-height, with a 44px touch target. */
.cfoa-teaser.cfoa-teaser .cfoa-button,
.cfoa-board.cfoa-board .cfoa-button,
.cfoa-single.cfoa-single .cfoa-button,
.cfoa-submit.cfoa-submit .cfoa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 22px;
	line-height: 1.2;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	text-decoration: none;
	font-family: inherit;
}

.cfoa-teaser.cfoa-teaser .cfoa-button-primary,
.cfoa-board.cfoa-board .cfoa-button-primary,
.cfoa-single.cfoa-single .cfoa-button-primary,
.cfoa-submit.cfoa-submit .cfoa-button-primary {
	background: var(--cfoa-ink);
	border-color: var(--cfoa-ink);
	color: #ffffff;
}

.cfoa-teaser.cfoa-teaser .cfoa-button-unlock {
	background: var(--cfoa-surface);
	border-color: var(--cfoa-accent);
	color: var(--cfoa-accent);
}

.cfoa-teaser.cfoa-teaser .cfoa-button-unlock:hover,
.cfoa-teaser.cfoa-teaser .cfoa-button-unlock:focus-visible {
	background: var(--cfoa-accent);
	color: #ffffff;
}

/* Links inside the board never take the theme's underline or colour. */
.cfoa-teaser.cfoa-teaser a.cfoa-button,
.cfoa-board.cfoa-board a.cfoa-button {
	text-decoration: none;
}

/* Headings, in case the theme sets a display colour or transform. */
.cfoa-teaser.cfoa-teaser h2,
.cfoa-teaser.cfoa-teaser h3,
.cfoa-single.cfoa-single h1,
.cfoa-single.cfoa-single h2 {
	text-transform: none;
	letter-spacing: -0.01em;
	margin-top: 0;
}
