/*
 * Paracha Construction – blog listing, cards and single article.
 * Builds on the tokens and components in paracha.css.
 */

.pc-page-hero--blog {
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* ------------------------------------------------------------------ *
 * Category pills
 * ------------------------------------------------------------------ */
.pc-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.pc-cat-pills li {
	margin: 0;
}

.pc-cat-pills a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 100px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .3s, border-color .3s, color .3s;
}

.pc-cat-pills a:hover,
.pc-cat-pills .current-cat a {
	background: var(--pc-yellow);
	border-color: var(--pc-yellow);
	color: var(--pc-ink);
}

/* ------------------------------------------------------------------ *
 * Listing
 * ------------------------------------------------------------------ */
.pc-blog > * {
	max-width: var(--pc-max) !important;
}

.pc-blog__head {
	margin: clamp(48px, 6vw, 80px) auto 24px !important;
}

.pc-post-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pc-blog-featured .pc-post-grid {
	grid-template-columns: minmax(0, 1fr);
}

.pc-post-grid > li {
	margin: 0 !important;
}

.pc-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--pc-line);
	border-radius: var(--pc-radius);
	background: #fff;
	overflow: hidden;
	transition: transform .5s var(--pc-ease), box-shadow .5s var(--pc-ease), border-color .3s;
}

.pc-post-card:hover {
	transform: translateY(-6px);
	border-color: transparent;
	box-shadow: 0 30px 60px -30px rgba(15, 17, 20, .45);
}

.pc-post-card > * {
	margin: 0 !important;
}

.pc-post-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--pc-ink);
}

.pc-post-card__image a,
.pc-post-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.pc-post-card__image img {
	transition: transform 1.2s var(--pc-ease);
}

.pc-post-card:hover .pc-post-card__image img {
	transform: scale(1.06);
}

.pc-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 24px 26px 26px;
}

.pc-post-card__body > * {
	margin: 0 !important;
}

.pc-post-cat,
.pc-post-cat a {
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pc-ink);
	text-decoration: none !important;
}

.pc-post-cat a {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 3px;
	background: var(--pc-yellow);
}

.pc-post-cat .wp-block-post-terms__separator {
	display: none;
}

.pc-post-card__title {
	font-size: clamp(19px, 1.5vw, 22px) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: -.01em;
}

.pc-post-card__title a {
	color: var(--pc-ink);
	text-decoration: none !important;
	background: linear-gradient(var(--pc-yellow), var(--pc-yellow)) no-repeat 0 100% / 0 2px;
	transition: background-size .5s var(--pc-ease);
}

.pc-post-card:hover .pc-post-card__title a {
	background-size: 100% 2px;
}

.pc-post-card__excerpt,
.pc-post-card__excerpt p {
	margin: 0;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: var(--pc-muted);
}

.pc-post-card__excerpt .wp-block-post-excerpt__more-text,
.pc-post-hero__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.pc-post-meta {
	gap: 6px 16px !important;
	margin-top: auto !important;
	padding-top: 6px;
	color: var(--pc-muted);
}

.pc-post-meta > * {
	margin: 0 !important;
	font-size: 13px !important;
}

.pc-post-meta .wp-block-post-date::before,
.pc-read-time::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
	opacity: .7;
}

.pc-post-meta .wp-block-post-date {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.pc-read-time {
	--pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.pc-post-meta .wp-block-post-date.pc-post-updated::before {
	content: "Updated ";
	width: auto;
	height: auto;
	margin-right: 2px;
	background: none;
	-webkit-mask: none;
	mask: none;
	vertical-align: baseline;
}

.pc-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--pc-ink) !important;
	text-decoration: none !important;
}

.pc-read-more::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--pc-icon-arrow) center / contain no-repeat;
	mask: var(--pc-icon-arrow) center / contain no-repeat;
	transition: transform .4s var(--pc-ease);
}

.pc-post-card:hover .pc-read-more::after {
	transform: translateX(5px);
}

/* Whole card is clickable through the "Read article" link. */
.pc-post-card .pc-read-more::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pc-post-card .pc-post-cat a,
.pc-post-card .pc-post-card__title a {
	position: relative;
	z-index: 2;
}

/* Featured article */
.pc-post-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	box-shadow: var(--pc-shadow);
}

.pc-post-card--featured .pc-post-card__image {
	aspect-ratio: auto;
	min-height: 400px;
}

.pc-post-card--featured .pc-post-card__body {
	justify-content: center;
	gap: 16px;
	padding: clamp(28px, 4vw, 56px);
}

.pc-post-card--featured .pc-post-card__title {
	font-size: clamp(26px, 2.6vw, 38px) !important;
	line-height: 1.15 !important;
	letter-spacing: -.02em;
}

.pc-post-card--featured .pc-post-card__excerpt,
.pc-post-card--featured .pc-post-card__excerpt p {
	font-size: 17px !important;
}

.pc-post-card--featured .pc-post-meta {
	margin-top: 6px !important;
}

/* Pagination */
.pc-pagination {
	gap: 8px !important;
	margin-top: 48px !important;
	font-weight: 600;
}

.pc-pagination a,
.pc-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--pc-line);
	border-radius: 4px;
	color: var(--pc-ink);
	text-decoration: none !important;
}

.pc-pagination .current,
.pc-pagination a:hover {
	background: var(--pc-ink);
	border-color: var(--pc-ink);
	color: var(--pc-yellow);
}

/* ------------------------------------------------------------------ *
 * Single article – hero
 * ------------------------------------------------------------------ */
.pc-post-hero {
	padding-top: clamp(72px, 9vw, 120px);
	padding-bottom: clamp(48px, 6vw, 80px);
	background:
		radial-gradient(90% 120% at 90% 0%, rgba(244, 212, 0, .12), transparent 55%),
		var(--pc-ink);
}

.pc-post-hero .pc-page-hero__content > * {
	max-width: 920px;
}

.pc-post-hero .pc-post-cat {
	margin-top: 22px !important;
}

.pc-post-hero__title {
	margin: 18px 0 !important;
	font-size: clamp(32px, 4.6vw, 58px) !important;
	line-height: 1.08 !important;
	letter-spacing: -.03em !important;
	text-wrap: balance;
}

.pc-post-hero__excerpt,
.pc-post-hero__excerpt p {
	margin: 0;
	color: rgba(255, 255, 255, .7);
}

.pc-post-meta--hero {
	margin-top: 26px !important;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .65);
}

.pc-post-meta__by {
	color: #fff;
	font-weight: 600;
}

/* ------------------------------------------------------------------ *
 * Single article – layout
 * ------------------------------------------------------------------ */
.pc-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
	max-width: var(--pc-max) !important;
}

.pc-post__layout > *,
.pc-post__main > *,
.pc-post__aside > * {
	margin: 0 !important;
}

.pc-post__aside {
	align-self: stretch;
}

.pc-post__image {
	margin-bottom: 40px !important;
	border-radius: var(--pc-radius);
	overflow: hidden;
}

.pc-post__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pc-aside-sticky {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 20px;
}

.admin-bar .pc-aside-sticky {
	top: 142px;
}

/* ------------------------------------------------------------------ *
 * Prose (article body)
 * ------------------------------------------------------------------ */
.pc-prose {
	font-size: 18px;
	line-height: 1.8;
	color: #2A2F37;
}

.pc-prose > * {
	margin-block: 0 1.25em;
}

.pc-prose > *:last-child {
	margin-bottom: 0;
}

.pc-prose h2 {
	margin: 2.4em 0 .7em !important;
	font-size: clamp(25px, 2.4vw, 32px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -.02em;
	color: var(--pc-ink);
	scroll-margin-top: 110px;
}

.pc-prose h2::before {
	content: "";
	display: block;
	width: 36px;
	height: 4px;
	margin-bottom: 16px;
	background: var(--pc-yellow);
}

.pc-prose h3 {
	margin: 1.8em 0 .5em !important;
	font-size: clamp(19px, 1.7vw, 22px) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--pc-ink);
	scroll-margin-top: 110px;
}

.pc-prose a {
	color: var(--pc-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--pc-yellow);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	transition: background-color .25s;
}

.pc-prose a:hover {
	background: rgba(244, 212, 0, .25);
}

.pc-prose strong {
	color: var(--pc-ink);
}

.pc-prose ul,
.pc-prose ol {
	padding-left: 0;
	list-style: none;
}

.pc-prose li {
	position: relative;
	margin-bottom: .6em;
	padding-left: 32px;
}

.pc-prose ul > li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: .7em;
	width: 9px;
	height: 9px;
	background: var(--pc-yellow);
	transform: rotate(45deg);
}

.pc-prose ol {
	counter-reset: pc-ol;
}

.pc-prose ol > li {
	counter-increment: pc-ol;
}

.pc-prose ol > li::before {
	content: counter(pc-ol);
	position: absolute;
	left: 0;
	top: .3em;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--pc-ink);
	color: var(--pc-yellow);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.pc-prose .wp-block-image img {
	border-radius: var(--pc-radius);
}

.pc-prose figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--pc-muted);
	text-align: left;
}

/* Tables */
.pc-prose .pc-table {
	margin: 1.8em 0;
	overflow-x: auto;
}

.pc-prose .pc-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.5;
}

.pc-prose .pc-table th,
.pc-prose .pc-table td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--pc-line);
	text-align: left;
	vertical-align: top;
}

.pc-prose .pc-table thead {
	border: 0;
}

.pc-prose .pc-table thead th {
	background: var(--pc-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--pc-yellow);
}

.pc-prose .pc-table tbody tr:nth-child(even) {
	background: var(--pc-bg-muted);
}

.pc-prose .pc-table td:first-child {
	font-weight: 600;
	color: var(--pc-ink);
}

/* Callout */
.pc-prose .pc-callout {
	margin: 1.8em 0;
	padding: 24px 28px;
	border-left: 4px solid var(--pc-yellow);
	border-radius: 0 var(--pc-radius) var(--pc-radius) 0;
	background: #FFFBE0;
}

.pc-prose .pc-callout > * {
	margin: 0;
}

.pc-prose .pc-callout > * + * {
	margin-top: 8px;
}

.pc-prose .pc-callout__title {
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* In-article CTA */
.pc-prose .pc-post-cta {
	margin: 2.4em 0;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--pc-radius);
	background:
		repeating-linear-gradient(-45deg, rgba(15, 17, 20, .04) 0 14px, transparent 14px 28px),
		linear-gradient(135deg, #F4D400, #FFC700);
	color: var(--pc-ink);
}

.pc-prose .pc-post-cta > * {
	margin: 0;
}

.pc-prose .pc-post-cta > * + * {
	margin-top: 12px;
}

.pc-prose .pc-post-cta__title {
	font-size: 24px;
	line-height: 1.25;
}

.pc-prose .pc-post-cta a:not(.wp-block-button__link) {
	text-decoration-color: var(--pc-ink);
}

.pc-prose .pc-post-cta .wp-block-buttons {
	gap: 10px;
	margin-top: 20px;
}

.pc-prose .pc-post-cta .wp-block-button__link {
	font-size: 15px;
	text-decoration: none;
}

.pc-prose .pc-post-cta .wp-block-button__link:hover {
	background-color: #000;
	color: #fff;
}

.pc-prose .pc-post-cta .is-style-outline .wp-block-button__link {
	border-color: var(--pc-ink);
	color: var(--pc-ink);
}

/* FAQ accordions */
.pc-prose .pc-faq {
	margin: 0 0 12px;
	border: 1px solid var(--pc-line);
	border-radius: var(--pc-radius);
	background: #fff;
	transition: border-color .3s, box-shadow .3s;
}

.pc-prose .pc-faq[open] {
	border-color: var(--pc-yellow);
	box-shadow: 0 18px 36px -24px rgba(15, 17, 20, .35);
}

.pc-prose .pc-faq summary {
	position: relative;
	padding: 18px 56px 18px 22px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pc-ink);
	cursor: pointer;
	list-style: none;
}

.pc-prose .pc-faq summary::-webkit-details-marker {
	display: none;
}

.pc-prose .pc-faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: var(--pc-bg-muted);
	font-size: 20px;
	font-weight: 500;
	transition: transform .35s var(--pc-ease), background-color .3s;
}

.pc-prose .pc-faq[open] summary::after {
	background: var(--pc-yellow);
	transform: rotate(45deg);
}

.pc-prose .pc-faq > p {
	margin: 0;
	padding: 0 22px 20px;
	font-size: 16.5px;
	color: var(--pc-muted);
}

/* Tags + author */
.pc-post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 48px !important;
	font-size: 14px;
	font-weight: 700;
	color: var(--pc-ink);
}

.pc-post__tags a {
	padding: 6px 12px;
	border: 1px solid var(--pc-line);
	border-radius: 100px;
	color: var(--pc-muted);
	font-weight: 500;
	text-decoration: none !important;
	transition: border-color .3s, color .3s;
}

.pc-post__tags a:hover {
	border-color: var(--pc-ink);
	color: var(--pc-ink);
}

.pc-post__tags .wp-block-post-terms__separator {
	display: none;
}

.pc-author-box {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-top: 32px !important;
	padding: 26px;
	border-radius: var(--pc-radius);
	background: var(--pc-ink);
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
	line-height: 1.6;
}

.pc-author-box img {
	flex: none;
	width: 56px;
	height: auto;
}

.pc-author-box p {
	margin: 0;
}

.pc-author-box__name {
	margin-bottom: 4px !important;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
}

.pc-author-box a {
	color: var(--pc-yellow);
}

/* ------------------------------------------------------------------ *
 * Sidebar – table of contents and CTA
 * ------------------------------------------------------------------ */
.pc-toc {
	padding: 22px 22px 18px;
	border: 1px solid var(--pc-line);
	border-radius: var(--pc-radius);
	background: #fff;
}

.pc-toc__title {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pc-ink);
}

.pc-toc ol {
	display: grid;
	gap: 2px;
	max-height: 46vh;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.pc-toc a {
	display: block;
	padding: 7px 10px;
	border-left: 2px solid var(--pc-line);
	color: var(--pc-muted);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none !important;
	transition: color .25s, border-color .25s, background-color .25s;
}

.pc-toc a:hover,
.pc-toc a.is-active {
	border-color: var(--pc-yellow);
	background: #FFFBE0;
	color: var(--pc-ink);
}

.pc-aside-cta {
	display: grid;
	gap: 10px;
	padding: 26px 24px;
	border-radius: var(--pc-radius);
	background: var(--pc-ink);
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
	line-height: 1.55;
}

.pc-aside-cta p {
	margin: 0;
}

.pc-aside-cta__title {
	color: #fff;
	font-size: 21px;
	font-weight: 700;
}

.pc-aside-cta__phone {
	color: var(--pc-yellow);
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
}

.pc-aside-cta__btn {
	display: block;
	padding: 13px;
	border-radius: 2px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: transform .3s var(--pc-ease);
}

.pc-aside-cta__btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

.pc-aside-cta__link {
	color: #fff;
	font-size: 14px;
	text-decoration: underline;
	text-decoration-color: var(--pc-yellow);
	text-underline-offset: 3px;
}

/* Related */
.pc-related .pc-section__head--split .wp-block-buttons {
	justify-content: flex-end;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.pc-post__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.pc-aside-sticky {
		position: static;
	}

	.pc-toc {
		display: none;
	}

	.pc-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pc-post-card--featured {
		grid-template-columns: minmax(0, 1fr);
	}

	.pc-post-card--featured .pc-post-card__image {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 680px) {
	.pc-post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.pc-prose {
		font-size: 17px;
	}

	.pc-related .pc-section__head--split .wp-block-buttons {
		justify-content: flex-start;
	}

	.pc-author-box {
		flex-direction: column;
	}
}
