/*
 * Oxford Capital theme styles.
 *
 * Every colour, font and size comes from CSS variables set in the Customizer
 * (see inc/dynamic-css.php). Base element styles use :where() so they carry
 * no specificity: block settings, Elementor and Additional CSS override them
 * without !important.
 */

/* ---------------------------------------------------------------- Tokens */
:root {
	--oc-gutter: clamp(24px, 4vw, 44px);
	--oc-section-space: clamp(56px, 6.5vw, var(--oc-section, 96px));
	--oc-rule: color-mix(in srgb, var(--oc-primary) 14%, transparent);
	--oc-hair: color-mix(in srgb, var(--oc-primary) 8%, transparent);
	--oc-h1-size: clamp(calc(var(--oc-h1) * .56), 5.4vw, var(--oc-h1));
	--oc-h2-size: clamp(calc(var(--oc-h2) * .55), 4vw, var(--oc-h2));
	--oc-h3-size: var(--oc-h3);
	--oc-error: #C8473B;

	/* Light context (default). Dark sections redefine these below. */
	--oc-ctx-heading: var(--oc-heading);
	--oc-ctx-text: var(--oc-text-soft);
	--oc-ctx-muted: var(--oc-muted);
	--oc-ctx-link: var(--oc-link);
	--oc-ctx-line: color-mix(in srgb, var(--oc-primary) 24%, transparent);
	--oc-ctx-rule: var(--oc-rule);
	--oc-ctx-hair: var(--oc-hair);
}

:where(.oc-dark, .is-style-oc-section-navy, .has-primary-background-color, .has-primary-dark-background-color, .wp-block-cover:not(.is-light), .oc-banner, .oc-mobile-panel) {
	--oc-ctx-heading: var(--oc-on-dark);
	--oc-ctx-text: color-mix(in srgb, var(--oc-on-dark) 82%, transparent);
	--oc-ctx-muted: color-mix(in srgb, var(--oc-on-dark) 58%, transparent);
	--oc-ctx-link: var(--oc-on-dark);
	--oc-ctx-line: color-mix(in srgb, var(--oc-on-dark) 30%, transparent);
	--oc-ctx-rule: color-mix(in srgb, var(--oc-on-dark) 16%, transparent);
	--oc-ctx-hair: color-mix(in srgb, var(--oc-on-dark) 10%, transparent);
	color: var(--oc-ctx-text);
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
	margin: 0;
	overflow-x: clip;
	background: var(--oc-bg);
	color: var(--oc-text);
	font-family: var(--oc-font-body);
	font-size: var(--oc-fs-base);
	line-height: var(--oc-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0 0 .5em;
	font-family: var(--oc-font-heading);
	font-weight: var(--oc-hw);
	letter-spacing: var(--oc-hls);
	line-height: 1.08;
	color: var(--oc-ctx-heading);
	text-wrap: balance;
}
:where(h1) { font-size: var(--oc-h1-size); letter-spacing: calc(var(--oc-hls) - .007em); line-height: 1.03; }
:where(h2) { font-size: var(--oc-h2-size); line-height: 1.06; }
:where(h3) { font-size: var(--oc-h3-size); font-weight: calc(var(--oc-hw) + 100); letter-spacing: -.02em; line-height: 1.25; }
:where(h4) { font-size: 19px; font-weight: calc(var(--oc-hw) + 100); letter-spacing: -.01em; line-height: 1.3; }
:where(h5, h6) { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }

:where(p) { margin: 0 0 1em; }
:where(p, li, dd, td, figcaption) { text-wrap: pretty; }
:where(a) { color: var(--oc-ctx-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(a:hover) { color: var(--oc-accent); }
:where(h1, h2, h3, h4, h5, h6) a { color: inherit; text-decoration: none; }
:where(h1, h2, h3, h4, h5, h6) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
:where(img, video, svg) { max-width: 100%; height: auto; }
:where(figure) { margin: 0; }
:where(hr) { border: 0; border-top: 1px solid var(--oc-ctx-rule); margin: 40px 0; }
:where(strong, b) { font-weight: 500; }
:where(blockquote) { margin: 0; }
:where(table) { border-collapse: collapse; width: 100%; }
:where(code, kbd, pre) { font-family: var(--oc-font-label); font-size: .9em; }
:where(::selection) { background: color-mix(in srgb, var(--oc-accent) 35%, transparent); }

:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.oc-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 16px; top: 8px; z-index: 100000; padding: 10px 16px;
	background: var(--oc-accent); color: var(--oc-button-text); font-size: 14px; text-decoration: none;
}

/* ---------------------------------------------------------------- Layout */
.oc-container {
	width: 100%;
	max-width: calc(var(--oc-container) + 2 * var(--oc-gutter));
	margin-inline: auto;
	padding-inline: var(--oc-gutter);
}
.oc-container--content { max-width: calc(var(--oc-content) + 2 * var(--oc-gutter)); }
.oc-container--wide { max-width: calc(var(--oc-container) + 2 * var(--oc-gutter)); }

.oc-entry {
	padding-inline: var(--oc-gutter);
	padding-block: var(--oc-section-space);
}
.oc-entry::after { content: ""; display: table; clear: both; }
.oc-entry > * { max-width: var(--oc-content); margin-inline: auto; margin-block: 0; }
.oc-entry > * + * { margin-block-start: 1.25em; }
.oc-entry > :is(h2, h3, h4) { margin-block-end: 0; }
.oc-entry > * + :is(h2, h3, h4) { margin-block-start: 1.8em; }
.oc-entry > :is(h2, h3, h4) + * { margin-block-start: .7em; }
.oc-entry > .alignwide { max-width: var(--oc-container); }
.oc-entry > .alignfull { max-width: none; margin-inline: calc(-1 * var(--oc-gutter)); }
.oc-entry > .alignfull + .alignfull,
.oc-entry > .alignfull:first-child { margin-block-start: 0; }
.oc-entry > .alignfull + :not(.alignfull),
.oc-entry > :not(.alignfull) + .alignfull { margin-block-start: clamp(40px, 5vw, 72px); }
.oc-entry > .alignleft { float: left; margin: .3em 1.6em 1em max(0px, calc((100% - var(--oc-content)) / 2)); max-width: 50%; }
.oc-entry > .alignright { float: right; margin: .3em max(0px, calc((100% - var(--oc-content)) / 2)) 1em 1.6em; max-width: 50%; }
.oc-entry > .aligncenter { margin-inline: auto; }
.oc-entry:has(> .alignfull:first-child) { padding-top: 0; }
.oc-entry:has(> .alignfull:last-child) { padding-bottom: 0; }
.oc-entry--flush { padding-block: 0; }
/* A full-width section at the very top of a page clears the transparent header. */
.oc-header-transparent .oc-entry > .wp-block-group.alignfull:first-child { padding-top: calc(var(--oc-header-h) + clamp(40px, 6vw, 96px)); }
.oc-header-transparent .oc-entry > .wp-block-cover.alignfull:first-child:not(.is-style-oc-hero) .wp-block-cover__inner-container { padding-top: var(--oc-header-h); }
/* Thin strip of facts under the hero. */
.oc-strip { padding-inline: var(--oc-gutter); border-bottom: 1px solid var(--oc-hair); }
.oc-strip .wp-block-columns { margin-block: 0; }
.oc-entry--narrow > :not(.alignfull):not(.alignwide) { max-width: min(var(--oc-content), 680px); }
.oc-entry > :where(p, ul, ol) { color: var(--oc-ctx-text); }
/* Headings written straight into a page or post (not inside a section) use article sizes. */
.oc-entry > h2.wp-block-heading:not([class*="-font-size"]) { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.oc-entry > h3.wp-block-heading:not([class*="-font-size"]) { font-size: 20px; }
.wp-block-column > .wp-block-details + .wp-block-heading { margin-top: 56px; }

.oc-layout-narrow .oc-entry > :not(.alignfull):not(.alignwide) { max-width: min(var(--oc-content), 680px); }
.oc-layout-wide .oc-entry > :not(.alignfull) { max-width: var(--oc-container); }
.oc-layout-full .oc-entry { padding: 0; }
.oc-layout-full .oc-entry > * { max-width: none; margin-inline: 0; }

/* Sidebar layout. */
.oc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
	padding-block: var(--oc-section-space);
}
.oc-layout--sidebar-left { grid-template-columns: 300px minmax(0, 1fr); }
.oc-layout--sidebar-left .oc-layout__primary { order: 2; }
.oc-layout .oc-entry { padding: 0; }
.oc-layout .oc-entry > * { max-width: none; margin-inline: 0; }
.oc-layout .oc-entry > .alignfull { margin-inline: 0; }
.oc-layout .oc-list-wrap { padding: 0; }
.oc-layout__sidebar .widget + .widget { margin-top: 40px; }
.oc-layout__sidebar .widget-title,
.oc-layout__sidebar .wp-block-heading { font-size: 18px; margin-bottom: 14px; }

/* Elementor pages run edge to edge and manage their own widths. */
.oc-elementor-page .oc-entry { padding: 0; }
.oc-entry > .elementor { max-width: none; margin-inline: 0; }
.oc-elementor-page .oc-entry > * { max-width: none; margin-inline: 0; }

/* --------------------------------------------------------------- Buttons */
.oc-button,
:where(.wp-element-button, .wp-block-button__link) {
	display: inline-block;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	font-family: var(--oc-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	padding: 16px 32px;
	border-radius: var(--oc-radius);
	background: var(--oc-button-bg);
	color: var(--oc-button-text);
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.oc-button:hover,
.oc-button:focus-visible { background: var(--oc-accent-hover); color: var(--oc-button-text); }
.oc-button[disabled] { opacity: .6; cursor: default; }
.oc-button--small { padding: 12px 22px; font-size: 15px; }

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--oc-ctx-heading);
	border: 0;
	box-shadow: inset 0 0 0 1px currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: color-mix(in srgb, var(--oc-ctx-heading) 8%, transparent); }
.wp-block-button.is-style-oc-outline-light .wp-block-button__link {
	background: transparent;
	color: var(--oc-on-dark);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--oc-on-dark) 42%, transparent);
}
.wp-block-button.is-style-oc-outline-light .wp-block-button__link:hover { background: color-mix(in srgb, var(--oc-on-dark) 12%, transparent); }
.wp-block-button.is-style-oc-text .wp-block-button__link,
.oc-text-link {
	display: inline-block;
	padding: 0 0 2px;
	background: none;
	border-radius: 0;
	box-shadow: none;
	color: var(--oc-ctx-heading);
	font-family: var(--oc-font-label);
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.wp-block-button.is-style-oc-text .wp-block-button__link:hover,
.oc-text-link:hover { color: var(--oc-accent); background: none; }
.wp-block-buttons { gap: 12px; }

/* ---------------------------------------------------------------- Header */
.oc-masthead {
	position: relative;
	z-index: 100;
	background: var(--oc-header-bg);
	color: var(--oc-header-text);
	transition: background-color .25s ease, box-shadow .25s ease;
}
.oc-header-sticky .oc-masthead { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.oc-header-transparent .oc-masthead {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	background: transparent;
}
.oc-header-transparent.oc-header-sticky .oc-masthead { position: fixed; }
.oc-masthead.is-scrolled,
.oc-masthead.is-open { background: var(--oc-header-bg); }
.oc-masthead.is-scrolled { box-shadow: 0 1px 0 color-mix(in srgb, var(--oc-header-text) 10%, transparent); }

.oc-topbar {
	background: var(--oc-primary-dark);
	color: color-mix(in srgb, var(--oc-on-dark) 85%, transparent);
	font-size: 13px;
	line-height: 1.5;
	padding-block: 9px;
	text-align: center;
}
.oc-topbar a { color: var(--oc-on-dark); }
.oc-topbar p { margin: 0; }

.oc-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--oc-header-h);
}
.oc-brand { flex: 0 0 auto; line-height: 1; }
.oc-brand .custom-logo-link { display: block; }
.oc-brand .custom-logo { display: block; width: var(--oc-logo-w); max-width: 100%; height: auto; max-height: calc(var(--oc-header-h) - 20px); object-fit: contain; object-position: left center; }
.oc-brand__title { font-size: 20px; color: var(--oc-header-text); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.oc-brand__title:hover { color: var(--oc-header-text); }

.oc-nav { margin-left: auto; }
.oc-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.oc-menu li { position: relative; }
.oc-menu a {
	display: block;
	padding-block: 8px;
	color: color-mix(in srgb, var(--oc-header-text) 78%, transparent);
	font-size: var(--oc-menu-fs);
	text-decoration: none;
	white-space: nowrap;
}
.oc-menu a:hover,
.oc-menu .current-menu-item > a,
.oc-menu .current-menu-ancestor > a,
.oc-menu .current_page_parent > a { color: var(--oc-header-text); }
.oc-menu > .current-menu-item > a,
.oc-menu > .current-menu-ancestor > a,
.oc-menu > .current_page_parent > a { box-shadow: inset 0 -1px 0 var(--oc-accent); }
.oc-menu .menu-item-has-children > a { padding-right: 14px; }
.oc-menu .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	opacity: .7;
}
.oc-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 230px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	background: var(--oc-header-bg);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
	border-radius: var(--oc-radius);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 10;
}
.oc-menu .sub-menu .sub-menu { top: -10px; left: 100%; }
.oc-menu li:hover > .sub-menu,
.oc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.oc-menu .sub-menu a { padding: 9px 20px; white-space: normal; }
.oc-menu .sub-menu .menu-item-has-children > a::after { right: 14px; transform: rotate(-45deg); }

.oc-header__actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.oc-header__cta { padding: 12px 22px; font-size: 14.5px; }
.oc-header__search {
	color: color-mix(in srgb, var(--oc-header-text) 78%, transparent);
	font-size: var(--oc-menu-fs);
	text-decoration: none;
}
.oc-header__search:hover { color: var(--oc-header-text); }

.oc-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	color: var(--oc-header-text);
	font-family: var(--oc-font-label);
	font-size: 12.5px;
	padding: 10px 0 10px 4px;
	cursor: pointer;
}
.oc-menu-toggle::after {
	content: "";
	width: 18px;
	height: 9px;
	border-top: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
}
.oc-menu-toggle[aria-expanded="true"]::after { height: 1px; border-bottom: 0; transform: translateY(1px); }

.oc-header-logo-left-menu-center .oc-nav { flex: 1 1 auto; margin-left: 0; display: flex; justify-content: center; }
.oc-header-logo-center .oc-header__inner { flex-wrap: wrap; justify-content: center; row-gap: 0; padding-block: 14px; }
.oc-header-logo-center .oc-brand { flex: 1 0 100%; display: flex; justify-content: center; }
.oc-header-logo-center .oc-brand .custom-logo { object-position: center; }
.oc-header-logo-center .oc-nav { margin: 6px 0 0; }
.oc-header-logo-center .oc-header__actions { position: absolute; right: var(--oc-gutter); top: 14px; }

.oc-mobile-panel {
	background: var(--oc-primary-dark);
	border-top: 1px solid color-mix(in srgb, var(--oc-on-dark) 12%, transparent);
	max-height: calc(100vh - var(--oc-header-h) - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
}
.oc-mobile-panel[hidden] { display: none; }
.oc-mobile-panel .oc-container { padding-block: 8px 30px; }
.oc-mobile-menu, .oc-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.oc-mobile-menu li { position: relative; border-bottom: 1px solid color-mix(in srgb, var(--oc-on-dark) 10%, transparent); }
.oc-mobile-menu a {
	display: block;
	padding: 14px 44px 14px 0;
	color: var(--oc-on-dark);
	font-size: 21px;
	font-weight: 300;
	text-decoration: none;
}
.oc-mobile-menu .current-menu-item > a { color: var(--oc-accent); }
.oc-mobile-menu .sub-menu { padding-left: 16px; border-top: 1px solid color-mix(in srgb, var(--oc-on-dark) 10%, transparent); }
.oc-mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.oc-mobile-menu .sub-menu a { font-size: 17px; padding-block: 11px; }
.oc-mobile-menu .sub-menu[hidden] { display: none; }
.oc-submenu-toggle {
	position: absolute;
	right: 0;
	top: 6px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	color: var(--oc-on-dark);
	cursor: pointer;
	font-family: var(--oc-font-label);
	font-size: 20px;
	line-height: 1;
}
.oc-header__cta--mobile { display: inline-block; margin-top: 24px; }
.oc-mobile-panel__search { margin-top: 24px; }

/* ---------------------------------------------------------- Title areas */
.oc-banner {
	position: relative;
	overflow: hidden;
	background: var(--oc-primary);
}
.oc-banner__media { position: absolute; inset: 0; }
.oc-banner__img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.oc-banner__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(82deg,
		color-mix(in srgb, var(--oc-primary-dark) 94%, transparent) 0%,
		color-mix(in srgb, var(--oc-primary-dark) 80%, transparent) 46%,
		color-mix(in srgb, var(--oc-primary-dark) 28%, transparent) 100%);
}
.oc-banner__inner {
	position: relative;
	z-index: 2;
	padding-top: clamp(56px, 7vw, 110px);
	padding-bottom: clamp(56px, 6vw, 88px);
}
.oc-header-transparent .oc-banner__inner { padding-top: calc(var(--oc-header-h) + clamp(48px, 7vw, 108px)); }
.oc-banner--image .oc-banner__inner { min-height: clamp(440px, 48vw, 580px); display: flex; flex-direction: column; justify-content: flex-end; }
.oc-banner__title {
	margin: 0;
	max-width: 17ch;
	font-size: clamp(36px, 5vw, calc(var(--oc-h1) * .98));
	line-height: 1.04;
	color: var(--oc-on-dark);
}
.oc-banner__lead {
	margin: 24px 0 0;
	max-width: 48ch;
	font-size: 19px;
	line-height: 1.58;
	font-weight: 300;
	color: color-mix(in srgb, var(--oc-on-dark) 80%, transparent);
}
.oc-banner__meta { margin: 22px 0 0; font-family: var(--oc-font-label); font-size: 12.5px; color: color-mix(in srgb, var(--oc-on-dark) 62%, transparent); }
.oc-banner__actions { margin: 30px 0 0; }
.oc-banner .oc-text-link { color: color-mix(in srgb, var(--oc-on-dark) 85%, transparent); }
.oc-search-term { color: var(--oc-accent); }

.oc-simple-title .oc-banner__inner { padding-top: clamp(44px, 5vw, 76px); padding-bottom: 0; }
.oc-simple-title .oc-banner__title { color: var(--oc-heading); font-size: clamp(34px, 4.4vw, 56px); }
.oc-simple-title .oc-banner__lead { color: var(--oc-text-soft); }
.oc-simple-title .oc-banner__meta { color: var(--oc-muted); }
.oc-title-simple .oc-entry { padding-top: clamp(32px, 4vw, 56px); }

/* ------------------------------------------------------- Shared elements */
.oc-kicker,
p.is-style-oc-kicker,
.wp-block-heading.is-style-oc-kicker {
	margin: 0 0 20px;
	font-family: var(--oc-font-label);
	font-size: var(--oc-label-size);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: var(--oc-label-tracking);
	text-transform: var(--oc-label-transform);
	color: var(--oc-accent);
}
p.is-style-oc-lead {
	font-size: 19px;
	line-height: 1.58;
	font-weight: 300;
	max-width: 50ch;
	color: var(--oc-ctx-text);
}
p.is-style-oc-fine-print {
	font-family: var(--oc-font-label);
	font-size: 11.5px;
	line-height: 1.8;
	color: var(--oc-ctx-muted);
	max-width: 66ch;
}
.wp-block-heading.is-style-oc-display {
	font-size: clamp(calc(var(--oc-h1) * .6), 5.6vw, calc(var(--oc-h1) * 1.12));
	letter-spacing: calc(var(--oc-hls) - .007em);
	line-height: 1.02;
	max-width: 14ch;
}

/* Sections (Group block styles). */
.wp-block-group.is-style-oc-section,
.wp-block-group.is-style-oc-section-cream,
.wp-block-group.is-style-oc-section-navy {
	padding-block: var(--oc-section-space);
	padding-inline: var(--oc-gutter);
}
.wp-block-group.is-style-oc-section-cream { background: var(--oc-surface); border-top: 1px solid var(--oc-hair); }
.wp-block-group.is-style-oc-section-navy { background: var(--oc-primary); }
.wp-block-group.is-style-oc-section + .wp-block-group.is-style-oc-section { border-top: 1px solid var(--oc-hair); }
.wp-block-group.is-style-oc-card {
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--oc-ctx-rule);
	border-radius: var(--oc-radius);
}
:where(.wp-block-group.is-style-oc-section, .wp-block-group.is-style-oc-section-cream, .wp-block-group.is-style-oc-section-navy) > :where(*):first-child { margin-top: 0; }
/* Text inside a section's wide inner group keeps a readable line length. */
.wp-block-group.alignwide > h2:not(.has-x-large-font-size):not(.has-huge-font-size) { max-width: 16ch; }
.wp-block-group.alignwide > h1 { max-width: 17ch; }
.wp-block-group.alignwide > p:not(.is-style-oc-fine-print):not(.is-style-oc-lead),
.wp-block-column > p:not(.is-style-oc-fine-print) { max-width: 62ch; }
.wp-block-group.alignwide > .wp-block-table { max-width: 880px; }
.wp-block-group.alignwide > .wp-block-columns { margin-top: clamp(36px, 4.5vw, 52px); }
.wp-block-group.alignwide > .wp-block-columns:first-child { margin-top: 0; }
.wp-block-column > h2.has-x-large-font-size { max-width: 14ch; }

/* Cover: hero and image band. */
.wp-block-cover { color: var(--oc-ctx-text); }
.wp-block-cover .wp-block-cover__inner-container { width: 100%; max-width: calc(var(--oc-container) + 2 * var(--oc-gutter)); margin-inline: auto; padding-inline: var(--oc-gutter); }
.wp-block-cover.alignfull { padding-inline: 0; }
.wp-block-cover.is-style-oc-hero { min-height: min(88vh, 760px); align-items: flex-end; padding-block: 0; }
.wp-block-cover.is-style-oc-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 42%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--oc-primary-dark) 60%, transparent) 0%, color-mix(in srgb, var(--oc-primary-dark) 0%, transparent) 100%);
}
.wp-block-cover.is-style-oc-hero .wp-block-cover__inner-container { padding-top: calc(var(--oc-header-h) + 100px); padding-bottom: 72px; }
.wp-block-cover.is-style-oc-hero h1 { max-width: 14ch; color: var(--oc-on-dark); }
.wp-block-cover.is-style-oc-hero p { max-width: 40ch; }
.wp-block-cover.is-style-oc-hero p.is-style-oc-lead { color: color-mix(in srgb, var(--oc-on-dark) 85%, transparent); }
.wp-block-cover.is-style-oc-hero p.is-style-oc-fine-print { max-width: 66ch; color: color-mix(in srgb, var(--oc-on-dark) 55%, transparent); }
.wp-block-cover.is-style-oc-hero .wp-block-buttons { margin-top: 40px; }
.wp-block-cover.is-style-oc-band { min-height: clamp(340px, 42vw, 520px); padding-block: 60px; }
.wp-block-cover.is-style-oc-band h2 { max-width: 18ch; color: var(--oc-on-dark); }
.wp-block-cover.is-style-oc-band p { max-width: 44ch; }

/* Lists. */
ol.is-style-oc-steps,
ul.is-style-oc-steps {
	list-style: none;
	margin-left: 0;
	padding: 0;
	counter-reset: oc-step;
	border-top: 1px solid var(--oc-ctx-rule);
}
.is-style-oc-steps > li {
	counter-increment: oc-step;
	position: relative;
	padding: 22px 0 22px 56px;
	border-bottom: 1px solid var(--oc-ctx-hair);
	color: var(--oc-ctx-text);
	font-size: 16px;
}
.is-style-oc-steps > li::before {
	content: counter(oc-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 27px;
	font-family: var(--oc-font-label);
	font-size: 12px;
	color: var(--oc-accent);
}
.is-style-oc-steps > li strong { display: block; margin-bottom: 6px; font-size: 19px; font-weight: 400; letter-spacing: -.01em; color: var(--oc-ctx-heading); }
.is-style-oc-plain { list-style: none; padding-left: 0; }
.is-style-oc-plain > li + li { margin-top: 8px; }

/* Terms table. */
.wp-block-table.is-style-oc-terms { margin-inline: 0; }
.wp-block-group.alignwide > * + .wp-block-table.is-style-oc-terms { margin-top: clamp(32px, 4vw, 44px); }
.wp-block-group.alignwide > .wp-block-table.is-style-oc-terms + p { margin-top: 34px; }
.wp-block-table.is-style-oc-terms table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--oc-ctx-rule); }
.wp-block-table.is-style-oc-terms td,
.wp-block-table.is-style-oc-terms th {
	border: 0;
	border-bottom: 1px solid var(--oc-ctx-hair);
	padding: 22px 0;
	vertical-align: top;
	text-align: left;
	font-size: 16px;
	line-height: 1.6;
	color: var(--oc-ctx-text);
}
.wp-block-table.is-style-oc-terms td:first-child,
.wp-block-table.is-style-oc-terms th:first-child {
	width: 34%;
	max-width: 240px;
	padding-right: 34px;
	font-family: var(--oc-font-label);
	font-size: 13px;
	font-weight: 400;
	color: var(--oc-ctx-heading);
}
.wp-block-table.is-style-oc-terms thead { border: 0; }
.wp-block-table.is-style-oc-terms figcaption { margin-top: 16px; font-size: 14px; color: var(--oc-ctx-muted); text-align: left; }

/* Questions. */
.wp-block-details.is-style-oc-faq { border-bottom: 1px solid var(--oc-ctx-hair); margin-block-start: 0; }
.wp-block-details.is-style-oc-faq + .wp-block-details.is-style-oc-faq { margin-block-start: 0; }
:not(.wp-block-details.is-style-oc-faq) + .wp-block-details.is-style-oc-faq { border-top: 1px solid var(--oc-ctx-rule); }
.wp-block-details.is-style-oc-faq summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 20px 44px 20px 0;
	font-size: 18px;
	line-height: 1.4;
	color: var(--oc-ctx-heading);
}
.wp-block-details.is-style-oc-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-oc-faq summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 17px;
	font-family: var(--oc-font-label);
	font-size: 20px;
	color: var(--oc-accent);
}
.wp-block-details.is-style-oc-faq[open] summary::after { content: "\2212"; }
.wp-block-details.is-style-oc-faq > :not(summary) { max-width: 64ch; color: var(--oc-ctx-text); font-size: 16.5px; }
.wp-block-details.is-style-oc-faq > :last-child { padding-bottom: 24px; margin-bottom: 0; }

/* Pull quote. */
.wp-block-quote.is-style-oc-pull {
	margin-block: 36px;
	padding: 0 0 0 22px;
	border: 0;
	border-left: 2px solid var(--oc-accent);
	max-width: 42ch;
	font-size: 20px;
	line-height: 1.45;
	font-weight: 300;
	color: var(--oc-ctx-heading);
}
.wp-block-quote.is-style-oc-pull p { margin: 0; color: inherit; }
.wp-block-quote.is-style-oc-pull cite { display: block; margin-top: 12px; font-family: var(--oc-font-label); font-size: 12px; font-style: normal; color: var(--oc-ctx-muted); }

/* Columns. */
.wp-block-columns.is-style-oc-divided { gap: 0; }
.wp-block-columns.is-style-oc-divided > .wp-block-column { padding: 30px; border-right: 1px solid var(--oc-ctx-hair); }
.wp-block-columns.is-style-oc-divided > .wp-block-column:first-child { padding-left: 0; }
.wp-block-columns.is-style-oc-divided > .wp-block-column:last-child { border-right: 0; padding-right: 0; }
.wp-block-columns.is-style-oc-mosaic { gap: 18px; }
.wp-block-columns.is-style-oc-mosaic > .wp-block-column:nth-child(2) { margin-top: 44px; }
.wp-block-columns.is-style-oc-mosaic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Images. */
.wp-block-image img { border-radius: var(--oc-radius); }
.wp-block-image.is-style-oc-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wp-block-image.is-style-oc-landscape img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-image figcaption,
.wp-element-caption { margin-top: 14px; font-family: var(--oc-font-label); font-size: 11.5px; line-height: 1.7; color: var(--oc-ctx-muted); text-align: left; }

/* Small rhythm fixes inside columns and groups. */
.wp-block-column > :first-child,
.wp-block-group > :first-child { margin-top: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-column > :where(p, ul, ol) { color: var(--oc-ctx-text); }
.wp-block-separator { border: 0; border-top: 1px solid var(--oc-ctx-rule); opacity: 1; }

/* -------------------------------------------------------------- Calculator */
.oc-calc__label { display: block; margin-bottom: 12px; font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-ctx-muted); }
.oc-calc__amount { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.1; color: var(--oc-ctx-heading); letter-spacing: -.038em; font-variant-numeric: tabular-nums; font-weight: var(--oc-hw); }
.oc-calc__range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 2px;
	margin: 34px 0 10px;
	background: color-mix(in srgb, var(--oc-ctx-heading) 22%, transparent);
	outline: none;
}
.oc-calc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--oc-primary);
	border: 7px solid var(--oc-surface);
	box-shadow: 0 0 0 1px var(--oc-primary);
	cursor: pointer;
}
.oc-calc__range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--oc-primary);
	border: 7px solid var(--oc-surface);
	box-shadow: 0 0 0 1px var(--oc-primary);
	cursor: pointer;
}
.oc-calc__range:focus-visible { outline: 2px solid var(--oc-accent); outline-offset: 10px; }
.oc-calc__ends { display: flex; justify-content: space-between; font-family: var(--oc-font-label); font-size: 11.5px; color: var(--oc-ctx-muted); }
.oc-calc__result { margin: 42px 0 0; padding-top: 30px; border-top: 1px solid var(--oc-ctx-rule); }
.oc-calc__result dt { font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-ctx-muted); }
.oc-calc__result dd { margin: 12px 0 0; font-size: clamp(40px, 5vw, 62px); line-height: 1.05; color: var(--oc-ctx-heading); letter-spacing: -.04em; font-variant-numeric: tabular-nums; font-weight: var(--oc-hw); }
.oc-calc__caveat { margin: 28px 0 0; max-width: 64ch; font-family: var(--oc-font-label); font-size: 11.5px; line-height: 1.8; color: var(--oc-ctx-muted); }

/* ------------------------------------------------------------------ Forms */
.oc-form {
	--oc-f-text: var(--oc-text);
	--oc-f-label: var(--oc-muted);
	--oc-f-line: color-mix(in srgb, var(--oc-primary) 26%, transparent);
	position: relative;
	max-width: 620px;
}
:where(.oc-dark, .is-style-oc-section-navy, .has-primary-background-color, .has-primary-dark-background-color, .wp-block-cover:not(.is-light)) .oc-form,
.oc-form--dark {
	--oc-f-text: var(--oc-on-dark);
	--oc-f-label: color-mix(in srgb, var(--oc-on-dark) 62%, transparent);
	--oc-f-line: color-mix(in srgb, var(--oc-on-dark) 30%, transparent);
}
.oc-form--light {
	--oc-f-text: var(--oc-text);
	--oc-f-label: var(--oc-muted);
	--oc-f-line: color-mix(in srgb, var(--oc-primary) 26%, transparent);
}
.oc-form label {
	display: block;
	margin: 22px 0 8px;
	font-family: var(--oc-font-label);
	font-size: 12px;
	line-height: 1.4;
	color: var(--oc-f-label);
}
.oc-form input[type="text"],
.oc-form input[type="email"],
.oc-form input[type="tel"],
.oc-form select,
.oc-form textarea {
	display: block;
	width: 100%;
	font-family: var(--oc-font-body);
	font-size: 16px;
	color: var(--oc-f-text);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--oc-f-line);
	border-radius: 0;
	padding: 10px 0;
	transition: border-color .15s ease;
}
.oc-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 28px;
	background-image: linear-gradient(45deg, transparent 50%, var(--oc-f-label) 50%), linear-gradient(135deg, var(--oc-f-label) 50%, transparent 50%);
	background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.oc-form select option { color: var(--oc-text); background: #fff; }
.oc-form textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.oc-form input:focus,
.oc-form select:focus,
.oc-form textarea:focus { border-bottom-color: var(--oc-accent); outline: none; box-shadow: 0 1px 0 var(--oc-accent); }
.oc-form [aria-invalid="true"] { border-bottom-color: var(--oc-error); }
.oc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.oc-form__check { display: flex; gap: 12px; margin-top: 30px; max-width: 52ch; }
.oc-form__check + .oc-form__check { margin-top: 16px; }
.oc-form__check input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--oc-accent); }
.oc-form__check label { margin: 0; font-family: var(--oc-font-body); font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--oc-f-text) 85%, transparent); }
.oc-form__check.is-invalid label { color: var(--oc-error); }
.oc-form__submit { margin-top: 28px; }
.oc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oc-form__status { margin: 16px 0 0; min-height: 1.2em; font-family: var(--oc-font-label); font-size: 12.5px; color: var(--oc-f-text); }
.oc-form__status.is-error { color: var(--oc-error); }
:where(.oc-dark, .is-style-oc-section-navy, .has-primary-background-color) .oc-form__status.is-error { color: #F2A391; }
.oc-form__note { margin: 18px 0 0; max-width: 52ch; font-size: 13px; line-height: 1.6; color: var(--oc-f-label); }
.oc-form__note a { color: var(--oc-f-text); }
.oc-form__done { margin: 0; padding: 22px 0; font-family: var(--oc-font-label); font-size: 13px; color: var(--oc-ctx-heading); }

.oc-form--subscribe { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; max-width: 540px; }
.oc-form--subscribe .oc-form__field { flex: 1 1 240px; }
.oc-form--subscribe label { margin-top: 0; }
.oc-form--subscribe .oc-form__submit { margin-top: 12px; padding: 12px 22px; font-size: 15px; background: var(--oc-primary); color: var(--oc-on-dark); }
.oc-form--subscribe .oc-form__submit:hover { background: var(--oc-primary-dark); color: var(--oc-on-dark); }
.oc-form--subscribe .oc-form__status { flex-basis: 100%; }

/* ---------------------------------------------------- Posts: cards, rows */
.oc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.oc-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oc-cards--ruled { border-top: 1px solid var(--oc-primary); padding-top: 8px; }
.oc-card__link { display: block; height: 100%; padding-top: 26px; color: inherit; text-decoration: none; }
.oc-card__media { display: block; margin-bottom: 20px; }
.oc-card__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--oc-radius); }
.oc-card__meta { display: block; font-family: var(--oc-font-label); font-size: 11.5px; color: var(--oc-ctx-muted); }
.oc-card__title { display: block; margin-top: 14px; font-size: 19px; line-height: 1.28; letter-spacing: -.015em; color: var(--oc-ctx-heading); }
.oc-card__excerpt { display: block; margin-top: 12px; font-size: 15.5px; line-height: 1.58; color: var(--oc-ctx-text); }
.oc-card__go { display: inline-block; margin-top: 18px; font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-ctx-muted); }
.oc-card__link:hover .oc-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.oc-card__link:hover .oc-card__go { color: var(--oc-ctx-heading); }

.oc-rows { border-top: 1px solid var(--oc-primary); }
.oc-row__link {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) auto;
	gap: 28px;
	align-items: baseline;
	padding: 24px 0;
	border-bottom: 1px solid var(--oc-ctx-hair);
	color: inherit;
	text-decoration: none;
}
.oc-row__date { font-family: var(--oc-font-label); font-size: 12px; line-height: 1.6; color: var(--oc-ctx-muted); }
.oc-row__title { display: block; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; color: var(--oc-ctx-heading); }
.oc-row__excerpt { display: block; margin-top: 8px; max-width: 62ch; font-size: 15.5px; line-height: 1.58; color: var(--oc-ctx-text); }
.oc-row__go { font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-ctx-muted); }
.oc-row__link:hover .oc-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.oc-latest__more { margin: 30px 0 0; }
.oc-latest__empty { color: var(--oc-ctx-muted); }

.oc-list-wrap { padding-block: clamp(44px, 5.5vw, 84px) var(--oc-section-space); }
.oc-filter ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0 0 30px; padding: 0; }
.oc-filter a { font-family: var(--oc-font-label); font-size: 13px; color: var(--oc-ctx-text); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.oc-filter a:hover { color: var(--oc-ctx-heading); }
.oc-filter a[aria-current="page"] { color: var(--oc-ctx-heading); border-bottom-color: var(--oc-accent); }

.oc-pagination { margin-top: 44px; }
.oc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.oc-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 9px 12px;
	border: 1px solid var(--oc-ctx-rule);
	border-radius: var(--oc-radius);
	font-family: var(--oc-font-label);
	font-size: 13px;
	text-align: center;
	color: var(--oc-ctx-heading);
	text-decoration: none;
}
.oc-pagination .page-numbers.current { background: var(--oc-primary); border-color: var(--oc-primary); color: var(--oc-on-dark); }
.oc-pagination .page-numbers.dots { border: 0; }

.oc-search-form label { display: block; margin-bottom: 8px; font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-ctx-muted); }
.oc-search-form__row { display: flex; gap: 10px; max-width: 520px; }
.oc-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	font-size: 16px;
	color: var(--oc-ctx-heading);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--oc-ctx-line);
	border-radius: 0;
	padding: 10px 0;
}
.oc-search-form input[type="search"]:focus { outline: none; border-bottom-color: var(--oc-accent); }
.oc-mobile-panel .oc-search-form input[type="search"] { color: var(--oc-on-dark); }
.oc-search-again { margin-bottom: 40px; }
.oc-none p { color: var(--oc-ctx-text); }

/* Single post extras. */
.oc-article__image { margin-top: clamp(32px, 4vw, 56px); }
.oc-article__image img { display: block; width: 100%; border-radius: var(--oc-radius); }
.oc-main--single .oc-entry { padding-bottom: 0; }
.oc-article__after { padding-bottom: var(--oc-section-space); }
.oc-disclaimer {
	margin-top: 48px;
	padding: 22px 24px;
	background: var(--oc-surface);
	border-radius: var(--oc-radius);
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--oc-muted);
}
.oc-disclaimer p { margin: 0; }
.oc-disclaimer p + p { margin-top: 10px; }
.oc-article__back { margin: 32px 0 0; }
.oc-related { padding-block: var(--oc-section-space); border-top: 1px solid var(--oc-hair); background: var(--oc-surface); }
.oc-related__title { font-size: clamp(26px, 3vw, 40px); margin-bottom: 8px; }
.oc-page-links { margin-top: 24px; font-family: var(--oc-font-label); font-size: 13px; }
.oc-licence { font-size: 14px; color: var(--oc-ctx-muted); }

/* Comments. */
.oc-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--oc-rule); }
.oc-comments__title { font-size: 24px; }
.oc-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.oc-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--oc-hair); }
.oc-comments__list .children { list-style: none; padding-left: 28px; }
.oc-comments .comment-form input[type="text"],
.oc-comments .comment-form input[type="email"],
.oc-comments .comment-form input[type="url"],
.oc-comments .comment-form textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--oc-rule); border-radius: var(--oc-radius); background: #fff; }
.oc-comments .form-submit input { font: inherit; padding: 14px 26px; border: 0; border-radius: var(--oc-radius); background: var(--oc-button-bg); color: var(--oc-button-text); cursor: pointer; }

/* ----------------------------------------------------------------- Footer */
.oc-footer {
	background: var(--oc-footer-bg);
	color: var(--oc-footer-text);
	border-top: 1px solid var(--oc-hair);
	padding: 56px 0 64px;
	font-size: 13px;
	line-height: 1.75;
}
.oc-footer a { color: var(--oc-footer-heading); }
.oc-footer__widgets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	padding-bottom: 40px;
	margin-bottom: 34px;
	border-bottom: 1px solid var(--oc-rule);
}
.oc-footer__widgets--1 { grid-template-columns: minmax(0, 1fr); }
.oc-footer__widgets--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oc-footer__widgets--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.oc-footer .widget + .widget { margin-top: 24px; }
.oc-footer .widget-title,
.oc-footer .wp-block-heading {
	margin: 0 0 10px;
	font-family: var(--oc-font-label);
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: var(--oc-label-tracking);
	text-transform: var(--oc-label-transform);
	color: var(--oc-footer-text);
}
.oc-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.oc-footer .widget li a,
.oc-footer .wp-block-navigation-item__content { display: block; padding: 4px 0; font-size: 15px; line-height: 1.5; color: var(--oc-footer-heading); text-decoration: none; }
.oc-footer .widget li a:hover { text-decoration: underline; }
.oc-footer .widget p { font-size: 14px; }
.oc-footer__fine { max-width: 92ch; }
.oc-footer__fine p { margin: 0; }
.oc-footer__fine p + p { margin-top: 14px; }
.oc-footer__fine strong { color: var(--oc-footer-heading); font-weight: 500; }
.oc-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; }
.oc-footer__copyright { margin: 0; }
.oc-footer__links ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.oc-footer__links a { text-decoration: none; }
.oc-footer__links a:hover { text-decoration: underline; }

/* Back to top. */
.oc-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	padding: 9px 14px;
	border-radius: var(--oc-radius);
	background: var(--oc-primary);
	color: var(--oc-on-dark);
	font-family: var(--oc-font-label);
	font-size: 12px;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.oc-to-top:hover { background: var(--oc-primary-dark); color: var(--oc-on-dark); }
.oc-to-top[hidden] { display: none; }

/* Widgets in general. */
.widget select { max-width: 100%; }
.wp-block-search__input { border-radius: var(--oc-radius); }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 940px) {
	.oc-layout,
	.oc-layout--sidebar-left { grid-template-columns: minmax(0, 1fr); }
	.oc-layout--sidebar-left .oc-layout__primary { order: 0; }
	.oc-cards,
	.oc-cards--2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.oc-card__link { padding-bottom: 26px; border-bottom: 1px solid var(--oc-ctx-hair); }
	.oc-row__link { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.oc-row__go { display: none; }
	.oc-footer__widgets,
	.oc-footer__widgets--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-columns.is-style-oc-divided > .wp-block-column { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--oc-ctx-hair); }
	.wp-block-columns.is-style-oc-divided > .wp-block-column:last-child { border-bottom: 0; }
	.wp-block-columns.is-style-oc-mosaic > .wp-block-column:nth-child(2) { margin-top: 0; }
	.wp-block-cover.is-style-oc-hero { min-height: 560px; }
	.wp-block-cover.is-style-oc-hero .wp-block-cover__inner-container { padding-top: calc(var(--oc-header-h) + 60px); padding-bottom: 52px; }
	.wp-block-table.is-style-oc-terms td,
	.wp-block-table.is-style-oc-terms th { display: block; width: 100%; padding: 0; border: 0; }
	.wp-block-table.is-style-oc-terms td:first-child,
	.wp-block-table.is-style-oc-terms th:first-child { width: 100%; max-width: none; padding-top: 18px; padding-bottom: 6px; }
	.wp-block-table.is-style-oc-terms td:last-child { padding-bottom: 18px; border-bottom: 1px solid var(--oc-ctx-hair); }
	.is-style-oc-steps > li { padding-left: 40px; }
}
@media (max-width: 781px) {
	.wp-block-columns.is-style-oc-mosaic { flex-wrap: nowrap !important; }
	.wp-block-columns.is-style-oc-mosaic > .wp-block-column:nth-child(3) { display: none; }
}
@media (max-width: 600px) {
	.oc-form__row { grid-template-columns: minmax(0, 1fr); }
	.oc-form--subscribe { flex-direction: column; align-items: stretch; }
	.oc-footer__widgets,
	.oc-footer__widgets--2,
	.oc-footer__widgets--3 { grid-template-columns: minmax(0, 1fr); }
	.oc-header__cta--desktop { display: none; }
	.oc-banner__lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.oc-masthead, .oc-footer, .oc-form, .oc-to-top, .oc-related { display: none !important; }
	.oc-banner { background: none; }
	.oc-banner__title, .oc-banner__lead { color: #000; }
	body { background: #fff; }
}

/* ------------------------------------------------------------------ 1.1 */

/* Cover content (hero, image bands) lines up with the header and every other
   section at any screen width. Core's content-position rules otherwise pin it
   to the left edge of very wide screens. */
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover.has-custom-content-position .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: calc(var(--oc-container) + 2 * var(--oc-gutter)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-inline: var(--oc-gutter);
}

/* Data tables: a header row, ruled rows, scrolls sideways on phones. */
.wp-block-table.is-style-oc-data { margin-block: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table.is-style-oc-data table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.wp-block-table.is-style-oc-data table.has-fixed-layout { table-layout: auto; }
.wp-block-table.is-style-oc-data thead { border: 0; }
.wp-block-table.is-style-oc-data th {
	padding: 0 18px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--oc-ctx-heading);
	font-family: var(--oc-font-label);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-align: left;
	vertical-align: bottom;
	color: var(--oc-ctx-muted);
}
.wp-block-table.is-style-oc-data td {
	padding: 13px 18px 13px 0;
	border: 0;
	border-bottom: 1px solid var(--oc-ctx-rule);
	vertical-align: top;
	color: var(--oc-ctx-text);
}
.wp-block-table.is-style-oc-data td:first-child { color: var(--oc-ctx-heading); }
.wp-block-table.is-style-oc-data tr > :last-child { padding-right: 0; }
.wp-block-table.is-style-oc-data figcaption { margin-top: 12px; font-family: var(--oc-font-body); font-size: 13.5px; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--oc-ctx-muted); text-align: left; }
@media (max-width: 720px) {
	.wp-block-table.is-style-oc-data table { min-width: 560px; font-size: 14px; }
}

/* Note with a gold edge: for "what this does not claim" and similar asides. */
.wp-block-group.is-style-oc-note {
	margin-block: 30px;
	padding: 20px 24px;
	background: color-mix(in srgb, var(--oc-accent) 8%, transparent);
	border-left: 3px solid var(--oc-accent);
	border-radius: 0 var(--oc-radius) var(--oc-radius) 0;
}
.wp-block-group.is-style-oc-note > :first-child { margin-top: 0; }
.wp-block-group.is-style-oc-note > :last-child { margin-bottom: 0; }

/* Cards inside reading content sit apart from the paragraphs around them. */
.oc-entry .wp-block-group.is-style-oc-card { margin-block: 30px; }
.oc-entry .wp-block-group.is-style-oc-card > .is-style-oc-kicker:first-child { margin-bottom: 10px; }
.oc-entry .wp-block-group.is-style-oc-card > h3 { margin-top: 0; }

/* Sources and footnotes. */
ol.is-style-oc-sources,
.wp-block-list.is-style-oc-sources { margin-block: 18px 30px; padding-left: 1.6em; font-size: 14px; line-height: 1.6; color: var(--oc-ctx-muted); }
.is-style-oc-sources li + li { margin-top: 8px; }
.is-style-oc-sources li::marker { font-family: var(--oc-font-label); font-size: 12px; color: var(--oc-accent); }
.is-style-oc-sources a { color: inherit; }

/* Footnote markers. */
.oc-entry sup { font-size: .68em; line-height: 0; vertical-align: super; color: var(--oc-ctx-muted); font-feature-settings: "tnum"; }

/* Figures in long reading: the chart sits on the paper colour it was drawn on. */
.single .oc-entry .wp-block-image { margin-block: 30px; }
.single .oc-entry .wp-block-image img { width: 100%; height: auto; }

/* Key figures strip inside a post. */
.oc-entry .wp-block-columns.is-style-oc-divided { margin-block: 30px; }
.oc-entry .wp-block-columns.is-style-oc-divided .has-x-large-font-size { margin-bottom: 4px; line-height: 1.1; }

/* Labels and lead paragraphs inside reading content stay in the text column. */
.oc-entry > p.is-style-oc-kicker { margin-inline: auto; margin-bottom: 0; }
.oc-entry > * + p.is-style-oc-kicker { margin-block-start: 2.6em; }
.oc-entry > p.is-style-oc-kicker + * { margin-block-start: 10px; }
.oc-entry > p.is-style-oc-lead { max-width: var(--oc-content); margin-inline: auto; }
.oc-layout .oc-entry > p.is-style-oc-kicker,
.oc-layout .oc-entry > p.is-style-oc-lead,
.oc-layout-full .oc-entry > p.is-style-oc-kicker,
.oc-layout-full .oc-entry > p.is-style-oc-lead { margin-inline: 0; }

/* 1.3: calculator with a visitor-chosen rate. */
.oc-calc__input + .oc-calc__input { margin-top: 30px; }
.oc-calc__amount--rate { font-size: clamp(30px, 3.4vw, 42px); }
.oc-calc__result { margin-top: 36px; }
.oc-calc__monthly { margin: 8px 0 0 !important; font-size: 15px !important; letter-spacing: 0 !important; line-height: 1.5 !important; color: var(--oc-ctx-muted) !important; font-weight: 400 !important; }

/* Two-column term tables directly inside reading content stay in the text column. */
.oc-entry > .wp-block-table.is-style-oc-terms { margin-inline: auto; margin-block: 22px 30px; }
.oc-layout .oc-entry > .wp-block-table.is-style-oc-terms,
.oc-layout-full .oc-entry > .wp-block-table.is-style-oc-terms { margin-inline: 0; }
.oc-entry > .wp-block-buttons { margin-block: 30px 18px; }
