/* ═══════════════════════════════════════════════
   Outcome Blog — Custom Styles
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
	--oc-navy: #01081C;
	--oc-navy-light: #111827;
	--oc-charcoal: #1e293b;
	--oc-charcoal-light: #334155;
	--oc-brand-lime: #4ade80;
	--oc-brand-emerald: #10b981;
	--oc-brand-green: #22c55e;
	--oc-text-primary: #f8fafc;
	--oc-text-secondary: #C4D4CE;
	--oc-surface-border: rgba(255, 255, 255, 0.08);
	--oc-container-max: 1024px;
	--oc-nav-max: 1280px;
	--oc-section-px: clamp(1rem, 4vw, 2rem);
}


/* ═══════════════════════════════════════════════
   Header wrapper
   ═══════════════════════════════════════════════ */
.oc-header {
	position: relative;
	z-index: 100;
}


/* ═══════════════════════════════════════════════
   Layer 1: Main Nav Bar
   ═══════════════════════════════════════════════ */
.oc-nav-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	pointer-events: none;
}

.oc-nav-container {
	max-width: var(--oc-nav-max);
	margin: 0 auto;
	padding: 12px var(--oc-section-px) 0;
}

.oc-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-radius: 9999px;
	pointer-events: auto;
	isolation: isolate;

	background: transparent;
	border: 1px solid transparent;
	backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	box-shadow: none;

	transition:
		background 0.4s ease,
		border-color 0.4s ease,
		box-shadow 0.4s ease,
		backdrop-filter 0.4s ease,
		-webkit-backdrop-filter 0.4s ease;
}

/* Scrolled glass state */
.oc-nav--scrolled {
	background: rgba(1, 8, 28, 0.58);
	border-color: rgba(255, 255, 255, 0.11);
	backdrop-filter: blur(24px) saturate(1.4);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.3),
		0 1px 4px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Glass rim highlight */
.oc-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.12) 0%,
		rgba(255, 255, 255, 0.04) 30%,
		transparent 50%,
		transparent 85%,
		rgba(0, 0, 0, 0.08) 100%
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.oc-nav--scrolled::before {
	opacity: 1;
}

/* Logo */
.oc-nav__logo {
	position: relative;
	z-index: 10;
	flex-shrink: 0;
	line-height: 0;
}

.oc-nav__logo img {
	height: 20px;
	width: auto;
}

/* Nav links */
.oc-nav__links {
	display: none;
	align-items: center;
	gap: 4px;
}

.oc-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.oc-nav__link:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: #fff;
}

/* About dropdown */
.oc-nav__dropdown {
	position: relative;
}

.oc-nav__chevron {
	transition: transform 0.2s ease;
}

[aria-expanded="true"] .oc-nav__chevron {
	transform: rotate(180deg);
}

.oc-nav__dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 8px;
	width: 208px;
	padding: 8px;
	border-radius: 12px;
	border: 1px solid var(--oc-surface-border);
	background: rgb(9 20 35 / 92%);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	backdrop-filter: blur(24px) saturate(1.4);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	z-index: 100;
}

.oc-nav__dropdown-menu--open {
	display: block;
}

.oc-nav__dropdown-item {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.875rem;
	color: var(--oc-text-secondary);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.oc-nav__dropdown-item:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--oc-text-primary);
}

/* Utility (Sign In + Book a Demo) */
.oc-nav__utility {
	display: none;
	align-items: center;
	gap: 12px;
}

/* Hamburger (mobile) */
.oc-nav__hamburger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	background: none;
	border: none;
	color: var(--oc-text-primary);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.oc-nav__hamburger:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
	.oc-nav__links {
		display: flex;
	}
	.oc-nav__utility {
		display: flex;
	}
	.oc-nav__hamburger {
		display: none;
	}
}


/* ═══════════════════════════════════════════════
   Glow Button
   ═══════════════════════════════════════════════ */
.oc-glow-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	text-decoration: none;
	overflow: hidden;
	cursor: pointer;
}

.oc-glow-btn__fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, #0be465, #14b861);
	z-index: 0;
}

.oc-glow-btn__label {
	position: relative;
	z-index: 1;
	padding: 10px 28px;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--oc-navy);
	white-space: nowrap;
}

.oc-glow-btn:hover .oc-glow-btn__fill {
	background: linear-gradient(135deg, #34d399, #86efac);
}

.oc-glow-btn--full {
	width: 100%;
	justify-content: center;
}


/* ═══════════════════════════════════════════════
   Mobile Menu
   ═══════════════════════════════════════════════ */
.oc-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: var(--oc-navy);
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.oc-mobile-menu--open {
	opacity: 1;
	visibility: visible;
}

.oc-mobile-menu__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px var(--oc-section-px);
}

.oc-mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
}

.oc-mobile-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 9999px;
	background: none;
	border: none;
	color: var(--oc-text-primary);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.oc-mobile-menu__close:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.oc-mobile-menu__links {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 32px 0;
	overflow-y: auto;
}

.oc-mobile-menu__link {
	display: block;
	padding: 12px 8px;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--oc-text-secondary);
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.oc-mobile-menu__link:hover {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--oc-text-primary);
}

.oc-mobile-menu__divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 8px 0;
}

.oc-mobile-menu__bottom {
	padding: 20px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.oc-mobile-menu__signin {
	display: block;
	text-align: center;
	padding: 12px;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--oc-text-primary);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 9999px;
	transition: background-color 0.2s ease;
}

.oc-mobile-menu__signin:hover {
	background-color: rgba(255, 255, 255, 0.05);
}


/* ═══════════════════════════════════════════════
   Layer 2: Blog Hero Banner
   ═══════════════════════════════════════════════ */
.oc-hero {
	position: relative;
	padding-top: 80px; /* space for fixed nav */
	background: var(--oc-navy);
	overflow: hidden;
}

.oc-hero__bg {
	position: absolute;
	inset: 0;
}

.oc-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.oc-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(1, 8, 28, 0.3) 0%,
		rgba(1, 8, 28, 0.5) 60%,
		rgba(1, 8, 28, 0.85) 100%
	);
}

.oc-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--oc-container-max);
	margin: 0 auto;
	padding: 48px var(--oc-section-px) 32px;
}

.oc-hero__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--oc-brand-lime);
	margin-bottom: 8px;
	text-decoration: none;
}

.oc-hero__label:hover {
	text-decoration: underline;
}

.oc-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	color: var(--oc-text-primary);
	line-height: 1.2;
	margin: 0;
}


/* ═══════════════════════════════════════════════
   Layer 3: Category Nav + Search
   ═══════════════════════════════════════════════ */
.oc-category-bar {
	background: var(--oc-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding-bottom: 36px;
}

.oc-category-bar__inner {
	max-width: var(--oc-container-max);
	margin: 0 auto;
	padding: 16px var(--oc-section-px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.oc-category-bar__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.oc-category-bar__pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.oc-category-bar__pill:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.05);
}

.oc-category-bar__pill--active {
	color: #fff;
	background: var(--oc-charcoal-light);
	border-color: var(--oc-charcoal-light);
}

.oc-category-bar__pill--active:hover {
	background: var(--oc-charcoal-light);
	border-color: var(--oc-charcoal-light);
}

/* Search field */
.oc-category-bar__search {
	flex-shrink: 0;
}

.oc-search-field {
	position: relative;
	display: flex;
	align-items: center;
}

.oc-search-field__input {
	width: 200px;
	padding: 8px 40px 8px 16px;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: var(--oc-text-primary);
	font-size: 0.875rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease;
}

.oc-search-field__input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.oc-search-field__input:focus {
	border-color: rgba(255, 255, 255, 0.4);
}

.oc-search-field__icon {
	position: absolute;
	right: 14px;
	color: rgba(255, 255, 255, 0.4);
	pointer-events: none;
}


/* ═══════════════════════════════════════════════
   Newsletter Pre-Footer
   ═══════════════════════════════════════════════ */
.oc-newsletter {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.oc-newsletter__inner {
	max-width: var(--oc-nav-max);
	margin: 0 auto;
	padding: 20px var(--oc-section-px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oc-newsletter__title {
	font-size: 1rem;
	font-weight: 500;
	color: #fff;
	margin: 0;
	letter-spacing: -0.01em;
}

.oc-newsletter__form {
	width: 100%;
	max-width: 320px;
	flex-shrink: 0;
}

.oc-newsletter__field {
	display: flex;
}

.oc-newsletter__input {
	flex: 1;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: transparent;
	color: #fff;
	font-size: 0.875rem;
	font-family: inherit;
	outline: none;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.oc-newsletter__input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.oc-newsletter__input:focus {
	border-color: rgba(255, 255, 255, 0.6);
}

.oc-newsletter__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-left: 0;
	border-radius: 0 6px 6px 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.oc-newsletter__submit:hover {
	color: #fff;
}

.oc-newsletter__submit--valid {
	border-color: rgba(74, 222, 128, 0.6);
	background: linear-gradient(to right, var(--oc-brand-lime), var(--oc-brand-emerald));
	color: var(--oc-navy);
}

.oc-newsletter__status {
	font-size: 0.875rem;
	margin: 0;
	display: none;
}

.oc-newsletter__status--success {
	display: block;
	color: var(--oc-brand-lime);
}

.oc-newsletter__status--error {
	display: block;
	color: #f87171;
}

.oc-newsletter__status--subscribed {
	display: block;
	color: #fff;
}

/* Hide form when showing subscribed status */
.oc-newsletter--subscribed .oc-newsletter__form,
.oc-newsletter--subscribed .oc-newsletter__title {
	display: none;
}

@media (min-width: 640px) {
	.oc-newsletter__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.oc-newsletter__title {
		font-size: 1.125rem;
	}
}


/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.oc-footer {
	position: relative;
	background-color: #000512;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.oc-footer__inner {
	max-width: var(--oc-nav-max);
	margin: 0 auto;
	padding: 48px var(--oc-section-px) 64px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Brand column */
.oc-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.oc-footer__logo {
	height: 64px;
	width: auto;
}

.oc-footer__address,
.oc-footer__copyright {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* Link columns grid */
.oc-footer__columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.oc-footer__heading {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 16px;
}

.oc-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oc-footer__list a {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s ease;
}

.oc-footer__list a:hover {
	color: #fff;
}

/* Social links */
.oc-footer__social {
	display: flex;
	gap: 16px;
}

.oc-footer__social-link {
	color: rgba(255, 255, 255, 0.6);
	transition: color 0.2s ease;
	line-height: 0;
}

.oc-footer__social-link:hover {
	color: #fff;
}

/* Footer tablet breakpoint */
@media (min-width: 640px) {
	.oc-footer__columns {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Footer desktop breakpoint */
@media (min-width: 1024px) {
	.oc-footer__inner {
		flex-direction: row;
		padding-top: 64px;
	}

	.oc-footer__brand {
		flex: 0 0 auto;
		width: 240px;
	}

	.oc-footer__logo {
		height: 90px;
	}

	.oc-footer__columns {
		flex: 1;
		grid-template-columns: repeat(4, 1fr);
	}
}


/* ═══════════════════════════════════════════════
   Single Post Layout
   ═══════════════════════════════════════════════ */

/* Main wrapper */
.oc-single {
	background: #fff;
	margin-top: 0 !important;
}

.oc-single__header-wrap {
	padding-top: 16px;
	padding-bottom: 0;
}

/* Breadcrumb */
.oc-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding: 0 0 0;
	font-size: 0.8125rem;
}

.oc-breadcrumb__link {
	color: var(--oc-brand-emerald);
	text-decoration: none;
	font-weight: 500;
}

.oc-breadcrumb__link:hover {
	color: var(--oc-brand-lime);
	text-decoration: none;
}

.oc-breadcrumb__sep {
	color: var(--oc-brand-emerald);
	user-select: none;
}

.oc-breadcrumb__current {
	color: #6b7280;
}

/* Post title */
.oc-single__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--oc-navy);
	margin: 16px 0 12px;
	letter-spacing: -0.02em;
}

/* Meta line (reading time + date) */
.oc-single__meta {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0 0 32px;
}

/* Featured image */
.oc-single__image {
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
}

.oc-single__featured-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	border-radius: 0;
}

/* Author lockup (in single post header, after featured image) */
.oc-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}

.oc-author__avatar,
.oc-author img {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

.oc-author__info {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.oc-author__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--oc-navy);
	line-height: 1.3;
	margin: 0;
}

.oc-author__title {
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.3;
	margin: 0;
}

/* Hide in-content author block (rendered via shortcode header instead) */
.wp-block-post-content .wp-block-post-author,
.wp-block-post-content > .wp-block-spacer:has(+ .wp-block-spacer + .wp-block-post-author),
.wp-block-post-content > .wp-block-spacer:has(+ .wp-block-post-author) {
	display: none !important;
}

/* Post content area */
.oc-single__body {
	padding-bottom: 0;
}

.oc-single__body .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #1f2937;
}

.oc-single__body .wp-block-post-content p {
	margin-bottom: 1.5em;
}

.oc-single__body .wp-block-post-content h2 {
	font-size: 1.75rem;
	font-weight: 600;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
	color: var(--oc-navy);
}

.oc-single__body .wp-block-post-content h3 {
	font-size: 1.375rem;
	font-weight: 600;
	margin-top: 2em;
	margin-bottom: 0.5em;
	color: var(--oc-navy);
}

.oc-single__body .wp-block-post-content blockquote {
	border-left: 3px solid var(--oc-brand-lime);
	padding-left: 1.25rem;
	margin: 2em 0;
	font-style: italic;
	color: #374151;
}

.oc-single__body .wp-block-post-content img {
	border-radius: 16px;
	max-width: 100%;
	height: auto;
}

.oc-single__body .wp-block-post-content a {
	color: var(--oc-brand-emerald);
	text-decoration: underline;
}

.oc-single__body .wp-block-post-content a:hover {
	color: var(--oc-brand-lime);
	text-decoration: none;
}

/* Sidebar slot — for future share/like widgets */
.oc-single__sidebar {
	display: none; /* Hidden until a plugin populates it */
}

@media (min-width: 1024px) {
	.oc-single__sidebar {
		display: block;
		position: sticky;
		top: 100px;
	}
}

/* Hide WordPress core post navigation on single posts (we use .oc-post-nav instead) */
.oc-single .wp-block-post-navigation-link,
.oc-single .post-navigation,
.oc-single .navigation.post-navigation,
.oc-single .wp-post-navigation-link,
.oc-single .post-navigation-link-previous,
.oc-single .post-navigation-link-next {
	display: none !important;
}

/* Post navigation (prev/next) */
.oc-post-nav {
	border-top: 1px solid #e5e7eb;
	margin-top: 48px;
	padding: 24px 0;
}

.oc-post-nav__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.oc-post-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	border-radius: 9999px;
	border: 1px solid #d1d5db;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--oc-navy);
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.oc-post-nav__link svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.oc-post-nav__link:hover {
	color: var(--oc-navy);
	border-color: #9ca3af;
	background: #f9fafb;
}

/* Post meta section at bottom */
.oc-single__footer-wrap .wp-block-separator {
	border-color: #e5e7eb;
}

.oc-single__footer-wrap {
	padding-bottom: 20px;
}

/* Collapse spacing between single post content and footer */
.oc-single {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.oc-single .wp-block-group {
	margin-bottom: 0;
}


/* ═══════════════════════════════════════════════
   Content area overrides
   ═══════════════════════════════════════════════ */

/* Ensure content area is white */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:not(.oc-header):not(.oc-footer) {
	background: #fff;
}

/* Remove WP default padding since our header/footer handle spacing */
.wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Tighten top margin on listing pages */
body:not(.single) .wp-site-blocks > main.wp-block-group {
	margin-top: 24px !important;
}

/* Search/archive query title — small, breadcrumb-like */
.wp-block-query-title {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 16px;
}

/* Post content links use brand green */
.wp-block-post-content a {
	color: var(--oc-brand-emerald);
}

.wp-block-post-content a:hover {
	color: var(--oc-brand-lime);
}


/* ═══════════════════════════════════════════════
   Post Cards — Archive / Index / Search listings
   Adapted from main site "Exploring Outcomes" cards
   (light-mode version on white background)
   ═══════════════════════════════════════════════ */

/* Grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
.wp-block-post-template {
	gap: 24px !important;
}

.wp-block-post-template.is-flex-container,
.wp-block-post-template.is-layout-flex {
	flex-wrap: wrap !important;
	display: flex !important;
}

.wp-block-post-template.is-flex-container > .wp-block-post,
.wp-block-post-template.is-layout-flex > .wp-block-post,
.wp-block-post-template.is-flex-container > li,
.wp-block-post-template.is-layout-flex > li {
	width: calc(33.333% - 16px) !important;
	max-width: calc(33.333% - 16px) !important;
	flex: 0 0 calc(33.333% - 16px) !important;
	box-sizing: border-box;
}

/* Each post card */
.wp-block-post-template > .wp-block-post {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wp-block-post-template > .wp-block-post:hover {
	border-color: rgba(0, 0, 0, 0.15);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Featured image — fills top of card, fixed aspect ratio */
.wp-block-post-template .wp-block-post-featured-image {
	margin: 0 !important;
	border-radius: 0;
	overflow: hidden;
	aspect-ratio: 2 / 1;
	background: #f3f4f6;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
}

.wp-block-post-template .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

/* Placeholder for posts without featured images */
.wp-block-post-template .wp-block-post-featured-image:empty,
.wp-block-post-template .wp-block-post-featured-image:not(:has(img)) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	background: #f3f4f6;
	position: relative;
}

.wp-block-post-template .wp-block-post-featured-image:empty::after,
.wp-block-post-template .wp-block-post-featured-image:not(:has(img))::after {
	content: '';
	display: block;
	width: 48px;
	height: 48px;
	background: var(--oc-theme-uri) no-repeat center / contain;
	opacity: 0.15;
}

/* Card body content: title, excerpt, date */
.wp-block-post-template .wp-block-post-title {
	padding: 20px 20px 0;
	margin: 0 !important;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--oc-navy);
}

.wp-block-post-template .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-post-template .wp-block-post-title a:hover {
	color: var(--oc-brand-emerald);
}

.wp-block-post-template .wp-block-post-excerpt {
	padding: 8px 20px 0;
	margin: 0 !important;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #6b7280;
	flex: 1;
}

.wp-block-post-template .wp-block-post-excerpt__excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wp-block-post-template .wp-block-post-excerpt__more-link {
	display: none;
}

.wp-block-post-template .wp-block-post-date {
	padding: 12px 20px 20px;
	margin: 0 !important;
	font-size: 0.75rem;
	color: #9ca3af;
}

.wp-block-post-template .wp-block-post-date a {
	color: inherit;
	text-decoration: none;
}

/* Remove spacers inside cards — cards handle their own spacing */
.wp-block-post-template .wp-block-spacer {
	display: none !important;
}

/* Pagination styling */
.wp-block-query-pagination {
	margin-top: 40px !important;
	gap: 16px;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 24px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 9999px;
	color: var(--oc-navy);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	border-color: rgba(0, 0, 0, 0.25);
	background: #f9fafb;
}

/* No results */
.wp-block-query-no-results {
	text-align: center;
	padding: 60px 20px;
	color: #6b7280;
	font-size: 1rem;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 1024px) and (min-width: 640px) {
	.wp-block-post-template.is-flex-container > .wp-block-post,
	.wp-block-post-template.is-layout-flex > .wp-block-post,
	.wp-block-post-template.is-flex-container > li,
	.wp-block-post-template.is-layout-flex > li {
		width: calc(50% - 12px) !important;
		max-width: calc(50% - 12px) !important;
		flex: 0 0 calc(50% - 12px) !important;
	}
}

/* Responsive: 1 column on mobile */
@media (max-width: 639px) {
	.wp-block-post-template.is-flex-container > .wp-block-post,
	.wp-block-post-template.is-layout-flex > .wp-block-post,
	.wp-block-post-template.is-flex-container > li,
	.wp-block-post-template.is-layout-flex > li {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
}


/* ═══════════════════════════════════════════════
   Plugin & WP Block Content Overrides
   NOTE: These override default plugin/block styles
   to match the Outcome design system. Safe to remove
   if plugins are reconfigured or removed.
   ═══════════════════════════════════════════════ */

/* --- WP Post Author block (e.g. from Jetpack or editor) --- */
.wp-block-post-author {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 24px;
	margin-bottom: 24px;
	margin-top: 8px;
}

.wp-block-post-author__avatar img {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.wp-block-post-author__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--oc-navy);
}

.wp-block-post-author__bio {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: 2px;
}

/* --- WP Spacer blocks: collapse excessive spacing in posts --- */
.wp-block-post-content .wp-block-spacer {
	height: 24px !important;
	max-height: 24px;
}

/* --- WP Columns inside posts (e.g. image + text layouts) --- */
.wp-block-post-content .wp-block-columns {
	gap: 24px;
	margin-bottom: 1.5em;
}

/* --- WP Image blocks --- */
.wp-block-post-content .wp-block-image {
	margin-bottom: 1.5em;
}

.wp-block-post-content .wp-block-image img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

/* Smaller images (aligned left/right/center at partial width) get tighter radius */
.wp-block-post-content .wp-block-image.alignleft img,
.wp-block-post-content .wp-block-image.alignright img,
.wp-block-post-content .wp-block-image.aligncenter img,
.wp-block-post-content .wp-block-image.size-medium img,
.wp-block-post-content .wp-block-image.size-thumbnail img {
	border-radius: 8px;
}

.wp-block-post-content .wp-block-image figcaption {
	font-size: 0.8125rem;
	color: #6b7280;
	text-align: center;
	margin-top: 8px;
}

/* --- WP Media & Text block --- */
.wp-block-post-content .wp-block-media-text {
	margin-bottom: 1.5em;
	gap: 24px;
}

/* --- WP Gallery --- */
.wp-block-post-content .wp-block-gallery {
	margin-bottom: 1.5em;
}

/* --- WP Separator --- */
.wp-block-post-content .wp-block-separator {
	border-color: #e5e7eb;
	margin: 2em 0;
	opacity: 1;
}

/* --- WP List blocks --- */
.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.5em;
	margin-bottom: 1.5em;
	line-height: 1.75;
}

.wp-block-post-content li {
	margin-bottom: 0.5em;
}

.wp-block-post-content li::marker {
	color: var(--oc-brand-emerald);
}

/* --- WP Table block --- */
.wp-block-post-content .wp-block-table {
	margin-bottom: 1.5em;
	overflow-x: auto;
}

.wp-block-post-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.wp-block-post-content .wp-block-table th {
	background: var(--oc-navy);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 10px 16px;
}

.wp-block-post-content .wp-block-table td {
	padding: 10px 16px;
	border-bottom: 1px solid #e5e7eb;
}

/* --- WP Code block --- */
.wp-block-post-content .wp-block-code {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 1.5em;
	overflow-x: auto;
}

.wp-block-post-content .wp-block-code code {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.875rem;
	color: var(--oc-navy);
}

/* --- WP Preformatted block --- */
.wp-block-post-content .wp-block-preformatted {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 1.5em;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 0.875rem;
	overflow-x: auto;
}

/* --- WP Pullquote --- */
.wp-block-post-content .wp-block-pullquote {
	border-top: 3px solid var(--oc-brand-lime);
	border-bottom: 3px solid var(--oc-brand-lime);
	padding: 1.5em 0;
	margin: 2em 0;
}

.wp-block-post-content .wp-block-pullquote blockquote p {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.5;
}

/* --- WP Embed / Video blocks --- */
.wp-block-post-content .wp-block-embed,
.wp-block-post-content .wp-block-video {
	margin-bottom: 1.5em;
}

.wp-block-post-content .wp-block-embed .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.wp-block-post-content .wp-block-embed .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- WP Buttons block --- */
.wp-block-post-content .wp-block-buttons {
	margin-bottom: 1.5em;
}

.wp-block-post-content .wp-block-button__link {
	background: linear-gradient(135deg, var(--oc-brand-lime), var(--oc-brand-emerald));
	color: var(--oc-navy);
	font-weight: 600;
	border-radius: 9999px;
	padding: 10px 24px;
	font-size: 0.875rem;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.wp-block-post-content .wp-block-button__link:hover {
	opacity: 0.9;
	color: var(--oc-navy);
}

/* --- Jetpack Sharing buttons (if installed) --- */
.sharedaddy,
.sd-sharing-enabled {
	border-top: 1px solid #e5e7eb;
	padding-top: 16px;
	margin-top: 32px;
}

.sd-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--oc-navy);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* --- Jetpack Like button (if installed) --- */
.sharedaddy .sd-like {
	border-top: 1px solid #e5e7eb;
	padding-top: 12px;
	margin-top: 12px;
}

/* --- Jetpack Related Posts (if installed) --- */
.jp-relatedposts {
	border-top: 1px solid #e5e7eb;
	padding-top: 24px;
	margin-top: 32px;
}

.jp-relatedposts-headline {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--oc-navy);
}

.jp-relatedposts-post .jp-relatedposts-post-title a {
	color: var(--oc-navy);
	text-decoration: none;
	font-weight: 600;
}

.jp-relatedposts-post .jp-relatedposts-post-title a:hover {
	color: var(--oc-brand-emerald);
}

/* --- WP Comments section --- */
.wp-block-comments {
	border-top: 1px solid #e5e7eb;
	padding-top: 32px;
	margin-top: 32px;
}

.wp-block-comments .comment-author img {
	border-radius: 50% !important;
}


/* ═══════════════════════════════════════════════
   WordPress Pages (e.g. /press/)
   ═══════════════════════════════════════════════ */

/* Remove the page's own H1 — hero banner handles the title */
.oc-page .wp-block-post-content > h1:first-child {
	display: none !important;
}

/* Press page: hide WP editor content entirely — template handles everything */
.oc-page--press .wp-block-post-content {
	display: none !important;
}

/* Press Kit section */
.oc-press-kit {
	max-width: var(--oc-container-max);
	margin: 48px auto 0;
	padding: 0 var(--oc-section-px);
}

.oc-press-kit__heading {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--oc-navy);
	margin-bottom: 0.75em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #e5e7eb;
}

.oc-press-kit__subheading {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--oc-navy);
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.oc-press-kit p {
	color: #374151;
	line-height: 1.75;
	margin-bottom: 1em;
}

.oc-press-kit a {
	color: var(--oc-brand-emerald);
}

.oc-press-kit a:hover {
	color: var(--oc-brand-lime);
}

/* Page content: match the card grid width */
.oc-page .wp-block-post-content {
	padding: 0 var(--oc-section-px);
	max-width: var(--oc-container-max);
	margin-left: auto;
	margin-right: auto;
}

/* WP constrained layout inner containers — let them fill full width */
.oc-page .wp-block-post-content > .is-layout-constrained,
.oc-page .wp-block-post-content > .wp-block-group,
.oc-page .wp-block-post-content.is-layout-constrained > *,
.oc-page .wp-block-post-content > * {
	max-width: 100% !important;
}

/* Press page post grid — match archive grid alignment */
.oc-page--press .oc-press-grid {
	max-width: var(--oc-container-max);
	margin: 0 auto;
	padding: 0 var(--oc-section-px);
}

/* Section headings on pages */
.oc-page .wp-block-post-content h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--oc-navy);
	letter-spacing: 0.02em;
	margin-top: 2.5em;
	margin-bottom: 0.75em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #e5e7eb;
}

.oc-page .wp-block-post-content h2:first-child,
.oc-page .wp-block-post-content h2:first-of-type {
	margin-top: 0;
}

.oc-page .wp-block-post-content h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--oc-navy);
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.oc-page .wp-block-post-content p {
	color: #374151;
	line-height: 1.75;
	margin-bottom: 1em;
}

/* Hide post navigation on pages */
.page .wp-block-post-navigation-link,
.page .post-navigation,
.page .navigation.post-navigation,
.page .nav-links {
	display: none !important;
}

/* Hide WP comments on pages */
.oc-page .wp-block-comments {
	display: none !important;
}


/* ═══════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	.oc-nav,
	.oc-nav::before,
	.oc-mobile-menu,
	.oc-nav__chevron {
		transition: none;
	}
}
