/* ==========================================================================
   WorldExpanders v6.3 — blog index, archives, search, single posts.
   Shares the shop's header band, filter buttons and pager (shop.css).
   ========================================================================== */

.gwe6-blogview .gwe-site-footer { margin-top: 0; }

/* Neutralise the old v2 "every post is a sketchy card" rules */
.gwe6-blog .post, .gwe6-blog .gwe6-article {
	background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0;
}

/* ---------- Post cards ---------- */
.gwe6-posts {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: var(--gwe6-gap); grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .gwe6-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .gwe6-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gwe6-post { display: flex; margin: 0; }
.gwe6-post a {
	display: flex; flex-direction: column; width: 100%;
	background: var(--gwe-white); color: var(--gwe-ink); text-decoration: none;
	border: 1.5px solid var(--gwe-ink); box-shadow: var(--gwe6-card-shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.gwe6-post a:hover { transform: translateY(-4px); box-shadow: 6px 9px 0 rgba(46,42,36,.16); color: var(--gwe-ink); }
.gwe6-post-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1.5px solid var(--gwe-ink); background: var(--gwe-paper-deep); }
.gwe6-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .35s ease; }
.gwe6-post a:hover .gwe6-post-img img, .gwe6-post a:hover .gwe6-note { transform: scale(1.03); }
.gwe6-post-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.gwe6-post-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gwe-ink-soft); }
.gwe6-post-cat { color: var(--gwe-ochre); }
.gwe6-post-title { font-family: var(--gwe-font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.gwe6-post-excerpt {
	font-size: .9875rem; line-height: 1.55; color: var(--gwe-ink-soft);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gwe6-post-more { margin-top: auto; padding-top: .6rem; font-weight: 800; color: var(--gwe-green); }
.gwe6-post a:hover .gwe6-post-more { color: var(--gwe-ochre); }

/* Drawn notebook page — until a post has a featured image */
.gwe6-note {
	position: relative; display: flex; flex-direction: column; justify-content: center;
	width: 100%; height: 100%; padding: 8% 10% 8% 18%;
	background-color: #fffdf6;
	background-image:
		linear-gradient(90deg, transparent calc(12% - 1px), rgba(181, 118, 46, .55) calc(12% - 1px), rgba(181, 118, 46, .55) calc(12% + 1px), transparent calc(12% + 1px)),
		repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(45, 74, 53, .16) 27px, rgba(45, 74, 53, .16) 28px);
	transition: transform .35s ease;
}
.gwe6-note-title {
	font-family: var(--gwe-font-hand); font-weight: 700; font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.05;
	color: var(--gwe-green);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gwe6-note .gwe-icon { position: absolute; right: 7%; bottom: 9%; width: 30px; height: 30px; color: var(--gwe-ochre); }
@media (min-width: 640px) { .gwe6-note-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); } }

/* Lead card: newest post, full width */
.gwe6-post--lead { grid-column: 1 / -1; }
@media (min-width: 860px) {
	.gwe6-post--lead a { display: grid; grid-template-columns: 1.25fr 1fr; }
	.gwe6-post--lead .gwe6-post-img { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1.5px solid var(--gwe-ink); }
	.gwe6-post--lead .gwe6-post-body { justify-content: center; padding: 2.2rem 2.4rem; gap: .7rem; }
	.gwe6-post--lead .gwe6-post-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.12; }
	.gwe6-post--lead .gwe6-post-excerpt { font-size: 1.0625rem; -webkit-line-clamp: 5; }
	.gwe6-post--lead .gwe6-post-more { margin-top: .6rem; }
	.gwe6-post--lead .gwe6-note-title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
}

/* ---------- Single post ---------- */
.gwe6-article-headcopy { max-width: 760px; margin: 0 auto; }
.gwe6 .gwe6-article-title { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .9rem; color: var(--gwe-ink); }
.gwe6-article-head .gwe6-kicker a { color: inherit; text-decoration: none; }
.gwe6-article-head .gwe6-kicker a:hover { text-decoration: underline; text-underline-offset: .2em; }
.gwe6-article-head .gwe6-kicker span { opacity: .6; margin: 0 .3em; }
.gwe6-article-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--gwe-ink-soft); }
.gwe6-article-head:has(+ .gwe6-article-figure) { padding-bottom: clamp(80px, 10vw, 130px); }
.gwe6-article-figure { position: relative; z-index: 2; max-width: 1000px; margin-top: clamp(-110px, -8vw, -60px); }
.gwe6-article-figure .gwe6-photo { margin: 0; }
.gwe6-article-figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.gwe6-article-body { padding: clamp(32px, 5vw, 60px) 0 var(--gwe6-space); }

.gwe6-prose { max-width: 720px; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: var(--gwe-ink); }
.gwe6-prose > * { margin-top: 0; margin-bottom: 1.25em; }
.gwe6-prose h2, .gwe6-prose h3, .gwe6-prose h4 {
	font-family: var(--gwe-font-display); font-weight: 800; letter-spacing: -.01em; color: var(--gwe-ink); line-height: 1.2;
}
.gwe6-prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.2em 0 .6em; }
.gwe6-prose h2::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: .7rem; background: var(--gwe-ochre); }
.gwe6-prose h3 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.gwe6-prose h4 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.gwe6-prose a { color: var(--gwe-green); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: rgba(45, 74, 53, .35); }
.gwe6-prose a:hover { color: var(--gwe-ochre); text-decoration-color: currentColor; }
.gwe6-prose ul, .gwe6-prose ol { padding-left: 1.4em; }
.gwe6-prose li { margin-bottom: .4em; }
.gwe6-prose li::marker { color: var(--gwe-ochre); font-weight: 800; }
.gwe6-prose blockquote, .gwe6-prose .wp-block-quote {
	margin: 2em 0; padding: 1.1em 1.4em; border: 0; border-left: 4px solid var(--gwe-ochre); border-radius: 0;
	background: var(--gwe-kraft); background-image: var(--gwe-noise); font-style: normal; font-size: 1.1875rem;
}
.gwe6-prose blockquote p:last-child { margin-bottom: 0; }
.gwe6-prose blockquote cite { display: block; margin-top: .6em; font-size: .9375rem; font-style: normal; font-weight: 800; color: var(--gwe-green); }
.gwe6-prose img { max-width: 100%; height: auto; }
.gwe6-prose figure { margin: 2em 0; }
.gwe6-prose figure img { border: 6px solid #fff; box-shadow: var(--gwe6-photo-shadow); }
.gwe6-prose figcaption { margin-top: .7rem; font-size: .875rem; color: var(--gwe-ink-soft); text-align: left; }
.gwe6-prose hr { border: 0; border-top: 2px dashed var(--gwe-line); margin: 2.4em 0; }
.gwe6-prose .wp-block-button__link, .gwe6-prose a.wp-block-button__link { background: var(--gwe-green); color: #fff; text-decoration: none; border-radius: var(--gwe-sketch); padding: .8em 1.5em; font-weight: 800; }
@media (min-width: 900px) {
	.gwe6-prose .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
}

/* Previous / next */
.gwe6-postnav { max-width: 720px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; padding-top: 1.6rem; border-top: 1px solid var(--gwe-line); display: grid; gap: 1rem; }
@media (min-width: 640px) { .gwe6-postnav { grid-template-columns: 1fr 1fr; } }
.gwe6-postnav-item {
	display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem;
	background: var(--gwe-white); border: 1.5px solid rgba(46, 42, 36, .25); color: var(--gwe-ink); text-decoration: none;
	transition: border-color .15s ease, transform .15s ease;
}
.gwe6-postnav-item:hover { border-color: var(--gwe-green); color: var(--gwe-ink); transform: translateY(-2px); }
.gwe6-postnav-item.is-next { text-align: right; grid-column: -2 / -1; }
.gwe6-postnav-dir { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gwe-ochre); }
.gwe6-postnav-item strong { font-family: var(--gwe-font-display); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }

/* Comments */
.gwe6-comments { max-width: 720px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0; }
.gwe6-comments h2, .gwe6-comments h3, .gwe6-comments .comments-title, .gwe6-comments .comment-reply-title {
	font-family: var(--gwe-font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.2; color: var(--gwe-ink); margin: 0 0 .6rem;
}
.gwe6-comments .comment-reply-title small { font-family: var(--gwe-font-body); font-size: .875rem; margin-left: .6rem; }
.gwe6-comments ol, .gwe6-comments ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.gwe6-comments .comment-body, .gwe6-comments .ast-comment { padding: 1rem 0; border-bottom: 1px dashed var(--gwe-line); }
.gwe6-comments .children { margin-left: 1.4rem; }
.gwe6-comments #respond, .gwe6-comments .comment-respond {
	padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--gwe-white); border: 1.5px solid var(--gwe-ink); box-shadow: var(--gwe6-card-shadow);
}
.gwe6-comments .comment-notes, .gwe6-comments .logged-in-as { font-size: .9375rem; color: var(--gwe-ink-soft); }
.gwe6-comments label { display: block; margin-bottom: .3rem; font-size: .9375rem; font-weight: 800; }
.gwe6-comments input[type="text"], .gwe6-comments input[type="email"], .gwe6-comments input[type="url"], .gwe6-comments textarea {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: .7rem .85rem;
	background: #fff; border: 1.5px solid rgba(46, 42, 36, .35); border-radius: 6px;
	font: inherit; font-size: 1rem; color: var(--gwe-ink);
}
.gwe6-comments textarea { min-height: 140px; }
.gwe6-comments input:focus, .gwe6-comments textarea:focus { outline: 3px solid rgba(181, 118, 46, .35); border-color: var(--gwe-ochre); }
.gwe6-comments .comment-form > p { margin: 0 0 1rem; }
.gwe6-comments .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.gwe6-comments .comment-form-cookies-consent label { font-weight: 400; display: inline; }
.gwe6-comments .form-submit { margin: .4rem 0 0; }

/* ---------- Journals band ---------- */
.gwe6-blog-cta { padding: clamp(56px, 8vw, 96px) 0; }
.gwe6-blog-cta-inner { max-width: 820px; }
.gwe6-blog-cta .gwe6-head { margin-bottom: 0; }
.gwe6-blog-cta .gwe6-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.gwe6-blog-cta .gwe6-cta-row { margin-bottom: 0; }

/* Search form on an empty result */
.gwe6-blog-search form { display: flex; gap: .5rem; justify-content: center; }
.gwe6-blog-search input[type="search"] { min-height: 48px; padding: 0 .9rem; border: 1.5px solid rgba(46, 42, 36, .35); border-radius: 6px; font: inherit; }
