/*
 * Auriic Services - blog styles (listing, archives, single posts).
 * Loaded only on blog views (see inc/assets.php). Every rule is scoped to a
 * blog container so the header, footer, homepage and service pages are untouched.
 *
 * Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 px (.25rem steps).
 */
:root {
	--post-col: 760px;
	--post-text: #2c3335;
}

/* ---------- Single post: header ---------- */
.post-hero .wrap {
	max-width: var(--post-col);
}
.post-hero .crumb {
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}
.post-hero .crumb span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}
.post-hero .meta {
	flex-wrap: wrap;
	row-gap: .5rem;
	margin-bottom: 1rem;
}
.post-hero h1 {
	font-size: clamp(1.875rem, 1.1rem + 3vw, 3.25rem);
	line-height: 1.14;
	letter-spacing: -.03em;
	max-width: 24ch;
	margin-bottom: 0;
	overflow-wrap: break-word;
	text-wrap: balance;
}
.post-hero h1 .ln {
	padding-bottom: .12em;
}
.post-hero.phero {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- Single post: body column ---------- */
.post-body {
	max-width: var(--post-col);
	margin-inline: auto;
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
	color: var(--post-text);
	font-size: 1.125rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}
.post-body > :first-child {
	margin-top: 0;
}

/* Featured image: keep its natural ratio so nothing is cropped. */
.post-cover.ph {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	border-radius: var(--r);
	aspect-ratio: auto;
}
.post-cover.ph img {
	width: 100%;
	height: auto;
}

/* Text */
.post-body p {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--post-text);
	margin: 0 0 1.25em;
}
.post-body strong,
.post-body b {
	color: var(--ink);
	font-weight: 600;
}

/* Headings */
.post-body h2,
.post-body h3,
.post-body h4 {
	color: var(--ink);
	max-width: none;
	scroll-margin-top: 110px;
}
.post-body h2 {
	font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2rem);
	line-height: 1.2;
	letter-spacing: -.025em;
	margin: 2.5rem 0 1rem;
}
.post-body h3 {
	font-size: clamp(1.2rem, 1.08rem + .5vw, 1.4rem);
	line-height: 1.3;
	letter-spacing: -.015em;
	margin: 2rem 0 .75rem;
}
.post-body h4 {
	font-size: 1.1rem;
	line-height: 1.35;
	letter-spacing: -.01em;
	margin: 1.5rem 0 .5rem;
}
.post-body h2 + h3 {
	margin-top: 1.25rem;
}

/* Links */
.post-body a:not(.btn) {
	color: var(--teal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
	transition: color .2s, text-decoration-color .2s;
}
.post-body a:not(.btn):hover {
	color: var(--deep);
	text-decoration-thickness: 2px;
}
.post-body a strong,
.post-body a b {
	color: inherit;
}

/* Lists */
.post-body ul,
.post-body ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}
.post-body li {
	margin: 0 0 .5em;
	padding-left: .25em;
	line-height: 1.7;
}
.post-body li:last-child {
	margin-bottom: 0;
}
.post-body li > ul,
.post-body li > ol {
	margin: .5em 0 0;
}
.post-body ul li::marker {
	color: var(--teal);
}
.post-body ol li::marker {
	color: var(--teal);
	font-weight: 600;
}

/* Quotes and callouts */
.post-body blockquote,
.post-body .wp-block-quote,
.post-body .wp-block-pullquote {
	margin: 2rem 0;
	padding: 1.5rem 1.75rem;
	border-left: 4px solid var(--gold);
	background: var(--sage);
	border-radius: 0 16px 16px 0;
	font: 600 1.2rem/1.5 var(--display);
	color: var(--ink);
}
.post-body blockquote p {
	font: inherit;
	color: inherit;
	margin: 0 0 .75em;
}
.post-body blockquote p:last-child {
	margin-bottom: 0;
}
.post-body blockquote cite {
	display: block;
	margin-top: .75rem;
	font: 500 .875rem var(--body);
	color: var(--mu);
	font-style: normal;
}

/* Images, figures, embeds */
.post-body img,
.post-body video,
.post-body iframe {
	max-width: 100%;
	height: auto;
}
.post-body img {
	border-radius: 16px;
}
.post-body figure,
.post-body .wp-block-image,
.post-body .wp-block-embed {
	margin: 2rem 0;
}
.post-body > p > img {
	margin: 2rem 0;
}
.post-body figcaption,
.post-body .wp-element-caption {
	margin-top: .75rem;
	font-size: .875rem;
	line-height: 1.5;
	color: var(--mu);
	text-align: center;
}
.post-body .alignleft {
	float: left;
	margin: .25rem 1.5rem 1rem 0;
	max-width: 50%;
}
.post-body .alignright {
	float: right;
	margin: .25rem 0 1rem 1.5rem;
	max-width: 50%;
}
.post-body .aligncenter {
	margin-inline: auto;
}
.post-body iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}

/* Tables: scroll inside the column instead of stretching the page. */
.post-body table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	margin: 2rem 0;
	border-collapse: collapse;
	font-size: .975rem;
	line-height: 1.5;
}
.post-body .wp-block-table {
	margin: 2rem 0;
	overflow-x: auto;
}
.post-body .wp-block-table table {
	display: table;
	margin: 0;
}
.post-body th,
.post-body td {
	padding: .75rem 1rem;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.post-body th {
	background: var(--sage);
	font: 600 .9rem var(--display);
	color: var(--ink);
}

/* Code */
.post-body code {
	font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--sage);
	padding: .15em .4em;
	border-radius: 6px;
	overflow-wrap: anywhere;
}
.post-body pre {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	background: var(--ink);
	color: #e8efec;
	border-radius: 16px;
	overflow-x: auto;
	font-size: .9rem;
	line-height: 1.6;
}
.post-body pre code {
	background: none;
	padding: 0;
	color: inherit;
	overflow-wrap: normal;
}

.post-body hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.5rem 0;
}

/* Clear floats before the post footer. */
.post-body::after {
	content: "";
	display: table;
	clear: both;
}

/* Post footer actions */
.post-actions {
	clear: both;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

/* ---------- Blog listing / archives ---------- */
.blog-list {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
.blog-list .filters {
	margin-bottom: 2rem;
}
.blog-list .grid {
	gap: 24px;
	align-items: stretch;
}
/* Card images use the featured-image ratio (1200x630) so they are not cropped. */
.blog-list .post .th {
	aspect-ratio: 1200 / 630;
}
.blog-list .post .bd {
	padding: 24px 24px 28px;
	gap: 12px;
}
.blog-list .post .meta {
	flex-wrap: wrap;
	row-gap: .5rem;
}
.blog-list .post h3 {
	font-size: 1.2rem;
	line-height: 1.3;
	letter-spacing: -.015em;
	overflow-wrap: break-word;
}
.blog-list .post p {
	font-size: .95rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.blog-list .post .more {
	margin-top: auto;
	padding-top: 8px;
}
.blog-list .post.feat .th {
	flex: 0 0 55%;
	min-height: 0;
	aspect-ratio: 1200 / 630;
	align-self: center;
}
.blog-list .post.feat .bd {
	padding: clamp(28px, 4vw, 56px);
	gap: 16px;
}
.blog-list .post.feat h3 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
	line-height: 1.2;
}
.blog-list .post.feat p {
	font-size: 1rem;
	-webkit-line-clamp: 4;
}
.blog-list .post.feat .more {
	margin-top: 8px;
}

/* Pagination (the_posts_pagination and paginate_links) */
.blog-list .pagination,
.blog-list .blog-pager {
	margin-top: 3rem;
}
.blog-list .nav-links,
.blog-list .blog-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.blog-list .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 40px;
	border: 1px solid var(--line);
	background: #fff;
	font: 600 .9rem var(--display);
	color: var(--ink);
	text-decoration: none;
	transition: border-color .2s, background .2s, color .2s;
}
.blog-list a.page-numbers:hover {
	border-color: var(--teal);
	color: var(--teal);
}
.blog-list .page-numbers.current {
	background: var(--deep);
	border-color: var(--deep);
	color: #fff;
}
.blog-list .page-numbers.dots {
	border: 0;
	background: none;
	min-width: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.blog-list .post.feat .th {
		flex: none;
		align-self: stretch;
	}
}
@media (max-width: 620px) {
	.post-body,
	.post-body p {
		font-size: 1.0625rem;
		line-height: 1.7;
	}
	.post-body blockquote,
	.post-body .wp-block-quote {
		padding: 1.25rem 1.25rem;
		font-size: 1.1rem;
	}
	.post-body .alignleft,
	.post-body .alignright {
		float: none;
		max-width: 100%;
		margin: 1.5rem 0;
	}
	.post-cover.ph {
		border-radius: 18px;
	}
	.post-actions .btn {
		flex: 1 1 100%;
		justify-content: center;
		text-align: center;
	}
	.blog-list .grid {
		gap: 20px;
	}
	.blog-list .post .bd {
		padding: 20px 20px 24px;
	}
}

/* ==========================================================
 * Single post: two-column layout with sidebar (added v2)
 * ========================================================== */
:root {
	--post-wide: 1128px;
	--aside-w: 320px;
}
.post-hero .wrap {
	max-width: var(--post-wide);
}
.post-hero .meta a.tag {
	text-decoration: none;
}
.post-hero .meta .dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--mu);
	opacity: .5;
}
.post-lede {
	margin-top: 1.25rem;
	max-width: 62ch;
	color: var(--mu);
	font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
	line-height: 1.6;
}
.post-layout {
	max-width: var(--post-wide);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.post-layout .post-body {
	max-width: var(--post-col);
	width: 100%;
	margin: 0 auto;
	padding-bottom: 0;
}
.post-aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: var(--post-col);
	width: 100%;
	margin: 0 auto;
}

/* Sidebar cards */
.aside-card {
	background: var(--sage);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 24px;
}

/* Sidebar: thin brand-colored scrollbar */
.post-aside {
	scrollbar-width: thin;
	scrollbar-color: var(--teal) transparent;
}
.post-aside::-webkit-scrollbar {
	width: 6px;
}
.post-aside::-webkit-scrollbar-track {
	background: transparent;
}
.post-aside::-webkit-scrollbar-thumb {
	background: var(--teal);
	border-radius: 10px;
}
.post-aside::-webkit-scrollbar-thumb:hover {
	background: var(--deep);
}
.post-aside .aside-title {
	font: 700 1rem/1.3 var(--display);
	letter-spacing: -.01em;
	color: var(--ink);
	max-width: none;
	margin: 0 0 12px;
}

/* Table of contents */
.toc ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 2px;
}
.toc a {
	display: block;
	padding: 8px 12px;
	border-left: 2px solid var(--line);
	border-radius: 0 10px 10px 0;
	color: var(--mu);
	font: 500 .9rem/1.4 var(--body);
	text-decoration: none;
	transition: color .2s, background .2s, border-color .2s;
}
.toc a:hover {
	color: var(--teal);
	background: var(--sage);
}
.toc a[aria-current] {
	color: var(--deep);
	font-weight: 600;
	background: var(--sage);
	border-left-color: var(--gold);
}
.toc-progress {
	margin-top: 16px;
	height: 3px;
	border-radius: 3px;
	background: var(--line);
	overflow: hidden;
}
.toc-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--teal), var(--gold));
	transform: scaleX(0);
	transform-origin: left;
}
.toc-inline {
	margin: 0 0 2rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 4px 20px;
}
.toc-inline summary {
	cursor: pointer;
	padding: 14px 0;
	font: 700 1rem var(--display);
	color: var(--ink);
	list-style-position: inside;
}
.toc-inline[open] summary {
	border-bottom: 1px solid var(--line);
	margin-bottom: 8px;
}
.toc-inline ol {
	padding-bottom: 12px;
}
.post-body .toc-inline a {
	color: var(--mu);
	text-decoration: none;
}

/* Contact card */
.aside-cta {
	background: var(--deep);
	border-color: var(--deep);
	color: #fff;
}
.aside-cta .eyebrow {
	color: var(--gold2);
	margin-bottom: 12px;
	font-size: .72rem;
}
.post-aside .aside-cta .aside-title {
	color: #fff;
	font-size: 1.35rem;
	line-height: 1.25;
	margin-bottom: 8px;
}
.aside-cta p {
	color: #d4eae3;
	font-size: .95rem;
	line-height: 1.6;
	margin: 0 0 20px;
}
.aside-cta .btn {
	width: 100%;
	justify-content: center;
	padding: 14px 20px;
}
.aside-cta .btn svg {
	width: 16px;
	height: 16px;
}
.aside-mail {
	display: block;
	margin-top: 14px;
	text-align: center;
	color: #d4eae3;
	font-size: .88rem;
	text-underline-offset: .2em;
}
.aside-mail:hover {
	color: var(--gold2);
}

/* Related services */
.aside-services ul {
	list-style: none;
	padding: 0;
	margin: 0 0 8px;
}
.aside-services li + li {
	border-top: 1px solid var(--line);
}
.aside-services li a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
}
.aside-services strong {
	display: block;
	font: 700 .95rem/1.3 var(--display);
	color: var(--ink);
	transition: color .2s;
}
.aside-services small {
	display: block;
	margin-top: 4px;
	font-size: .82rem;
	line-height: 1.45;
	color: var(--mu);
}
.aside-services li a:hover strong {
	color: var(--teal);
}
.aside-services .more {
	margin-top: 4px;
}

/* Share row */
.post-share {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.post-share > span {
	font: 700 .95rem var(--display);
	color: var(--ink);
}
.share-links {
	display: flex;
	gap: 10px;
}
.post-body .share-links a,
.share-links button {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--deep);
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.post-body .share-links a:hover,
.share-links button:hover,
.share-links button.ok {
	background: var(--deep);
	border-color: var(--deep);
	color: #fff;
}
.share-links svg {
	width: 18px;
	height: 18px;
}
.share-done:not(:empty) {
	position: absolute;
	bottom: calc(100% + 8px);
	right: 0;
	white-space: nowrap;
	background: var(--ink);
	color: #fff;
	font: 600 .75rem var(--body);
	padding: 4px 10px;
	border-radius: 6px;
}
.post-share + .post-actions {
	border-top: 0;
	padding-top: 0;
	margin-top: 1.5rem;
}

/* Keep reading */
.post-more {
	max-width: var(--post-wide);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.post-more h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	max-width: none;
	margin-bottom: 1.5rem;
}
.post-more .post .th {
	aspect-ratio: 1200 / 630;
}
.post-more .post .bd {
	padding: 20px 24px 24px;
	gap: 10px;
}
.post-more .post h3 {
	font-size: 1.1rem;
	line-height: 1.3;
}
.post-more .post .more {
	margin-top: auto;
}

/* Stacked (phones, tablets): contact card first, page-level contents inline */
.toc-side {
	display: none;
}
.aside-cta {
	order: 1;
}
.aside-services {
	order: 2;
}

/* Below the two-column breakpoint the header matches the single text column. */
@media (max-width: 1099px) {
	.post-hero .wrap {
		max-width: var(--post-col);
	}
}

/* Two columns from 1100px */
@media (min-width: 1100px) {
	.post-layout {
		grid-template-columns: minmax(0, var(--post-col)) var(--aside-w);
		justify-content: space-between;
	}
	.post-layout .post-body,
	.post-aside {
		margin: 0;
		max-width: none;
	}
	.toc-inline {
		display: none;
	}
	.toc-side {
		display: block;
		order: 1;
	}
	.aside-services {
		order: 2;
	}
	.aside-cta {
		order: 3;
	}
}
@media (max-width: 620px) {
	.aside-card {
		padding: 20px;
	}
	.post-share {
		flex-direction: column;
		align-items: flex-start;
	}
}
/* ==========================================================
 * v3: sidebar starts level with the H1
 * ========================================================== */
.post-layout.post-hero {
	padding-top: clamp(140px, 15vw, 200px);
	grid-template-areas: "head" "main" "aside";
	row-gap: 0;
}
.post-head {
	grid-area: head;
}
.post-main {
	grid-area: main;
	min-width: 0;
}
.post-layout.post-hero .post-aside {
	grid-area: aside;
	margin-top: 48px;
}
.post-head,
.post-main {
	max-width: var(--post-col);
	width: 100%;
	margin-inline: auto;
}
.post-title {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.post-layout .post-main .post-body {
	max-width: none;
}
@media (min-width: 1100px) {
	.post-layout.post-hero {
		grid-template-areas: "head ." "main aside";
		column-gap: 48px;
	}
	.post-head,
	.post-main {
		max-width: none;
		margin: 0;
	}
	.post-layout.post-hero .post-aside {
		margin-top: 0;
		align-self: start;
		position: sticky;
		top: 110px;
		max-height: calc(100vh - 130px);
		overflow-y: auto;
	}
	.post-title h1 {
		max-width: none;
	}
}
/* ==========================================================
 * Services built in the block editor (single-auriic_service.php)
 * ========================================================== */
.svc-hero .lead {
	margin-bottom: 30px;
}
.svc-hero.band .txt {
	max-width: 820px;
}
.svc-body-sec {
	padding: clamp(48px, 7vw, 96px) 0;
}
.svc-body {
	max-width: var(--post-col);
	margin-inline: 0; /* left edge matches the hero and the sections below */
	padding-bottom: 0;
}
.svc-body > h2:first-child {
	margin-top: 0;
}
.svc-more {
	padding: 0 0 clamp(56px, 8vw, 110px);
}
.svc-more .head {
	margin-bottom: 28px;
}
.svc-more .head h2 {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
	max-width: none;
}
.svc-more-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.svc-more-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-decoration: none;
	color: var(--ink);
	transition: transform .35s, border-color .35s, box-shadow .35s;
}
.svc-more-card:hover {
	transform: translateY(-6px);
	border-color: var(--teal);
	box-shadow: 0 22px 44px #00564818;
}
.svc-more-card .ico {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--sage);
	color: var(--teal);
	display: grid;
	place-items: center;
}
.svc-more-card .ico svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.svc-more-card strong {
	font: 700 1.1rem/1.3 var(--display);
}
.svc-more-card small {
	color: var(--mu);
	font-size: .92rem;
	line-height: 1.55;
	flex: 1;
}
.svc-more-card .more {
	margin-top: 6px;
}
@media (max-width: 900px) {
	.svc-more-grid {
		grid-template-columns: 1fr;
	}
}