/* --------------------------------------------------------------------------
 * VectorDose — Part 4: blog, search, content pages, 404.
 * Only styles specific to these views live here. Shared classes
 * (.vd-container, .vd-btn, .vd-card) come from the theme's global CSS.
 * Brand: #111 primary, #f5f5f5 secondary, #1a1a1a footer, Manrope, 8px radius.
 * -------------------------------------------------------------------------- */

.vd-content-page { padding-top: 52px; padding-bottom: 96px; }

/* Hero (blog archive, search, legal/contact pages) */
.vd-hero { padding-bottom: 36px; }
.vd-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.05em; margin: 0 0 16px; }
.vd-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #656565); margin: 0 0 14px; }
.vd-lead { max-width: 640px; color: var(--muted, #656565); font-size: 17px; line-height: 1.7; margin: 0; }
.vd-meta { color: var(--muted, #656565); font-size: 13px; font-weight: 700; margin: 14px 0 0; }
.vd-query { color: var(--ink, #111); }

/* About principles */
.vd-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 0 6px; }
.vd-principle { border: 1px solid var(--line, #dedede); border-radius: var(--radius, 8px); background: var(--card, #fff); padding: 24px; }
.vd-principle strong { display: block; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 8px; }
.vd-principle p { color: var(--muted, #656565); font-size: 14px; line-height: 1.65; margin: 0; }

/* Editorial grid (legal pages + about) */
.vd-editorial-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 74px; align-items: start; padding-top: 52px; }
.vd-prose h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.035em; margin: 48px 0 16px; }
.vd-prose h2:first-child { margin-top: 0; }
.vd-prose p { color: #414141; font-size: 16px; line-height: 1.8; margin: 0 0 18px; }
.vd-prose ul, .vd-prose ol { color: #414141; font-size: 16px; line-height: 1.8; margin: 0 0 18px; padding-left: 22px; }
.vd-prose li { margin-bottom: 8px; }
.vd-prose a { color: var(--ink, #111); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.vd-prose a:hover { text-decoration-thickness: 2px; }

.vd-content-aside { position: sticky; top: 104px; padding: 26px; background: var(--soft, #f5f5f5); border-radius: var(--radius, 8px); }
.vd-content-aside h2 { font-size: 20px; letter-spacing: -0.03em; margin: 0 0 10px; }
.vd-content-aside p { color: var(--muted, #656565); font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.vd-content-aside .vd-btn { display: inline-block; text-decoration: none; }

.vd-legal-notice { margin: 0 0 30px; padding: 18px 20px; border-radius: var(--radius, 8px); background: var(--soft, #f5f5f5); color: #414141; font-size: 14px; line-height: 1.7; }

/* Contact */
.vd-contact-layout { padding-top: 52px; max-width: 720px; }
.vd-contact-details h2 { font-size: 28px; letter-spacing: -0.035em; margin: 0 0 18px; }
.vd-contact-details p { max-width: 620px; color: var(--muted, #656565); font-size: 16px; line-height: 1.75; margin: 0 0 28px; }
.vd-contact-email { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--ink, #111); text-decoration: underline; text-underline-offset: 5px; }
.vd-contact-email:hover { text-decoration-thickness: 3px; }

/* Blog archive grid */
.vd-blog-intro-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 0 0 28px; }
.vd-blog-intro-row h2 { font-size: 30px; letter-spacing: -0.04em; margin: 0; }
.vd-blog-intro-row p { max-width: 430px; color: var(--muted, #656565); font-size: 14px; line-height: 1.65; margin: 0; }
.vd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.vd-blog-card { display: flex; min-height: 400px; flex-direction: column; overflow: hidden; border: 1px solid var(--line, #dedede); border-radius: var(--radius, 8px); background: var(--card, #fff); transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.vd-blog-card:hover { border-color: var(--ink, #111); transform: translateY(-2px); box-shadow: var(--card-hover-shadow, 0 14px 34px rgba(17, 17, 17, 0.11)); }
.vd-blog-card-image { aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: var(--soft, #f5f5f5); border-bottom: 1px solid var(--line, #dedede); }
.vd-blog-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.2s; }
.vd-blog-card:hover .vd-blog-card-image img { transform: scale(1.025); }
.vd-blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 20px; }
.vd-blog-card-label { display: inline-block; margin-bottom: 14px; color: var(--muted, #656565); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.vd-blog-card-body h2 { font-size: 22px; line-height: 1.22; letter-spacing: -0.035em; margin: 0 0 9px; }
.vd-blog-card-body h2 a { color: var(--ink, #111); text-decoration: none; }
.vd-blog-card-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.vd-blog-card-date { display: block; margin: 0 0 14px; color: var(--muted, #656565); font-size: 12px; font-weight: 700; }
.vd-blog-card-body > p { color: var(--muted, #656565); font-size: 14px; line-height: 1.65; margin: 0; }
.vd-blog-card-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; }
.vd-read-more { font-size: 13px; font-weight: 800; color: var(--ink, #111); text-decoration: none; cursor: pointer; }
.vd-read-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.vd-empty { color: var(--muted, #656565); font-size: 16px; line-height: 1.7; }

/* Pagination */
.vd-pagination { margin-top: 48px; text-align: center; }
.vd-pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; }
.vd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line, #dedede); border-radius: var(--radius, 8px); color: var(--ink, #111); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.vd-pagination .page-numbers:hover { border-color: var(--ink, #111); }
.vd-pagination .page-numbers.current { background: var(--ink, #111); border-color: var(--ink, #111); color: #fff; cursor: default; }
.vd-pagination .page-numbers.dots { border: 0; cursor: default; }

/* Single post */
.vd-blog-detail { padding-top: 42px; padding-bottom: 96px; }
.vd-back-btn { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; border: 0; background: transparent; padding: 0; color: var(--ink, #111); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.vd-back-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.vd-blog-header { max-width: 900px; margin-bottom: 38px; }
.vd-blog-header h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.06em; margin: 10px 0 20px; }
.vd-blog-meta { display: flex; align-items: center; gap: 10px; color: var(--muted, #656565); font-size: 13px; font-weight: 700; }
.vd-blog-meta span + span::before { content: "\00B7"; margin-right: 10px; }

.vd-blog-featured { width: 100%; aspect-ratio: 16/7; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line, #dedede); border-radius: var(--radius, 8px); background: var(--soft, #f5f5f5); margin: 0; }
.vd-blog-featured img { width: 100%; height: 100%; object-fit: contain; }

.vd-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 74px; align-items: start; padding-top: 52px; }
.vd-article { min-width: 0; }
.vd-article h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.04em; margin: 48px 0 16px; }
.vd-article h2:first-child { margin-top: 0; }
.vd-article p { color: #414141; font-size: 17px; line-height: 1.82; margin: 0 0 18px; }
.vd-article ul, .vd-article ol { color: #414141; font-size: 17px; line-height: 1.82; margin: 0 0 18px; padding-left: 24px; }
.vd-article li { margin-bottom: 10px; }
.vd-article img { max-width: 100%; height: auto; border-radius: var(--radius, 8px); }
.vd-article a { color: var(--ink, #111); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.vd-article a:hover { text-decoration-thickness: 2px; }

.vd-contents { position: sticky; top: 104px; padding: 22px; background: var(--soft, #f5f5f5); border-radius: var(--radius, 8px); }
.vd-contents h2 { font-size: 15px; margin: 0 0 12px; }
.vd-contents ol { margin: 0; padding-left: 19px; color: var(--muted, #656565); font-size: 13px; line-height: 1.8; }
.vd-contents a { color: var(--ink, #111); font-weight: 700; text-decoration: none; cursor: pointer; }
.vd-contents a:hover { text-decoration: underline; text-underline-offset: 3px; }

.vd-related-posts { margin-top: 86px; padding-top: 52px; border-top: 1px solid var(--line, #dedede); }
.vd-related-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.vd-related-head h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.05; letter-spacing: -0.045em; margin: 0; }
.vd-view-all { font-size: 13px; font-weight: 800; color: var(--ink, #111); text-decoration: none; cursor: pointer; white-space: nowrap; }
.vd-view-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.vd-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vd-related-grid .vd-blog-card { min-height: 360px; }

/* Search results */
.vd-search-section { font-size: 24px; letter-spacing: -0.035em; margin: 44px 0 20px; }
.vd-search-rows { list-style: none; margin: 0; padding: 0; }
.vd-search-row { border-top: 1px solid var(--line, #dedede); padding: 20px 0; }
.vd-search-row:last-child { border-bottom: 1px solid var(--line, #dedede); }
.vd-search-row a { text-decoration: none; cursor: pointer; }
.vd-search-row-title { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink, #111); }
.vd-search-row a:hover .vd-search-row-title { text-decoration: underline; text-underline-offset: 4px; }
.vd-search-row-excerpt { display: block; margin-top: 6px; color: var(--muted, #656565); font-size: 14px; line-height: 1.65; }
.vd-search-row time { display: block; margin-top: 8px; color: var(--muted, #656565); font-size: 12px; font-weight: 700; }

.vd-no-results { max-width: 640px; padding: 34px 0; }
.vd-no-results-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 12px; }
.vd-no-results p { color: var(--muted, #656565); font-size: 16px; line-height: 1.7; margin: 0 0 22px; }

/* 404 */
.vd-notfound { max-width: 640px; padding: 60px 0 40px; }
.vd-notfound h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.05em; margin: 0 0 16px; }
.vd-notfound .vd-lead { margin-bottom: 26px; }
.vd-notfound-search { margin-bottom: 26px; }

/* Responsive */
@media (max-width: 900px) {
	.vd-editorial-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 42px; }
	.vd-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.vd-article-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 42px; }
	.vd-related-grid { grid-template-columns: repeat(2, 1fr); }
	.vd-principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.vd-content-page { padding-top: 38px; padding-bottom: 68px; }
	.vd-hero h1 { font-size: 44px; }
	.vd-lead { font-size: 16px; }
	.vd-editorial-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 38px; }
	.vd-contact-layout { padding-top: 38px; }
	.vd-content-aside { position: static; }
	.vd-principles { padding: 22px 0 6px; }
	.vd-principle { padding: 22px; }
	.vd-blog-intro-row { display: block; }
	.vd-blog-intro-row p { margin-top: 10px; }
	.vd-blog-grid { grid-template-columns: 1fr; }
	.vd-blog-card { min-height: 0; }
	.vd-prose h2 { margin-top: 42px; }
	.vd-blog-detail { padding-top: 28px; padding-bottom: 68px; }
	.vd-back-btn { margin-bottom: 20px; }
	.vd-blog-header { margin-bottom: 26px; }
	.vd-blog-header h1 { font-size: 43px; }
	.vd-blog-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
	.vd-blog-meta span + span::before { content: none; margin: 0; }
	.vd-blog-featured { aspect-ratio: 16/10; }
	.vd-article-layout { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
	.vd-article p { font-size: 16px; line-height: 1.76; }
	.vd-contents { position: static; grid-row: 1; }
	.vd-related-posts { margin-top: 62px; padding-top: 40px; }
	.vd-related-head { align-items: center; }
	.vd-related-grid { grid-template-columns: 1fr; }
	.vd-related-grid .vd-blog-card { min-height: 0; }
	.vd-notfound { padding: 38px 0 24px; }
	.vd-notfound-search input[type="search"] { width: 100%; }
}

/* Search results: logo grid (same 4-col pattern as the homepage grid). */
.vd-logo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
@media(max-width:900px){.vd-logo-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.vd-logo-grid{grid-template-columns:repeat(2,1fr);gap:16px}}

/* ============ Categories page — demo parity ============ */
.vd-categories-wrap { padding-top: 48px; padding-bottom: 96px; }
.vd-categories-head { padding: 16px 0 36px; }
.vd-categories-head h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; margin: 0 0 17px; color: #111; }
.vd-categories-head > p { color: #656565; font-size: 17px; margin: 0; max-width: 640px; }

/* Category pack cards — EXACT copy of homepage pack styles for consistency */
.vd-packs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

/* Linked pack box: category name + mini previews + explore link. Default + hover. */
.vd-pack {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: var(--vd-radius, 8px);
	color: var(--vd-black, #111);
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vd-pack:focus-visible {
	border-color: var(--vd-black, #111);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
	outline: 2px solid var(--vd-black, #111);
	outline-offset: 2px;
}

.vd-pack__name {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
}

/* Mini logo previews (3 per pack) */
.vd-pack__minis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-bottom: 13px;
}

.vd-mini {
	min-width: 0;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	overflow: hidden;
	color: #111;
	transition: transform .18s, box-shadow .18s, border-color .18s;
}

.vd-mini:hover,
.vd-mini:focus-visible {
	transform: translateY(-2px) scale(1.01);
	border-color: #111;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.vd-mini__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1.12;
	background: #f5f5f5;
	padding: 10px;
	overflow: hidden;
	transition: background-color .18s;
}

.vd-mini:hover .vd-mini__preview,
.vd-mini:focus-visible .vd-mini__preview {
	background-color: #fafafa;
	background-image:
		linear-gradient(45deg, #efefef 25%, transparent 25%),
		linear-gradient(-45deg, #efefef 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #efefef 75%),
		linear-gradient(-45deg, transparent 75%, #efefef 75%);
	background-size: 12px 12px;
	background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}

.vd-mini__preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform .18s;
}

.vd-mini:hover .vd-mini__preview img,
.vd-mini:focus-visible .vd-mini__preview img {
	transform: scale(1.04);
}

.vd-mini__title {
	display: block;
	padding: 7px 8px 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 10px;
	font-weight: 800;
}

/* "Explore category" link */
.vd-pack__link {
	font-weight: 700;
	font-size: 15px;
	color: #111;
}

.vd-pack__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  .vd-packs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .vd-categories-wrap { padding-top: 28px; }
  .vd-categories-head h1 { font-size: 38px; }
  .vd-packs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .vd-packs-grid { grid-template-columns: 1fr; }
}

/* Fallback: generic pages using page.php (no custom template) — match .vd-hero h1 */
.vd-page-title { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.05em; margin: 0 0 16px; color: #111; }
.vd-page-content { font-size: 17px; line-height: 1.8; color: #333; }
.vd-page-content h2 { font-size: 28px; font-weight: 800; margin: 36px 0 14px; color: #111; }
.vd-page-content h3 { font-size: 22px; font-weight: 800; margin: 30px 0 12px; color: #111; }
.vd-page-content p { margin: 0 0 18px; }
