/* WebAshes — Category archive (templates/category.html) and
   single post (templates/single.html) styling. */

/* ---- Shared: breadcrumb ---- */
.wa-breadcrumb {
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	font-size: 13px;
	color: #6B6B6B;
}
.wa-breadcrumb a {
	color: #6B6B6B;
	text-decoration: none;
}
.wa-breadcrumb a:hover {
	color: #D4380D;
}
.wa-breadcrumb-current {
	color: #111111;
	font-weight: 600;
}
.wa-post-header .wa-breadcrumb,
.wa-post-header .wa-breadcrumb a,
.wa-post-header .wa-breadcrumb-current {
	color: rgba(255, 255, 255, 0.8);
}
.wa-post-header .wa-breadcrumb a:hover {
	color: #FFFFFF;
}

/* ---- Shared: section label / newsletter band ---- */
.wa-section-label {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #D4380D;
	margin: 0;
}
.wa-section-label-light {
	color: #E1481B;
}
.wa-newsletter {
	background: #111111;
}
.wa-newsletter-legal {
	color: rgba(255, 255, 255, 0.55);
}
.wa-newsletter-legal a {
	color: #C4C0B8;
	text-decoration: underline;
}

/* ================= CATEGORY ARCHIVE ================= */

.wa-cat-header {
	background: #F2F0EC;
}
.wa-cat-eyebrow {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #D4380D;
}
.wa-cat-title {
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: clamp(28px, 4.5vw, 44px);
	line-height: 1.1;
	color: #111111;
	margin: 0;
}
.wa-cat-description {
	font-size: 15.5px;
	line-height: 1.65;
	color: #6B6B6B;
	max-width: 640px;
}
.wa-cat-description p {
	margin: 0;
}
.wa-cat-count {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	color: #6B6B6B;
	background: #FFFFFF;
	border: 1px solid #C4C0B8;
	border-radius: 20px;
	padding: 4px 12px;
}

.wa-cat-columns {
	align-items: flex-start;
}

/* Post list */
.wa-cat-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.wa-cat-post-card {
	padding: 24px 0;
	border-bottom: 1px solid #C4C0B8;
	align-items: flex-start;
	gap: 20px;
}
.wa-cat-post-list > :first-child .wa-cat-post-card {
	padding-top: 0;
}
.wa-cat-thumb {
	flex: 0 0 180px;
	width: 180px;
	height: 120px;
	overflow: hidden;
}
.wa-cat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wa-cat-card-text {
	flex: 1 1 auto;
	min-width: 0;
}
.wa-card-cat {
	color: #D4380D;
}
.wa-card-cat a {
	color: #D4380D;
	text-decoration: none;
}
.wa-card-date {
	color: #6B6B6B;
}
.wa-card-title {
	margin: 0;
	color: #111111;
}
.wa-card-title a {
	color: #111111;
	text-decoration: none;
}
.wa-card-title a:hover {
	color: #D4380D;
}
.wa-card-excerpt {
	margin: 0;
	color: #6B6B6B;
}
.wa-card-excerpt p {
	margin: 0;
}
.wa-card-readmore.wp-block-read-more {
	color: #D4380D;
	text-decoration: none;
	display: inline-block;
	margin-top: 2px;
}
.wa-card-readmore.wp-block-read-more:hover {
	color: #B8300B;
}

/* Pagination (category archive uses prev/numbers/next) */
.wa-cat-pagination {
	margin-top: 32px;
	gap: 8px;
}
.wa-cat-pagination .page-numbers,
.wa-cat-pagination .wp-block-query-pagination-previous,
.wa-cat-pagination .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #C4C0B8;
	background: #FFFFFF;
	color: #2B2B2B;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.wa-cat-pagination .page-numbers:hover,
.wa-cat-pagination .wp-block-query-pagination-previous:hover,
.wa-cat-pagination .wp-block-query-pagination-next:hover {
	color: #D4380D;
	border-color: #D4380D;
}
.wa-cat-pagination .page-numbers.current {
	background: #D4380D;
	border-color: #D4380D;
	color: #FFFFFF;
}

/* Sidebar */
.wa-cat-sidebar-col {
	border-left: 1px solid #C4C0B8;
	padding-left: 40px;
}
.wa-sidebar-widget {
	background: #F2F0EC;
	border: 1px solid #C4C0B8;
	border-radius: 10px;
	padding: 20px;
}
.wa-widget-title {
	display: block;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111111;
	margin-bottom: 14px;
}
.wa-widget-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #6B6B6B;
	margin: -8px 0 14px;
}

.wa-related-cats-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wa-related-cats-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.wa-related-cats-list a:hover {
	background: #FFFFFF;
}
.wa-cat-link-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wa-cat-link-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wa-cat-link-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.wa-cat-link-text strong {
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-size: 13.5px;
	font-weight: 600;
	color: #111111;
}
.wa-cat-link-text span {
	font-size: 11.5px;
	color: #6B6B6B;
}

/* Active category (WordPress adds category-{slug} to <body> automatically) */
.wa-related-cats-list a.is-active,
body.category-aeo-geo .wa-related-cats-list a[data-cat-slug="aeo-geo"],
body.category-agentic-commerce .wa-related-cats-list a[data-cat-slug="agentic-commerce"],
body.category-ai-traffic .wa-related-cats-list a[data-cat-slug="ai-traffic"],
body.category-optimization-speed .wa-related-cats-list a[data-cat-slug="optimization-speed"],
body.category-security .wa-related-cats-list a[data-cat-slug="security"],
body.category-accessibility .wa-related-cats-list a[data-cat-slug="accessibility"],
body.category-technical-seo .wa-related-cats-list a[data-cat-slug="technical-seo"] {
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #D4380D;
}
body.category-aeo-geo .wa-related-cats-list a[data-cat-slug="aeo-geo"] strong,
body.category-agentic-commerce .wa-related-cats-list a[data-cat-slug="agentic-commerce"] strong,
body.category-ai-traffic .wa-related-cats-list a[data-cat-slug="ai-traffic"] strong,
body.category-optimization-speed .wa-related-cats-list a[data-cat-slug="optimization-speed"] strong,
body.category-security .wa-related-cats-list a[data-cat-slug="security"] strong,
body.category-accessibility .wa-related-cats-list a[data-cat-slug="accessibility"] strong,
body.category-technical-seo .wa-related-cats-list a[data-cat-slug="technical-seo"] strong {
	color: #D4380D;
}

.wa-newsletter-widget .wp-block-shortcode,
.wa-newsletter-widget form {
	width: 100%;
}

.wa-latest-widget .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wa-latest-widget .wp-block-latest-posts li {
	padding-bottom: 10px;
	border-bottom: 1px solid #C4C0B8;
}
.wa-latest-widget .wp-block-latest-posts li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.wa-latest-widget .wp-block-latest-posts a {
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-size: 13.5px;
	font-weight: 600;
	color: #111111;
	text-decoration: none;
}
.wa-latest-widget .wp-block-latest-posts a:hover {
	color: #D4380D;
}
.wa-latest-widget .wp-block-latest-posts__post-date {
	display: block;
	font-size: 11px;
	color: #6B6B6B;
	margin-top: 3px;
}

/* ================= SINGLE POST ================= */

.wa-post-header {
	position: relative;
	min-height: clamp(420px, 56vw, 560px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #111111;
}
.wa-post-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(17, 17, 17, 0.83) 0%, rgba(17, 17, 17, 0.73) 45%, rgba(17, 17, 17, 0.08) 100%);
	z-index: 1;
}
.wa-post-hero-img.wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
}
.wa-post-hero-img.wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wa-post-header-overlay {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(20px, 6vw, 32px) clamp(40px, 8vw, 56px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.wa-post-header .wa-breadcrumb,
.wa-post-header .wa-breadcrumb a {
	color: rgba(242, 240, 236, 0.65);
}
.wa-post-header .wa-breadcrumb-current {
	color: rgba(242, 240, 236, 0.9);
	font-weight: 400;
}
.wa-category-badge.wp-block-post-terms {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	width: fit-content;
}
.wa-category-badge.wp-block-post-terms a {
	display: inline-block;
	color: #FFFFFF;
	background: #D4380D;
	padding: 7px 16px;
	border-radius: 999px;
	text-decoration: none;
}
.wa-post-title {
	margin: 0;
	max-width: 820px;
}
.wa-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13.5px;
	color: #C4C0B8;
}
.wa-post-meta .wa-meta-sep {
	color: rgba(196, 192, 184, 0.5);
}

/* ---- Body grid: TOC | content | sidebar ---- */
.wa-post-grid {
	display: grid;
	gap: 48px;
	grid-template-columns: 220px minmax(0, 720px) 260px;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(40px, 8vw, 56px) clamp(20px, 6vw, 32px) 0;
	align-items: start;
}

/* Table of contents */
.wa-toc {
	position: sticky;
	top: 24px;
	background: #F2F0EC;
	border-left: 3px solid #D4380D;
	border-radius: 0 8px 8px 0;
	padding: 20px 18px;
	align-self: start;
	display: flex;
	flex-direction: column;
}
.wa-toc-label {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6B6B6B;
	margin-bottom: 14px;
}
.wa-toc-link {
	display: block;
	padding: 6px 0;
	font-size: 13.5px;
	font-weight: 500;
	color: #2B2B2B;
	line-height: 1.4;
	text-decoration: none;
}
.wa-toc-link.wa-toc-h3 {
	padding-left: 16px;
	font-size: 12.5px;
}
.wa-toc-link:hover {
	color: #D4380D;
}
.wa-toc-link.is-active {
	color: #D4380D;
	font-weight: 700;
}

/* Post content */
.wa-content {
	min-width: 0;
}
.wa-post-content.wp-block-post-content {
	font-size: 16px;
	line-height: 1.75;
	color: #2B2B2B;
}
.wa-post-content.wp-block-post-content > * {
	margin: 0 0 20px;
}
.wa-post-content.wp-block-post-content h2 {
	margin: 40px 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #F2F0EC;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 28px);
	color: #111111;
}
.wa-post-content.wp-block-post-content h3 {
	margin: 28px 0 12px;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 600;
	font-size: 18px;
	color: #111111;
}
.wa-post-content.wp-block-post-content a {
	color: #D4380D;
}
.wa-post-content.wp-block-post-content img {
	border-radius: 12px;
	width: 100%;
	height: auto;
	display: block;
}
.wa-post-content.wp-block-post-content blockquote {
	padding: 16px 20px;
	background: #F2F0EC;
	border-left: 3px solid #D4380D;
	font-size: 16px;
	line-height: 1.7;
	color: #111111;
	font-style: italic;
}
.wa-post-content.wp-block-post-content blockquote p {
	margin: 0;
}
.wa-post-content.wp-block-post-content :not(pre) > code {
	background: #F2F0EC;
	padding: 2px 6px;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 14px;
}
.wa-post-content.wp-block-post-content pre {
	background: #111111;
	color: #F2F0EC;
	padding: 20px 22px;
	border-radius: 8px;
	overflow-x: auto;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 13px;
	line-height: 1.7;
}
.wa-post-content.wp-block-post-content pre code {
	background: none;
	padding: 0;
	font-size: inherit;
}
.wa-post-content.wp-block-post-content ul,
.wa-post-content.wp-block-post-content ol {
	padding-left: 22px;
	line-height: 1.85;
}
.wa-post-content.wp-block-post-content li {
	margin-bottom: 6px;
}
.wa-post-content.wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}
.wa-post-content.wp-block-post-content table thead tr {
	background: #111111;
}
.wa-post-content.wp-block-post-content table th {
	text-align: left;
	color: #FFFFFF;
	padding: 12px 16px;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.wa-post-content.wp-block-post-content table td {
	padding: 12px 16px;
	color: #2B2B2B;
}
.wa-post-content.wp-block-post-content table tbody tr:nth-child(even) {
	background: #F2F0EC;
}

/* Right sidebar: related guides + newsletter card */
.wa-post-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	align-self: start;
}
.wa-related-guide-link {
	display: block;
	padding: 10px 0 10px 14px;
	border-left: 2px solid #C4C0B8;
	font-size: 13.5px;
	font-weight: 500;
	color: #111111;
	line-height: 1.4;
	text-decoration: none;
}
.wa-related-guide-link:hover {
	border-left-color: #D4380D;
	color: #D4380D;
}
.wa-sidebar-newsletter {
	background: #2B2B2B;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.wa-sidebar-newsletter .wa-widget-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: 17px;
	color: #FFFFFF;
	text-transform: none;
	letter-spacing: normal;
}
.wa-sidebar-newsletter .wa-widget-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #C4C0B8;
}
.wa-sidebar-newsletter input[type="email"],
.wa-sidebar-newsletter input[type="text"] {
	background: #1A1A1A;
	border: 1px solid #3A3A3A;
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 13px;
	color: #FFFFFF;
	width: 100%;
	box-sizing: border-box;
}
.wa-sidebar-newsletter button,
.wa-sidebar-newsletter input[type="submit"] {
	width: 100%;
	background: #D4380D;
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	padding: 12px;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
}
.wa-sidebar-newsletter button:hover,
.wa-sidebar-newsletter input[type="submit"]:hover {
	background: #B8300B;
}

/* Below the grid: share strip + author bio, centered to reading width */
.wa-post-footer-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(36px, 7vw, 48px) clamp(20px, 6vw, 32px) clamp(64px, 10vw, 96px);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Share strip */
.wa-share-strip {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 20px 0;
	border-top: 1px solid #C4C0B8;
	border-bottom: 1px solid #C4C0B8;
}
.wa-share-label {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6B6B6B;
}
.wa-share-btn {
	padding: 9px 18px;
	border: 1px solid #C4C0B8;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: #111111;
	background: none;
	text-decoration: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
}
.wa-share-btn:hover {
	border-color: #D4380D;
	color: #D4380D;
}

/* Author bio */
.wa-author-bio {
	background: #F2F0EC;
	border-left: 3px solid #D4380D;
	border-radius: 0 8px 8px 0;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wa-author-bio-eyebrow {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6B6B6B;
}
.wa-author-bio-name {
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: 17px;
	color: #111111;
}
.wa-author-bio-text {
	margin: 4px 0 8px;
	font-size: 14px;
	line-height: 1.65;
	color: #2B2B2B;
}
.wa-author-bio-link {
	font-size: 13.5px;
	font-weight: 600;
	color: #D4380D;
	text-decoration: none;
	width: fit-content;
}
.wa-author-bio-link:hover {
	color: #B8300B;
}

/* Bottom newsletter band */
.wa-post-newsletter-band {
	background: #2B2B2B;
	padding: clamp(56px, 8vw, 88px) clamp(20px, 6vw, 32px);
}
.wa-post-newsletter-band .wa-band-inner {
	max-width: 580px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.wa-post-newsletter-band h2 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: clamp(24px, 3.2vw, 32px);
	line-height: 1.2;
	color: #FFFFFF;
}
.wa-post-newsletter-band p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #C4C0B8;
	max-width: 460px;
}
.wa-post-newsletter-band input[type="email"] {
	border: 1px solid #3A3A3A;
	background: #1A1A1A;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
	color: #FFFFFF;
	width: 100%;
	box-sizing: border-box;
}
.wa-post-newsletter-band button,
.wa-post-newsletter-band input[type="submit"] {
	width: 100%;
	border: none;
	background: #D4380D;
	color: #FFFFFF;
	padding: 15px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.wa-post-newsletter-band button:hover,
.wa-post-newsletter-band input[type="submit"]:hover {
	background: #B8300B;
}
.wa-post-newsletter-band .wp-block-shortcode {
	width: 100%;
}

@media (max-width: 980px) {
	.wa-post-grid {
		grid-template-columns: 1fr;
	}
	.wa-toc {
		position: static;
	}
	.wa-post-sidebar {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.wa-post-sidebar > * {
		flex: 1 1 280px;
	}
}

/* Comments */
.wa-comments-title {
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 700;
	font-size: 20px;
	color: #111111;
}
.wa-comment-item {
	padding: 18px 0;
	border-bottom: 1px solid #C4C0B8;
}
.wa-comment-author {
	font-weight: 600;
	color: #111111;
	font-size: 14px;
}
.wa-comment-date {
	font-size: 12px;
	color: #6B6B6B;
}
.wa-comment-body p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #2B2B2B;
}
.wa-comment-reply a {
	font-size: 12.5px;
	font-weight: 600;
	color: #D4380D;
	text-decoration: none;
}
.wa-comment-form input,
.wa-comment-form textarea {
	border: 1px solid #C4C0B8;
	border-radius: 6px;
	padding: 10px 12px;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	font-size: 14px;
}
.wa-comment-form .wp-block-button__link,
.wa-comment-form input[type="submit"] {
	background: #D4380D;
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-weight: 600;
	cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.wa-cat-columns {
		flex-direction: column;
	}
	.wa-cat-sidebar-col {
		border-left: none;
		border-top: 1px solid #C4C0B8;
		padding-left: 0;
		padding-top: 32px;
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
	.wa-cat-post-card {
		flex-wrap: wrap;
	}
	.wa-cat-thumb {
		width: 100%;
		flex-basis: 100%;
	}
}
@media (max-width: 640px) {
	.wa-post-header {
		min-height: 260px;
	}
}
