/*
 * Postfolio Blocks — supplemental styles
 *
 * theme.json (Global Styles) drives color, typography and spacing, so the
 * Styles panel, style variations and font presets always win. This file only
 * covers what Global Styles cannot express: accessibility helpers, hover and
 * focus states, small pattern details and responsive refinements.
 */

/* ---------- Accessibility ---------- */
.skip-link {
	background: var(--wp--preset--color--contrast, #101014);
	color: var(--wp--preset--color--base, #fff);
	padding: 0.75em 1.25em;
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100000;
	border-radius: 0 0 0.5rem 0.5rem;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
}

.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;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #101014);
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	left: 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
	padding: 1em;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #4f46e5);
	outline-offset: 2px;
}

/* ---------- Content safety ---------- */
.wp-block-post-content,
.wp-block-post-title,
.wp-block-comment-content {
	overflow-wrap: break-word;
}

.wp-block-table {
	overflow-x: auto;
}

/* ---------- Card style (Group → Styles → Card) ---------- */
.is-style-card {
	background: var(--wp--preset--color--base, #fff);
	border: 1px solid var(--wp--preset--color--base-2, #f3f3f6);
	border-radius: 1rem;
	padding: var(--wp--preset--spacing--30, 1.5rem);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.is-style-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card);
	border-color: var(--wp--preset--color--accent, #4f46e5);
}

.is-style-card .wp-block-post-featured-image,
.is-style-card > .wp-block-post-featured-image {
	margin-top: calc(-1 * var(--wp--preset--spacing--30, 1.5rem));
	margin-left: calc(-1 * var(--wp--preset--spacing--30, 1.5rem));
	margin-right: calc(-1 * var(--wp--preset--spacing--30, 1.5rem));
	margin-bottom: var(--wp--preset--spacing--20, 1rem);
	border-radius: 1rem 1rem 0 0;
	overflow: hidden;
}

.is-style-card .wp-block-post-featured-image img {
	transition: transform 0.35s ease;
	display: block;
}

.is-style-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* ---------- Image & separator styles ---------- */
.wp-block-image.is-style-rounded img {
	border-radius: 999px;
}

.wp-block-separator.is-style-dot {
	background: none !important;
	border: none;
	text-align: center;
	height: auto;
	line-height: 1;
}

.wp-block-separator.is-style-dot::before {
	content: "\2022 \2022 \2022";
	color: var(--wp--preset--color--accent, #4f46e5);
	font-size: 1.25rem;
	letter-spacing: 0.5em;
	padding-left: 0.5em;
}

/* ---------- Badges & pills ---------- */
.postfolio-badge,
.postfolio-badge-white {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.3em 0.9em;
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.postfolio-badge {
	background: var(--wp--preset--color--base-2, #f3f3f6);
	color: var(--wp--preset--color--contrast, #101014);
}

.postfolio-badge-white {
	background: rgba(255, 255, 255, 0.2);
	color: var(--wp--preset--color--base, #fff);
}

.postfolio-badge a,
.postfolio-badge-white a {
	color: inherit;
	text-decoration: none;
}

p.has-text-align-center.postfolio-badge {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

.postfolio-pill {
	display: inline-block;
}

/* ---------- Pattern details ---------- */
.postfolio-spotlight-primary .wp-block-post-title a,
.postfolio-spotlight-primary .wp-block-post-title a:hover {
	color: var(--wp--preset--color--base, #fff);
}

.postfolio-spotlight-primary .wp-block-post-title a:hover {
	text-decoration: underline;
}

.postfolio-bento-primary .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.postfolio-author-avatar img {
	border-radius: 999px;
	border: 4px solid var(--wp--preset--color--base, #fff);
	box-shadow: var(--wp--preset--shadow--card);
}

.postfolio-row-item {
	border-top: 1px solid var(--wp--preset--color--base-2, #f3f3f6);
	transition: background-color 0.2s ease;
}

.postfolio-row-item:hover {
	background-color: var(--wp--preset--color--base-2, #f3f3f6);
}

.postfolio-faq-item summary {
	font-weight: 600;
	font-size: 1.1rem;
	cursor: pointer;
}

.wp-block-comment-template {
	list-style: none;
	padding-left: 0;
}

/* Logo cloud: calm logos that light up on hover. */
.postfolio-logo-cloud img {
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.postfolio-logo-cloud figure:hover img {
	filter: none;
	opacity: 1;
}

/* Timeline: a vertical rule with a dot per item. */
.postfolio-timeline {
	position: relative;
	padding-left: 2rem;
}

.postfolio-timeline::before {
	content: "";
	position: absolute;
	left: 0.45rem;
	top: 0.4rem;
	bottom: 0.4rem;
	width: 2px;
	background: var(--wp--preset--color--base-2, #f3f3f6);
}

.postfolio-timeline-item {
	position: relative;
}

.postfolio-timeline-item::before {
	content: "";
	position: absolute;
	left: -1.85rem;
	top: 0.35rem;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--accent, #4f46e5);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base, #fff);
}

/* Stats: tabular numbers so counters line up. */
.postfolio-stat-number {
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* Process steps: numbered circles. */
.postfolio-step-number,
p.postfolio-step-number.has-background {
	display: inline-flex;
	padding: 0;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
}

/* ---------- Blog features ---------- */
.postfolio-toc ol,
.postfolio-toc ul {
	margin: 0;
	padding-left: 1.1rem;
}

.postfolio-toc li {
	margin: 0.35rem 0;
}

.postfolio-toc li.postfolio-toc__sub {
	margin-left: 1rem;
	font-size: 0.95em;
}

.postfolio-toc a {
	text-decoration: none;
}

.postfolio-toc a:hover,
.postfolio-toc a[aria-current="true"] {
	text-decoration: underline;
}

.postfolio-toc.is-empty {
	display: none;
}

.wp-block-post-content :is(h2, h3)[id] {
	scroll-margin-top: 6rem;
}

/* ---------- Header options ---------- */

/* Header 06: sticky. */
.wp-site-blocks > header.wp-block-template-part:has(> .postfolio-is-sticky) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.postfolio-is-sticky {
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
}

/* Header 07: transparent, overlays the first full-width block of the page. */
.wp-site-blocks:has(> header.wp-block-template-part > .postfolio-is-transparent) {
	position: relative;
}

.wp-site-blocks > header.wp-block-template-part:has(> .postfolio-is-transparent) {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 50;
}

.wp-site-blocks > header.wp-block-template-part:has(> .postfolio-is-transparent) + main {
	margin-top: 0;
}

/* Keep the transparent header readable when it is edited on its own. */
.editor-styles-wrapper .postfolio-is-transparent {
	background-color: var(--wp--preset--color--contrast, #101014);
}

/* ---------- Sidebar layouts ---------- */
@media (min-width: 1024px) {
	.postfolio-sidebar-sticky {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 2rem);
	}
}

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

/* Tablet: rows of four or more columns become a 2 × 2 grid. */
@media (min-width: 782px) and (max-width: 1024px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) > .wp-block-column {
		flex-basis: calc(50% - var(--wp--style--block-gap, 1.5rem)) !important;
		flex-grow: 1;
	}

	/* Sidebar templates: give the content more room on tablets. */
	.postfolio-sidebar-layout > .wp-block-column:first-child {
		flex-basis: 64% !important;
	}
}

/* Mobile. */
@media (max-width: 781px) {
	.is-style-card {
		padding: 1.25rem;
	}

	.is-style-card .wp-block-post-featured-image,
	.is-style-card > .wp-block-post-featured-image {
		margin-top: -1.25rem;
		margin-left: -1.25rem;
		margin-right: -1.25rem;
	}

	.postfolio-hide-on-mobile {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.postfolio-show-on-mobile {
		display: none !important;
	}
}

/* ---------- Single post: centered header ---------- */
.postfolio-post-header {
	text-align: center;
}

.postfolio-post-header > * {
	max-width: 100%;
}

.postfolio-post-header .wp-block-post-title {
	text-wrap: balance;
}

/* ---------- Single post: share card ---------- */
.postfolio-share-row {
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.postfolio-share-row > p {
	margin: 0;
}

.postfolio-share .wp-social-link {
	border-radius: 0.5rem;
	transition: transform 0.2s ease;
}

.postfolio-share .wp-social-link:hover {
	transform: translateY(-2px);
}

/* ---------- Single post: author box ---------- */
.postfolio-author-box {
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.postfolio-author-ring {
	flex: none;
}

.postfolio-author-ring img {
	padding: 3px;
	border: 2px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--base);
}

.postfolio-author-name {
	font-weight: 700;
	line-height: 1.2;
}

.postfolio-author-name a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.postfolio-author-name a:hover {
	text-decoration: underline;
}

.postfolio-author-bio {
	margin: 0;
	line-height: 1.7;
}

@media (max-width: 600px) {
	.postfolio-author-box {
		flex-direction: column;
		align-items: flex-start !important;
	}
}

/* ---------- Comment form: breathing room above the footer ---------- */
.wp-block-post-comments-form .form-submit {
	margin-bottom: 0;
}

.postfolio-comments-area {
	padding-bottom: var(--wp--preset--spacing--40);
}

/* ---------- Header search: never wider than the screen ---------- */
.postfolio-header .wp-block-search,
.postfolio-header .wp-block-search__inside-wrapper,
.postfolio-header .wp-block-search__input {
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 781px) {
	.postfolio-header .wp-block-search {
		flex: 1 0 100%;
		order: 3;
	}

	.postfolio-header .wp-block-search__inside-wrapper {
		width: 100% !important;
	}
}

/* ---------- Magazine home ---------- */
.postfolio-kicker {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.postfolio-kicker a {
	color: inherit;
	text-decoration: none;
}

.postfolio-badge-accent {
	display: inline-flex;
	gap: 0.4em;
	margin: 0;
}

.postfolio-badge-accent a {
	padding: 0.3em 0.85em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.postfolio-badge-accent .wp-block-post-terms__separator {
	display: none;
}

/* Spotlight lead story: the whole card scales gently on hover. */
.postfolio-spotlight-primary {
	overflow: hidden;
}

.postfolio-spotlight-primary .wp-block-cover__image-background {
	transition: transform 0.6s ease;
}

.postfolio-spotlight-primary:hover .wp-block-cover__image-background {
	transform: scale(1.04);
}

.postfolio-spotlight-primary .wp-block-cover__inner-container {
	max-width: 40rem;
}

.postfolio-spotlight-excerpt {
	opacity: 0.85;
}

.postfolio-spotlight-primary .wp-block-post-date,
.postfolio-spotlight-primary .wp-block-post-author-name {
	color: var(--wp--preset--color--base);
	opacity: 0.85;
}

.postfolio-story-card .wp-block-post-featured-image,
.postfolio-dark-row .wp-block-post-featured-image,
.postfolio-row-item .wp-block-post-featured-image {
	flex: none;
	overflow: hidden;
}

.postfolio-story-card .wp-block-post-featured-image img {
	transition: transform 0.5s ease;
}

.postfolio-story-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

.postfolio-story-card .wp-block-post-title a,
.postfolio-dark-row .wp-block-post-title a,
.postfolio-row-item .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.postfolio-story-card .wp-block-post-title a:hover,
.postfolio-dark-row .wp-block-post-title a:hover,
.postfolio-row-item .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.postfolio-dark-row:last-child {
	margin-bottom: 0 !important;
	border-bottom: 0 !important;
}

.postfolio-more-link {
	margin: 0;
	font-weight: 600;
	white-space: nowrap;
}

.postfolio-more-link a {
	text-decoration: none;
}

.postfolio-topic-pills .wp-block-button__link {
	padding: 0.4em 1.1em;
}

/* ---------- Personal blog home ---------- */
.postfolio-blog-hero-image img {
	box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
}

.postfolio-feature-card .wp-block-columns {
	margin-bottom: 0;
}

.postfolio-list-card {
	height: 100%;
}

.postfolio-list-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* ---------- Editorial home ---------- */
.postfolio-topic-nav .wp-block-navigation-item__content {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.postfolio-live-dot {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
}

.postfolio-live-dot::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0.25em color-mix(in srgb, currentColor 25%, transparent);
}

.postfolio-headline-item .wp-block-post-title a,
.postfolio-numbered-item .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.postfolio-headline-item .wp-block-post-title a:hover,
.postfolio-numbered-item .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.postfolio-news-row > .wp-block-group {
	flex: 1;
}

.postfolio-news-row .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.postfolio-sticky-sidebar {
	position: sticky;
	top: 6rem;
}

/* Numbered "most discussed" list. */
.postfolio-numbered .wp-block-post-template {
	counter-reset: postfolio-rank;
}

.postfolio-numbered-item {
	position: relative;
	padding-left: 2.6rem !important;
	counter-increment: postfolio-rank;
}

.postfolio-numbered-item::before {
	content: counter(postfolio-rank, decimal-leading-zero);
	position: absolute;
	top: 0.85rem;
	left: 0;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--poppins, inherit);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
}

.postfolio-numbered-item:last-child,
.postfolio-headline-item:last-child {
	border-bottom: 0 !important;
}

.postfolio-comment-count {
	margin: 0;
}

.postfolio-topic-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.postfolio-topic-list li {
	display: flex;
	justify-content: space-between;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast-2);
}

.postfolio-topic-list li a {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
}

.postfolio-topic-list li a:hover {
	color: var(--wp--preset--color--accent);
}

@media (max-width: 781px) {
	.postfolio-sticky-sidebar {
		position: static;
	}

	.postfolio-list-card .wp-block-post-featured-image {
		width: 112px !important;
		height: 96px !important;
	}

	.postfolio-news-row .wp-block-post-featured-image {
		width: 112px !important;
		height: 84px !important;
	}

	.postfolio-news-row .wp-block-post-excerpt {
		display: none;
	}
}

@media (max-width: 781px) {
	.postfolio-spotlight-primary {
		min-height: 420px !important;
	}

	.postfolio-dark-row .wp-block-post-featured-image {
		width: 104px !important;
		height: 80px !important;
	}
}

/* ---------- Agency landing ---------- */
.postfolio-agency-hero {
	position: relative;
	overflow: hidden;
	background-image:
		radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent), transparent 70%),
		radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--accent-2) 30%, transparent), transparent 70%);
}

.postfolio-hero-pill {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.4em 1em;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.postfolio-avatar-stack figure {
	margin: 0 0 0 -10px !important;
}

.postfolio-avatar-stack figure:first-child {
	margin-left: 0 !important;
}

.postfolio-avatar-stack img {
	border: 2px solid var(--wp--preset--color--contrast);
}

.postfolio-stars {
	color: #f5b400;
	letter-spacing: 0.1em;
}

.postfolio-hero-visual {
	position: relative;
}

.postfolio-hero-visual .wp-block-image img {
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.postfolio-hero-float {
	position: absolute;
	bottom: 2rem;
	left: -2rem;
	box-shadow: var(--wp--preset--shadow--elevated);
}

.postfolio-hero-float p {
	margin: 0;
}

.postfolio-service-card {
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.postfolio-service-card:hover {
	border-color: var(--wp--preset--color--accent) !important;
	box-shadow: var(--wp--preset--shadow--card);
	transform: translateY(-4px);
}

.postfolio-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.9rem;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

.postfolio-work-card .wp-block-image {
	overflow: hidden;
	border-radius: 1.25rem;
}

.postfolio-work-card .wp-block-image img {
	transition: transform 0.5s ease;
}

.postfolio-work-card:hover .wp-block-image img {
	transform: scale(1.04);
}

.postfolio-work-card h3,
.postfolio-work-card p {
	margin: 0;
}

.postfolio-result-pill {
	padding: 0.25em 0.8em;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

/* Process: numbered steps joined by a line on wide screens. */
.postfolio-step {
	position: relative;
	padding-top: 1rem;
}

.postfolio-step__number {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 0.75rem !important;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

@media (min-width: 900px) {
	.postfolio-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: calc(1rem + 1.625rem);
		left: 3.5rem;
		right: -1rem;
		height: 2px;
		background: linear-gradient(90deg, var(--wp--preset--color--accent), color-mix(in srgb, var(--wp--preset--color--accent) 15%, transparent));
	}
}

/* Pricing: equal-height cards, the featured plan lifted. */
.postfolio-pricing {
	align-items: stretch;
}

.postfolio-plan {
	height: 100%;
}

.postfolio-plan.is-featured {
	box-shadow: var(--wp--preset--shadow--elevated);
}

/* Headings default to the contrast color, which is this card's background. */
.postfolio-plan.is-featured :is(h1, h2, h3, h4) {
	color: inherit;
}

.postfolio-trust p,
.postfolio-hero-pill {
	margin: 0;
}

@media (min-width: 900px) {
	.postfolio-plan.is-featured {
		transform: scale(1.04);
	}
}

.postfolio-plan__badge {
	padding: 0.2em 0.75em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-weight: 700;
}

.postfolio-plan__price strong {
	font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.postfolio-plan__price span {
	opacity: 0.72;
}

.postfolio-checklist {
	flex: 1;
	margin: 0;
	padding: 1rem 0 0;
	border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	list-style: none;
}

.postfolio-checklist li {
	position: relative;
	padding: 0.4rem 0 0.4rem 1.75rem;
}

.postfolio-checklist li::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	left: 0;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.postfolio-plan.is-featured .postfolio-checklist li::before {
	background-color: var(--wp--preset--color--accent);
}

.postfolio-plan__cta {
	width: 100%;
}

@media (max-width: 781px) {
	.postfolio-agency-hero {
		padding-top: 8rem !important;
	}

	.postfolio-hero-float {
		left: 1rem;
		bottom: 1rem;
	}

	.postfolio-hero-visual .wp-block-image img {
		aspect-ratio: 4 / 3 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.postfolio-service-card,
	.postfolio-work-card .wp-block-image img {
		transition: none;
		transform: none !important;
	}
}

/* ---------- Portfolio ---------- */
.postfolio-availability {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.55em;
	margin: 0;
	padding: 0.35em 0.95em 0.35em 0.8em;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 999px;
	font-weight: 600;
}

.postfolio-availability::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 0.25em rgba(22, 163, 74, 0.2);
}

.postfolio-hero-stats p {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

.postfolio-hero-stats strong {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	line-height: 1.1;
}

.postfolio-tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.postfolio-tag-row a {
	padding: 0.2em 0.75em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 18%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

.postfolio-tag-row a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.postfolio-tag-row .wp-block-post-terms__separator {
	display: none;
}

.postfolio-work-card .wp-block-post-featured-image {
	overflow: hidden;
}

.postfolio-work-card .wp-block-post-featured-image img {
	transition: transform 0.5s ease;
}

.postfolio-work-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

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

.postfolio-work-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.postfolio-lede {
	max-width: 42rem;
}

.postfolio-experience-row p {
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.postfolio-work-card .wp-block-post-featured-image img {
		transition: none;
		transform: none !important;
	}
}

/* Secondary text that must work on any background, light or dark. */
.postfolio-muted {
	opacity: 0.72;
}

/* ---------- Breaking news ticker ---------- */
.postfolio-ticker {
	position: relative;
	overflow: hidden;
	min-height: 2.75rem;
}

.postfolio-ticker__label {
	position: relative;
	z-index: 2;
	flex: none;
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	padding: 0 1.1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.postfolio-ticker__label::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
	animation: postfolio-pulse 1.6s ease-in-out infinite;
}

.postfolio-ticker__track {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 3rem), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 3rem), transparent);
}

.postfolio-ticker .wp-block-post-template {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.postfolio-ticker .wp-block-post-template > li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0.7rem 1.5rem;
	white-space: nowrap;
}

.postfolio-ticker .wp-block-post-template > li::after {
	content: "";
	width: 0.35rem;
	height: 0.35rem;
	margin-left: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.postfolio-ticker .wp-block-post-title {
	margin: 0;
	color: inherit; /* headings default to "contrast", which matches the bar */
	font-weight: 600;
	line-height: 1.3;
}

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

.postfolio-ticker .wp-block-post-title a:hover,
.postfolio-ticker .wp-block-post-title a:focus-visible {
	text-decoration: underline;
}

.postfolio-ticker.is-ready .wp-block-post-template {
	animation: postfolio-ticker var(--postfolio-ticker-duration, 40s) linear infinite;
}

.postfolio-ticker.is-ready:hover .wp-block-post-template,
.postfolio-ticker.is-ready:focus-within .wp-block-post-template,
.postfolio-ticker.is-paused .wp-block-post-template {
	animation-play-state: paused;
}

.postfolio-ticker__toggle {
	position: relative;
	z-index: 2;
	flex: none;
	width: 2.75rem;
	align-self: stretch;
	border: 0;
	border-left: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.postfolio-ticker__toggle span {
	display: block;
	width: 10px;
	height: 12px;
	margin: auto;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.postfolio-ticker__toggle[aria-pressed="true"] span {
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 10px solid currentColor;
	border-right: 0;
}

.postfolio-ticker__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -4px;
}

@keyframes postfolio-ticker {
	to {
		transform: translateX(-50%);
	}
}

@keyframes postfolio-pulse {
	50% {
		opacity: 0.35;
	}
}

/* ---------- News top bar ---------- */
.postfolio-top-bar p {
	margin: 0;
}

.postfolio-top-bar__date {
	font-weight: 600;
}

.postfolio-trending-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0;
}

.postfolio-trending-tags a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	white-space: nowrap;
}

.postfolio-trending-tags a::before {
	content: "#";
	color: var(--wp--preset--color--accent);
}

.postfolio-trending-tags a:hover {
	color: var(--wp--preset--color--accent);
}

.postfolio-top-bar__toggle .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.9em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.postfolio-top-bar__toggle .wp-block-button__link::before {
	content: "\263E";
}

.postfolio-is-dark .postfolio-top-bar__toggle .wp-block-button__link::before {
	content: "\2600";
}

/* The switch only works when the Dark mode module is on. */
body:not(.postfolio-has-dark-mode) .wp-block-button.is-style-theme-toggle {
	display: none;
}

@media (max-width: 781px) {
	.postfolio-top-bar__trending,
	.postfolio-top-bar__social {
		display: none !important;
	}
}

/* ---------- Ad slots: space is reserved so the page never jumps ---------- */
.postfolio-ad {
	margin-left: auto;
	margin-right: auto;
}

.postfolio-ad__label {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.postfolio-ad__slot {
	width: 100%;
	overflow: hidden;
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--contrast) 25%, transparent);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--base-2);
}

/* Once real ad code is inside, drop the placeholder look. */
.postfolio-ad__slot:has(iframe, ins, script, img) {
	border: 0;
	background: transparent;
}

.postfolio-ad__size {
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.postfolio-ad--leaderboard .postfolio-ad__slot {
	max-width: 728px;
	min-height: 90px;
}

.postfolio-ad--rectangle .postfolio-ad__slot {
	max-width: 300px;
	min-height: 250px;
}

.postfolio-ad--in-article {
	padding: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--base-2);
	border-bottom: 1px solid var(--wp--preset--color--base-2);
}

.postfolio-ad--in-article .postfolio-ad__slot {
	min-height: 250px;
}

@media (max-width: 781px) {
	.postfolio-ad--leaderboard .postfolio-ad__slot {
		max-width: 320px;
		min-height: 100px;
	}
}

/* ---------- Live blog ---------- */
.postfolio-live__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.postfolio-live__badge::before {
	content: "";
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: currentColor;
	animation: postfolio-pulse 1.4s ease-in-out infinite;
}

.postfolio-live__summary ul {
	margin: 0;
	padding-left: 1.2em;
}

.postfolio-live__timeline {
	position: relative;
	padding-left: 2rem;
}

.postfolio-live__timeline::before {
	content: "";
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: 0.45rem;
	width: 2px;
	background: var(--wp--preset--color--base-2);
}

.postfolio-live__entry {
	position: relative;
	padding-bottom: var(--wp--preset--spacing--30);
}

.postfolio-live__entry + .postfolio-live__entry {
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--base-2);
}

.postfolio-live__entry::before {
	content: "";
	position: absolute;
	top: 0.35rem;
	left: -1.95rem;
	width: 0.85rem;
	height: 0.85rem;
	border: 3px solid var(--wp--preset--color--base);
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

.postfolio-live__entry + .postfolio-live__entry::before {
	top: calc(var(--wp--preset--spacing--30) + 0.35rem);
}

.postfolio-live__entry.is-pinned::before {
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent), 0 0 0 6px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent);
}

.postfolio-live__time {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* ---------- Category archive ---------- */
.postfolio-subcategories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-top: 0.5rem;
}

.postfolio-subcategories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.postfolio-subcategories a {
	display: inline-flex;
	gap: 0.4em;
	padding: 0.35em 0.9em;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.postfolio-subcategories a span {
	color: var(--wp--preset--color--contrast-2);
	font-weight: 400;
}

.postfolio-subcategories a:hover {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

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

/* ---------- Post formats ---------- */
.postfolio-format-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

p.has-text-align-center.postfolio-format-badge {
	display: table;
	margin-left: auto;
	margin-right: auto;
}

/* Video: the first video or embed fills the wide width of the dark stage. */
.postfolio-format-video .wp-block-post-content > :is(.wp-block-video, .wp-block-embed):first-child {
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
}

.postfolio-format-video .wp-block-post-content > :is(.wp-block-video, .wp-block-embed):first-child :is(video, iframe) {
	border-radius: 1rem;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.postfolio-format-video .wp-block-post-terms a,
.postfolio-format-video .wp-block-post-author-name a {
	color: inherit;
}

/* Gallery: galleries and images break out to the wide width. */
.postfolio-format-gallery .wp-block-post-content > :is(.wp-block-gallery, .wp-block-image) {
	max-width: var(--wp--style--global--wide-size);
	margin-left: auto;
	margin-right: auto;
}

.postfolio-format-gallery .wp-block-gallery img {
	border-radius: 0.75rem;
}

/* Quote: the quote is the hero. */
.postfolio-format-quote .wp-block-quote {
	position: relative;
	margin: 0;
	padding: 4.5rem 0 0;
	border: 0;
	text-align: center;
}

.postfolio-format-quote .wp-block-quote::before {
	content: "\201C";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	color: var(--wp--preset--color--accent);
	font-family: Georgia, serif;
	font-size: 6rem;
	line-height: 1;
}

.postfolio-format-quote .wp-block-quote p {
	font-family: var(--wp--preset--font-family--playfair-display, Georgia, serif);
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
	font-style: italic;
	line-height: 1.3;
}

.postfolio-format-quote .wp-block-quote cite {
	display: block;
	margin-top: 1rem;
	color: var(--wp--preset--color--contrast-2);
	font-style: normal;
	font-weight: 600;
}

/* Audio: podcast-style cover art and a full-width player. */
.postfolio-cover-art img {
	box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.45);
}

.postfolio-format-audio .wp-block-audio audio {
	width: 100%;
}

.postfolio-format-audio .wp-block-audio {
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--base-2);
	border-radius: 999px;
}

/* ---------- Author archive hero ---------- */
.postfolio-author-hero p {
	margin: 0;
}

.postfolio-author-hero-avatar {
	flex: none;
}

.postfolio-author-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	color: var(--wp--preset--color--contrast-2);
}

.postfolio-author-hero-stats strong {
	color: var(--wp--preset--color--contrast);
	font-size: 1.1em;
}

.postfolio-author-social .wp-social-link {
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}

@media (max-width: 600px) {
	.postfolio-author-hero__inner {
		flex-direction: column;
		align-items: flex-start !important;
	}

	.postfolio-author-hero-avatar img {
		width: 96px !important;
		height: 96px !important;
	}
}

/* ---------- Case study ---------- */
.postfolio-case-study__lede {
	max-width: 46rem;
}

.postfolio-case-heading {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.postfolio-case-facts p {
	margin: 0;
}

.postfolio-case-quote {
	margin: var(--wp--preset--spacing--40) 0;
	padding-left: 1.25rem;
	border-left: 4px solid var(--wp--preset--color--accent);
}

.postfolio-case-quote p {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.35;
}

.postfolio-case-quote cite {
	color: var(--wp--preset--color--contrast-2);
	font-style: normal;
}

.postfolio-next-project a {
	color: inherit;
	text-decoration: none;
}

.postfolio-next-project a:hover {
	text-decoration: underline;
}

.postfolio-case-study__cta .postfolio-kicker {
	opacity: 0.72;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	/* The ticker becomes a static list visitors can scroll sideways. */
	.postfolio-ticker__track {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.postfolio-ticker .wp-block-post-template,
	.postfolio-ticker__label::before,
	.postfolio-live__badge::before {
		animation: none !important;
	}

	.is-style-card,
	.is-style-card .wp-block-post-featured-image img,
	.postfolio-spotlight-primary .wp-block-cover__image-background,
	.postfolio-story-card .wp-block-post-featured-image img,
	.postfolio-row-item,
	.postfolio-logo-cloud img,
	.skip-link {
		transition: none !important;
		transform: none !important;
	}
}

/* ---------- Post meta row: dot separators ---------- */
.postfolio-meta-row > .wp-block-post-date::before,
.postfolio-meta-row > .wp-block-post-time-to-read::before {
	content: "\00B7";
	margin-right: 0.6rem;
	color: var(--wp--preset--color--contrast-2, #54545e);
}

.postfolio-meta-row > :first-child::before {
	content: none !important;
}

.postfolio-logo-cloud .wp-block-image img {
	width: 100%;
	max-width: 160px;
	height: auto;
}
