/* ══════════════════════════════════════════
   BLOG — listing, archives, single post
   Uses the tokens declared in style.css.
   ══════════════════════════════════════════ */

.yop-blog { background: var(--white); }

.yop-dot-sep { opacity: 0.45; }

.yop-text-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--blue-1);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.25s ease;
}
.yop-text-link:hover { gap: 12px; }


/* ──────────────────────────────────────────
   LISTING HERO
   ────────────────────────────────────────── */

.yop-blog-hero {
	padding: 7rem 0 2.5rem;
	background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
}

.yop-blog-hero-title {
	margin: 1rem 0 0;
	font-size: clamp(2.1rem, 4.4vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--text);
}

.yop-blog-hero-sub {
	margin: 0.9rem 0 0;
	max-width: 620px;
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--muted);
}


/* ──────────────────────────────────────────
   LEAD POST
   ────────────────────────────────────────── */

.yop-blog-list { padding: 2.5rem 0 6rem; }

.yop-lead {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 2.75rem;
	align-items: center;
	margin-bottom: 4rem;
	padding-bottom: 4rem;
	border-bottom: 1px solid var(--gray-100);
}

.yop-lead-media {
	display: block;
	overflow: hidden;
	border-radius: var(--r-xl);
	background: var(--gray-50);
	aspect-ratio: 16 / 10;
	box-shadow: var(--shadow-card);
}

.yop-lead-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.yop-lead:hover .yop-lead-media img { transform: scale(1.04); }

.yop-lead-cat,
.yop-card-cat {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 50px;
	background: rgba(0, 140, 255, 0.1);
	color: var(--blue-1);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
}

.yop-lead-title {
	margin: 1rem 0 0;
	font-size: clamp(1.6rem, 2.6vw, 2.15rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.yop-lead-title a,
.yop-card-title a {
	color: var(--text);
	text-decoration: none;
	background-image: linear-gradient(var(--blue-1), var(--blue-1));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.35s ease, color 0.2s ease;
}

.yop-lead-title a:hover,
.yop-card-title a:hover {
	color: var(--blue-1);
	background-size: 100% 2px;
}

.yop-lead-excerpt {
	margin: 0.85rem 0 0;
	font-size: 0.97rem;
	line-height: 1.7;
	color: var(--muted);
}

.yop-lead .yop-card-meta { margin: 1.1rem 0 1.4rem; }


/* ──────────────────────────────────────────
   CARD GRID
   ────────────────────────────────────────── */

.yop-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 2.25rem 1.9rem;
}

.yop-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gray-100);
	border-radius: var(--r-lg);
	background: var(--white);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.yop-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 140, 255, 0.25);
	box-shadow: var(--shadow-md);
}

.yop-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--gray-50);
	aspect-ratio: 16 / 10;
}

.yop-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(.2, .7, .3, 1);
}

.yop-card:hover .yop-card-media img { transform: scale(1.05); }

.yop-card-media .yop-card-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

/* Placeholder when a post has no featured image */
.yop-card-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #c3cdd9;
	background: linear-gradient(135deg, #f3f7fc, #e9f1fa);
}
.yop-card-ph svg { width: 54px; height: 54px; }

.yop-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.35rem 1.45rem 1.5rem;
}

.yop-card-title {
	margin: 0 0 0.6rem;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.yop-card-excerpt {
	margin: 0 0 1.1rem;
	font-size: 0.875rem;
	line-height: 1.68;
	color: var(--muted);
}

.yop-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--muted);
}


/* ──────────────────────────────────────────
   PAGINATION / EMPTY
   ────────────────────────────────────────── */

.yop-pagination { margin-top: 3.5rem; }

.yop-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	list-style: none;
}

.yop-pagination a,
.yop-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--gray-200);
	border-radius: 11px;
	font-size: 0.87rem;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: var(--ease);
}

.yop-pagination a:hover {
	border-color: var(--blue-1);
	color: var(--blue-1);
}

.yop-pagination .current {
	border-color: transparent;
	background: var(--grad-blue);
	color: var(--white);
}

.yop-pagination .dots { border-color: transparent; }

.yop-blog-empty {
	padding: 4.5rem 2rem;
	border: 1px dashed var(--gray-200);
	border-radius: var(--r-xl);
	text-align: center;
	background: var(--gray-50);
}
.yop-blog-empty h2 { font-size: 1.4rem; font-weight: 700; }
.yop-blog-empty p  { margin: 0.6rem 0 1.4rem; color: var(--muted); }


/* ──────────────────────────────────────────
   SINGLE — header
   ────────────────────────────────────────── */

.yop-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	width: 100%;
	height: 3px;
	pointer-events: none;
}
.yop-progress i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--grad-blue);
}

.yop-post-head {
	padding: 6.5rem 0 2rem;
	background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
	text-align: center;
}

.yop-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 1.6rem;
	font-size: 0.83rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s ease;
}
.yop-back:hover { color: var(--blue-1); }

.yop-post-cat {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 50px;
	background: rgba(0, 140, 255, 0.1);
	color: var(--blue-1);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.yop-post-title {
	margin: 1.1rem auto 0;
	max-width: 860px;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--text);
}

.yop-post-standfirst {
	margin: 1.1rem auto 0;
	max-width: 680px;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--muted);
}

.yop-post-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 2rem;
	text-align: left;
}

.yop-avatar-img,
.yop-author-img { border-radius: 50%; }

.yop-post-meta-text strong {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text);
}
.yop-post-meta-text span {
	font-size: 0.8rem;
	color: var(--muted);
}

.yop-post-cover { margin: 0.5rem 0 0; }
.yop-post-cover img {
	width: 100%;
	height: auto;
	border-radius: var(--r-xl);
	box-shadow: var(--shadow-lg);
}
.yop-post-cover figcaption {
	margin-top: 0.8rem;
	font-size: 0.8rem;
	color: var(--muted);
	text-align: center;
}


/* ──────────────────────────────────────────
   SINGLE — layout + rail
   ────────────────────────────────────────── */

.yop-post-main { padding: 3.5rem 0 1rem; }

.yop-post-layout {
	display: block;
}

/* ──────────────────────────────────────────
   SINGLE — article typography
   Covers every block the editor can produce.
   ────────────────────────────────────────── */

.yop-post-content {
	width: 100%;
	font-size: 1.06rem;
	line-height: 1.8;
	color: var(--gray-700);
}

.yop-post-content > * + * { margin-top: 1.4rem; }

.yop-post-content h2,
.yop-post-content h3,
.yop-post-content h4,
.yop-post-content h5,
.yop-post-content h6 {
	margin-top: 2.8rem;
	color: var(--text);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
	scroll-margin-top: 110px;
}

.yop-post-content h2 { font-size: 1.7rem; }
.yop-post-content h3 { font-size: 1.32rem; }
.yop-post-content h4 { font-size: 1.12rem; }
.yop-post-content h5,
.yop-post-content h6 { font-size: 1rem; }

.yop-post-content a {
	color: var(--blue-1);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.yop-post-content a:hover { text-decoration-thickness: 2px; }

.yop-post-content strong { color: var(--text); font-weight: 700; }

.yop-post-content ul,
.yop-post-content ol { padding-left: 1.35rem; }
.yop-post-content li + li { margin-top: 0.5rem; }
.yop-post-content ul { list-style: disc; }
.yop-post-content ol { list-style: decimal; }
.yop-post-content li::marker { color: var(--blue-1); }

.yop-post-content blockquote {
	margin-left: 0;
	padding: 0.3rem 0 0.3rem 1.6rem;
	border-left: 3px solid var(--blue-1);
	font-size: 1.14rem;
	font-style: italic;
	color: var(--text);
}
.yop-post-content blockquote cite {
	display: block;
	margin-top: 0.7rem;
	font-size: 0.85rem;
	font-style: normal;
	color: var(--muted);
}

.yop-post-content .wp-block-pullquote {
	padding: 2rem 1.5rem;
	border-top: 2px solid var(--gray-100);
	border-bottom: 2px solid var(--gray-100);
	text-align: center;
}
.yop-post-content .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
	font-size: 1.35rem;
}

.yop-post-content img,
.yop-post-content video,
.yop-post-content iframe {
	max-width: 100%;
	height: auto;
	border-radius: var(--r-md);
}

.yop-post-content figure { margin: 2rem 0; }
.yop-post-content figcaption {
	margin-top: 0.7rem;
	font-size: 0.82rem;
	color: var(--muted);
	text-align: center;
}

/* Gutenberg wide / full alignment inside a fixed-width column */
.yop-post-content .alignwide,
.yop-post-content .alignfull {
	width: auto;
	max-width: calc(100% + 7rem);
	margin-left: -3.5rem;
	margin-right: -3.5rem;
}
.yop-post-content .alignleft {
	float: left;
	max-width: 48%;
	margin: 0.4rem 1.6rem 1.2rem 0;
}
.yop-post-content .alignright {
	float: right;
	max-width: 48%;
	margin: 0.4rem 0 1.2rem 1.6rem;
}
.yop-post-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }

.yop-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}
.yop-post-content th,
.yop-post-content td {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--gray-200);
	text-align: left;
}
.yop-post-content th {
	background: var(--gray-50);
	font-weight: 700;
	color: var(--text);
}
.yop-post-content .wp-block-table { overflow-x: auto; }

.yop-post-content code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--gray-50);
	border: 1px solid var(--gray-100);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
	color: #b4316b;
}

.yop-post-content pre {
	overflow-x: auto;
	padding: 1.2rem 1.35rem;
	border-radius: var(--r-md);
	background: var(--navy-d);
	color: #e6edf3;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.87rem;
	line-height: 1.7;
}
.yop-post-content pre code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.yop-post-content hr,
.yop-post-content .wp-block-separator {
	height: 1px;
	margin: 2.8rem 0;
	border: 0;
	background: var(--gray-200);
}

.yop-post-content .wp-block-button__link {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border-radius: 50px;
	background: var(--grad-blue);
	color: var(--white);
	font-weight: 700;
	text-decoration: none;
}

.yop-post-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; }

.yop-post-content .wp-block-gallery { gap: 1rem; }

.yop-page-links {
	display: flex;
	gap: 10px;
	margin-top: 2.5rem;
	font-size: 0.85rem;
	font-weight: 600;
}


/* ──────────────────────────────────────────
   SINGLE — tags, author, nav, related
   ────────────────────────────────────────── */

.yop-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 2.5rem 0 0;
}
.yop-post-tags a {
	padding: 6px 13px;
	border: 1px solid var(--gray-200);
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
	transition: var(--ease);
}
.yop-post-tags a:hover {
	border-color: var(--blue-1);
	color: var(--blue-1);
}

.yop-author {
	display: flex;
	gap: 1.3rem;
	margin-top: 3.5rem;
	padding: 1.9rem;
	border: 1px solid var(--gray-100);
	border-radius: var(--r-xl);
	background: var(--gray-50);
}
.yop-author-eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
}
.yop-author h2 {
	margin: 0.25rem 0 0.5rem;
	font-size: 1.12rem;
	font-weight: 700;
}
.yop-author p {
	margin: 0 0 0.8rem;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--muted);
}

.yop-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	margin-top: 2.5rem;
}
.yop-post-nav a {
	display: block;
	padding: 1.3rem 1.5rem;
	border: 1px solid var(--gray-100);
	border-radius: var(--r-lg);
	text-decoration: none;
	transition: var(--ease);
}
.yop-post-nav a:hover {
	border-color: rgba(0, 140, 255, 0.3);
	box-shadow: var(--shadow-md);
}
.yop-post-nav span {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--blue-1);
}
.yop-post-nav strong {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.97rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text);
}
.yop-post-nav-next { text-align: right; }

.yop-related {
	margin-top: 4.5rem;
	padding: 4rem 0 5rem;
	background: var(--gray-50);
}
.yop-related-title {
	margin-bottom: 2rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.yop-related .yop-card { background: var(--white); }


/* ──────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────── */

@media (max-width: 1024px) {
	.yop-post-content .alignwide,
	.yop-post-content .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
}

@media (max-width: 860px) {
	.yop-lead { grid-template-columns: 1fr; gap: 1.6rem; }
	.yop-lead-media { order: -1; }
	.yop-post-nav { grid-template-columns: 1fr; }
	.yop-post-nav-next { text-align: left; }
}

@media (max-width: 600px) {
	.yop-blog-hero { padding: 5.5rem 0 1.5rem; }
	.yop-post-head { padding: 5.5rem 0 1.5rem; }
	.yop-blog-grid { grid-template-columns: 1fr; }
	.yop-author { flex-direction: column; }
	.yop-post-content { font-size: 1rem; }
}
