/* VSO News single post (2026 redesign) – scoped to .vso-post. Tokens from vso-tokens.css. */
.vso-post .read-progress { position: fixed; top: 0; left: 0; right: 0; height: var(--vso-space-4); z-index: 100; background: transparent; pointer-events: none; }
.vso-post .read-progress span { display: block; height: 100%; background: var(--vso-action-secondary); transform: scaleX(0); transform-origin: 0 50%; }
.vso-post .crumbs { margin: 0 0 var(--vso-space-20); }
/* Breadcrumb: always one line. If the trail is longer than the screen it scrolls sideways (no scrollbar). */
.vso-post .crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }
.vso-post .crumbs ol::-webkit-scrollbar { display: none; }
.vso-post .crumbs li { display: inline-flex; flex: 0 0 auto; align-items: center; white-space: nowrap; color: var(--vso-text-inverse); font-weight: var(--vso-font-weight-bold); }
.vso-post .crumbs li:last-child { flex: 0 0 auto; white-space: nowrap; padding-right: var(--vso-space-16); }
.vso-post .crumbs li + li::before { margin-top: 0; align-self: center; }
.vso-post .crumbs li + li::before { content: ""; flex: none; width: var(--vso-space-6); height: var(--vso-space-6); margin: 0 var(--vso-space-10); border-top: var(--vso-border-2) solid var(--vso-text-inverse-muted); border-right: var(--vso-border-2) solid var(--vso-text-inverse-muted); transform: rotate(45deg); }
.vso-post .crumbs a { color: var(--vso-text-inverse-soft); font-weight: var(--vso-font-weight-regular); text-decoration: underline; text-underline-offset: 3px; }
.vso-post .crumbs a:hover { color: var(--vso-text-inverse); }
.vso-post .crumb-current { white-space: nowrap; overflow: visible; }

.vso-post .post-head { background: var(--vso-gradient-hero); color: var(--vso-text-inverse); padding: var(--vso-space-28) 0 var(--vso-space-40); }
.vso-post .post-head-inner { max-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: var(--vso-space-16); }
.vso-post .post-head h1 { color: var(--vso-text-inverse); font-size: var(--vso-font-size-4xl); line-height: var(--vso-leading-10); font-weight: var(--vso-font-weight-black); }
.vso-post .standfirst { color: var(--vso-text-inverse-soft); font-size: var(--vso-font-size-lg); line-height: var(--vso-leading-7); max-width: 960px; }
.vso-post .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vso-space-12) var(--vso-space-24); }
.vso-post .author-chip { display: inline-flex; align-items: center; gap: var(--vso-space-10); color: var(--vso-text-inverse-soft); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }
.vso-post .author-chip .avatar { width: var(--vso-size-avatar); height: var(--vso-size-avatar); border-radius: var(--vso-radius-full); object-fit: cover; background: var(--vso-surface-control); }
.vso-post .author-chip strong { color: var(--vso-text-inverse); font-weight: var(--vso-font-weight-bold); }
.vso-post .post-head .meta { gap: var(--vso-space-4) var(--vso-space-16); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }

.vso-post .share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--vso-space-8); }
.vso-post .share-label { margin-right: var(--vso-space-4); font-size: var(--vso-font-size-xs); line-height: var(--vso-leading-4); font-weight: var(--vso-font-weight-black); color: var(--vso-text-muted); }
.vso-post .on-dark .share-label { color: var(--vso-text-inverse-muted); }
.vso-post .share-btn { display: inline-flex; align-items: center; min-height: var(--vso-size-control-sm); padding: 0 var(--vso-space-12); border-radius: var(--vso-radius-full); border: var(--vso-border-1) solid var(--vso-border-default); background: var(--vso-surface-card); color: var(--vso-text-body); font-size: var(--vso-font-size-xs); line-height: var(--vso-leading-4); font-weight: var(--vso-font-weight-bold); cursor: pointer; }
.vso-post .share-btn:hover { border-color: var(--vso-action-outline); color: var(--vso-action-outline); }
.vso-post .on-dark .share-btn { background: transparent; border-color: var(--vso-border-inverse-soft); color: var(--vso-text-inverse); }
.vso-post .on-dark .share-btn:hover { border-color: var(--vso-border-inverse); color: var(--vso-text-inverse); }

.vso-post .post-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: var(--vso-space-48); padding-top: var(--vso-space-40); padding-bottom: var(--vso-space-48); }
.vso-post .post-main { min-width: 0; }
.vso-post .post-figure { margin: 0 0 var(--vso-space-24); }
.vso-post .post-figure img { width: 100%; height: auto; border-radius: var(--vso-radius-xl); }
.vso-post .post-figure figcaption { margin-top: var(--vso-space-8); color: var(--vso-text-muted); font-size: var(--vso-font-size-xs); line-height: var(--vso-leading-4); }
.vso-post .key-points { margin: 0 0 var(--vso-space-28); padding: var(--vso-space-20) var(--vso-space-24); border-radius: var(--vso-radius-2xl); background: var(--vso-surface-card); box-shadow: var(--vso-shadow-card); border-top: var(--vso-border-3) solid var(--vso-action-secondary); }
.vso-post .key-points h2 { margin-bottom: var(--vso-space-8); font-size: var(--vso-font-size-lg); line-height: var(--vso-leading-7); font-weight: var(--vso-font-weight-black); }
.vso-post .key-points ul { list-style: none; display: flex; flex-direction: column; gap: var(--vso-space-8); }
.vso-post .key-points li { position: relative; padding-left: var(--vso-space-24); }
.vso-post .key-points li::before { content: ""; position: absolute; left: var(--vso-space-4); top: var(--vso-space-8); width: var(--vso-space-8); height: var(--vso-space-8); border-radius: var(--vso-radius-full); background: var(--vso-action-secondary); }
.vso-post .key-points li strong { font-weight: var(--vso-font-weight-bold); color: var(--vso-text-heading); }

.vso-post .toc ol { list-style: none; display: flex; flex-direction: column; gap: var(--vso-space-8); }
.vso-post .toc li { display: grid; grid-template-columns: var(--vso-size-24) minmax(0, 1fr); gap: var(--vso-space-6); align-items: baseline; font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }
.vso-post .toc li::before { content: none; }
.vso-post .toc .toc-num { color: var(--vso-text-link); font-weight: var(--vso-font-weight-black); font-variant-numeric: tabular-nums; }
.vso-post .toc a { color: var(--vso-text-body); }
.vso-post .toc a:hover { color: var(--vso-text-link); text-decoration: underline; }
.vso-post .toc-mobile { display: none; margin: 0 0 var(--vso-space-24); border-radius: var(--vso-radius-2xl); background: var(--vso-surface-muted); padding: var(--vso-space-12) var(--vso-space-16); }
.vso-post .toc-mobile summary { cursor: pointer; min-height: var(--vso-size-control-md); display: flex; align-items: center; font-weight: var(--vso-font-weight-black); color: var(--vso-text-heading); }
.vso-post .toc-mobile ol { padding: var(--vso-space-8) 0 var(--vso-space-4); }

/* Article body */
.vso-post .post-body { color: var(--vso-text-body); font-size: var(--vso-font-size-base); line-height: 1.75; margin: 0; }
.vso-post .post-body > * + * { margin-top: var(--vso-space-20); }
.vso-post .post-body p { margin-bottom: 0; line-height: var(--vso-leading-7); }
.vso-post .post-body li { line-height: var(--vso-leading-7); }
.vso-post .post-body p + p { margin-top: var(--vso-space-20); }
.vso-post .post-body h2 + *, .vso-post .post-body h3 + * { margin-top: var(--vso-space-12); }
.vso-post .post-body h2 { margin-top: var(--vso-space-40); font-size: var(--vso-font-size-2xl); line-height: var(--vso-leading-8); font-weight: var(--vso-font-weight-black); color: var(--vso-text-heading); scroll-margin-top: var(--vso-space-24); }
.vso-post .post-body h3 { margin-top: var(--vso-space-32); font-size: var(--vso-font-size-lg); line-height: var(--vso-leading-7); font-weight: var(--vso-font-weight-bold); color: var(--vso-text-heading); }
.vso-post .post-body a { color: var(--vso-text-link); text-decoration: underline; text-underline-offset: 2px; }
.vso-post .post-body a:hover { color: var(--vso-action-secondary-hover); }
.vso-post .post-body ul, .vso-post .post-body ol { padding-left: var(--vso-space-24); list-style: revert; }
.vso-post .post-body li + li { margin-top: var(--vso-space-8); }
/* Pull quotes. The old theme sets Arial, a green colour and a floating quote mark on every blockquote; reset all three. */
.vso-post .post-body blockquote { position: relative; margin: var(--vso-space-32) 0; padding: var(--vso-space-20) var(--vso-space-24); border-radius: var(--vso-radius-lg); background: var(--vso-surface-muted); border-left: var(--vso-border-3) solid var(--vso-action-secondary); color: var(--vso-text-heading); font-family: var(--vso-font-family-sans); font-size: var(--vso-font-size-xl); line-height: var(--vso-leading-7); font-weight: var(--vso-font-weight-black); }
.vso-post .post-body blockquote::before { content: none; }
.vso-post .post-body blockquote p { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
.vso-post .post-body blockquote p + p { margin-top: var(--vso-space-12); }
.vso-post .post-body blockquote cite { display: block; margin-top: var(--vso-space-8); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); font-weight: var(--vso-font-weight-regular); font-style: normal; color: var(--vso-text-body); }
/* Box-outs keep their side bar, in the brand green. */
.vso-post .post-body .box-out p::before { background-color: var(--vso-action-secondary); }
.vso-post .post-body img { height: auto; border-radius: var(--vso-radius-lg); }
.vso-post .post-body figure { margin-left: 0; margin-right: 0; }
.vso-post .post-body figcaption { color: var(--vso-text-muted); font-size: var(--vso-font-size-xs); line-height: var(--vso-leading-4); margin-top: var(--vso-space-8); }
.vso-post .post-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }
.vso-post .post-body th, .vso-post .post-body td { padding: var(--vso-space-10) var(--vso-space-12); border-bottom: var(--vso-border-1) solid var(--vso-border-default); text-align: left; vertical-align: top; }
.vso-post .post-body thead th { background: var(--vso-surface-brand); color: var(--vso-text-inverse); font-weight: var(--vso-font-weight-bold); }
.vso-post .post-body iframe { max-width: 100%; }

.vso-post .post-end { margin-top: var(--vso-space-32); padding-top: var(--vso-space-20); border-top: var(--vso-border-1) solid var(--vso-border-default); }
.vso-post .prev-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vso-space-16); margin-top: var(--vso-space-24); }
.vso-post .pn { display: flex; flex-direction: column; gap: var(--vso-space-4); padding: var(--vso-space-16); border-radius: var(--vso-radius-2xl); border: var(--vso-border-1) solid var(--vso-border-default); background: var(--vso-surface-card); }
.vso-post .pn:hover { border-color: var(--vso-action-outline); }
.vso-post .pn-next { grid-column: 2; text-align: right; }
.vso-post .pn-label { color: var(--vso-text-link); font-size: var(--vso-font-size-xs); line-height: var(--vso-leading-4); font-weight: var(--vso-font-weight-black); }
.vso-post .pn-title { color: var(--vso-text-heading); font-weight: var(--vso-font-weight-bold); line-height: var(--vso-leading-5); }
.vso-post .author-box { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--vso-space-20); margin-top: var(--vso-space-24); padding: var(--vso-space-24); border-radius: var(--vso-radius-2xl); background: var(--vso-surface-muted); }
.vso-post .author-photo { width: 80px; height: 80px; border-radius: var(--vso-radius-full); object-fit: cover; }
.vso-post .author-box h2 { margin: var(--vso-space-4) 0 var(--vso-space-8); font-size: var(--vso-font-size-xl); line-height: var(--vso-leading-7); font-weight: var(--vso-font-weight-black); }
.vso-post .author-box h2 a { color: var(--vso-text-heading); }
.vso-post .author-box p { color: var(--vso-text-body); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); margin-bottom: var(--vso-space-12); }
/* Compact author box: name + LinkedIn / X, role line, 2-line bio, beats and a profile link. */
.vso-post .author-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--vso-space-8) var(--vso-space-16); }
.vso-post .author-head h2 { margin-bottom: 0; }
.vso-post .author-box .author-role { margin: var(--vso-space-2) 0 var(--vso-space-8); color: var(--vso-text-heading); font-weight: var(--vso-font-weight-bold); }
.vso-post .author-box .author-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vso-post .author-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--vso-space-12); }
.vso-post .author-more { color: var(--vso-text-link); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); font-weight: var(--vso-font-weight-bold); white-space: nowrap; }
.vso-post .author-more:hover { text-decoration: underline; }
.vso-post .post-comments { margin-top: var(--vso-space-32); }
/* Standard pages */
.vso-page .page-links { margin-top: var(--vso-space-24); padding-top: var(--vso-space-16); border-top: var(--vso-border-1) solid var(--vso-border-default); font-weight: var(--vso-font-weight-bold); }
.vso-page .post-body input[type="text"], .vso-page .post-body input[type="email"], .vso-page .post-body input[type="tel"], .vso-page .post-body textarea, .vso-page .post-body select { width: 100%; max-width: 100%; min-height: var(--vso-size-control-lg); padding: var(--vso-space-10) var(--vso-space-16); border-radius: var(--vso-radius-base); border: var(--vso-border-1) solid var(--vso-border-input); background: var(--vso-surface-card); color: var(--vso-text-body); font: inherit; }
.vso-page .post-body input[type="submit"], .vso-page .post-body button[type="submit"] { min-height: var(--vso-size-control-lg); padding: 0 var(--vso-space-20); border: 0; border-radius: var(--vso-radius-base); background: var(--vso-action-secondary); color: var(--vso-text-on-secondary); font: inherit; font-weight: var(--vso-font-weight-black); cursor: pointer; }

/* Contact Form 7 (the careers application form): one field per row, even spacing, set apart from the text above. */
.vso-page .post-body ul + p, .vso-page .post-body ol + p { margin-top: var(--vso-space-20); }
.vso-page .post-body .wpcf7 { margin-top: var(--vso-space-28); padding: var(--vso-space-24); border-radius: var(--vso-radius-2xl); background: var(--vso-surface-muted); }
.vso-page .post-body .wpcf7 form > p { margin: 0; }
.vso-page .post-body .wpcf7 br { display: none; }
.vso-page .post-body .wpcf7-form-control-wrap { display: block; margin-bottom: var(--vso-space-16); }
.vso-page .post-body .wpcf7 textarea { height: 180px; min-height: 140px; resize: vertical; }
.vso-page .post-body .wpcf7 input:focus, .vso-page .post-body .wpcf7 textarea:focus { outline: var(--vso-border-2) solid var(--vso-text-link); outline-offset: 0; border-color: var(--vso-border-brand); }
.vso-page .post-body .codedropz-upload-wrapper { margin: 0; }
.vso-page .post-body .codedropz-upload-handler { margin: 0; border-radius: var(--vso-radius-lg); border-color: var(--vso-border-input); background: var(--vso-surface-card); }
.vso-page .post-body .wpcf7 input[type="submit"] { margin-top: var(--vso-space-8); }
.vso-page .post-body .wpcf7-spinner { margin: 0 0 0 var(--vso-space-12); vertical-align: middle; }
.vso-page .post-body .wpcf7-response-output { margin: var(--vso-space-16) 0 0; padding: var(--vso-space-12) var(--vso-space-16); border-radius: var(--vso-radius-base); }
.vso-page .post-body .wpcf7 + p, .vso-page .post-body .wpcf7 ~ p { margin-top: var(--vso-space-16); color: var(--vso-text-muted); font-size: var(--vso-font-size-sm); line-height: var(--vso-leading-5); }
@media (max-width: 767px) {
	.vso-page .post-body .wpcf7 { padding: var(--vso-space-16); }
	.vso-page .post-body .wpcf7 input[type="submit"] { width: 100%; }
}

/* Mobile contents list: a comfortable tap height on every device, not only on touch-detected ones. */
.vso-post .toc-mobile a { display: inline-block; padding: var(--vso-space-6) 0; }

.vso-post .post-side { align-self: stretch; }
@media (pointer: coarse) {
	.vso-post .share-btn { min-height: var(--vso-size-control-lg); padding: 0 var(--vso-space-16); }
	.vso-post .toc-mobile summary { min-height: var(--vso-size-control-lg); }
	.vso-post .toc-mobile li { padding: var(--vso-space-6) 0; }
}
.vso-post .vso-links { display: flex; flex-wrap: wrap; gap: var(--vso-space-8); }
.vso-post .most li > div > a { font-size: var(--vso-font-size-sm); }
/* Sidebar stories with thumbnails instead of rank numbers. */
.vso-post .most-thumbs li { grid-template-columns: 80px minmax(0, 1fr); gap: var(--vso-space-12); align-items: start; }
.vso-post .most-thumbs li::before { content: none; }
.vso-post .most-media { display: block; width: 80px; aspect-ratio: 4 / 3; border-radius: var(--vso-radius-base); overflow: hidden; background: var(--vso-surface-muted); }
.vso-post .most-media img { width: 100%; height: 100%; object-fit: cover; }

.vso-post .related { background: var(--vso-surface-muted); }
.vso-post .related + .related { padding-top: 0; }
.vso-post .card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vso-space-16); }
.vso-post .card { display: flex; flex-direction: column; border-radius: var(--vso-radius-lg); overflow: hidden; background: var(--vso-surface-card); box-shadow: var(--vso-shadow-md); }
.vso-post .card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--vso-surface-muted); }
.vso-post .card-media img { width: 100%; height: 100%; object-fit: cover; }
.vso-post .card-body { flex: 1; display: flex; flex-direction: column; gap: var(--vso-space-12); padding: var(--vso-space-16); }
.vso-post .card h3 { flex: 1; font-size: var(--vso-font-size-lg); line-height: var(--vso-leading-6); font-weight: var(--vso-font-weight-black); }
.vso-post .card h3 a { color: var(--vso-text-heading); }

.vso-post .to-top { position: fixed; right: var(--vso-space-16); bottom: calc(var(--vso-space-16) + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: var(--vso-size-control-lg); height: var(--vso-size-control-lg); border-radius: var(--vso-radius-full); border: 0; background: var(--vso-action-secondary); color: var(--vso-text-on-secondary); box-shadow: var(--vso-shadow-md); }
.vso-post .to-top[hidden] { display: none; }
.vso-post .to-top:hover { background: var(--vso-action-secondary-hover); }
/* Phones and tablets show the site's share bar along the bottom edge; keep the button clear of it. */
@media (max-width: 1024px) {
	.vso-post .to-top { bottom: calc(var(--vso-space-64) + env(safe-area-inset-bottom, 0px)); }
}
/* Small laptops: the same share bar sits down the left edge and would cover the article's first 48px. */
@media (min-width: 1025px) and (max-width: 1319px) {
	.vso-post .wrap { padding-left: var(--vso-space-64); }
}

@media (max-width: 991px) {
	.vso-post .post-layout { grid-template-columns: minmax(0, 1fr); gap: var(--vso-space-32); }
	.vso-post .post-main { max-width: 720px; }
	.vso-post .toc-desktop { display: none; }
	.vso-post .toc-mobile { display: block; }
	.vso-post .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.vso-post .post-head h1 { font-size: var(--vso-font-size-28); line-height: var(--vso-leading-9); }
	.vso-post .standfirst { font-size: var(--vso-font-size-base); line-height: var(--vso-leading-6); }
	.vso-post .prev-next, .vso-post .card-row { grid-template-columns: minmax(0, 1fr); }
	.vso-post .pn-next { grid-column: auto; text-align: left; }
	.vso-post .author-box { grid-template-columns: 56px minmax(0, 1fr); padding: var(--vso-space-20); }
	.vso-post .author-photo { width: 56px; height: 56px; }
}
