/* Blog lists, posts and plain pages */
.blog-list { padding-top: 0; }
.blog-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cats a { padding: 8px 15px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.blog-cats a:hover { background: #f2f8ec; }
.blog-cats a[aria-current] { background: #2b6a31; color: #fff; }
.blog-empty { padding: 48px 0; font-size: 18px; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line) inset, 0 12px 32px rgba(24,60,28,.06); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(48,114,54,.4) inset, 0 24px 54px rgba(24,60,28,.14); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef6e6; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 24px; }
.post-cat { position: relative; z-index: 1; margin-bottom: 10px; font-size: 13.5px; font-weight: 500; color: var(--mint); text-decoration: none; }
.post-cat:hover { text-decoration: underline; }
.post-card h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 10px 0 16px; color: var(--muted); font-size: 15.5px; }
.post-card time { margin-top: auto; color: var(--muted); font-size: 13.5px; }
.post-featured { grid-column: 1 / -1; flex-direction: row; }
.post-featured .post-thumb { flex: 1 1 56%; aspect-ratio: auto; min-height: 340px; }
.post-featured .post-card-body { flex: 1 1 44%; justify-content: center; padding: clamp(24px, 3.4vw, 48px); }
.post-featured h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.12; }
.post-featured p { font-size: 17px; }
.post-featured time { margin-top: 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none; }
.pagination a.page-numbers { background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.pagination a.page-numbers:hover { background: #f2f8ec; }
.pagination .current { background: #2b6a31; color: #fff; }

/* Single post */
.post-hero { padding: 132px 0 44px; background: linear-gradient(180deg, #eef6e6, var(--bg)); }
.post-head { max-width: 900px; text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 14.5px; }
.crumbs a { color: var(--mint); font-weight: 500; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-hero h1 { max-width: none; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.post-meta { margin-top: 20px; color: var(--muted); font-size: 15px; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 56px; padding-bottom: 72px; }
.post-layout:has(.post-toc[hidden]) { grid-template-columns: minmax(0, 760px); }
.post-toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; font-size: 14px; }
.post-toc[hidden] { display: none; }
.post-toc p { margin-bottom: 10px; font-weight: 500; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.post-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 13px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; text-decoration: none; }
.post-toc a:hover { color: var(--text); }
.post-toc a.active { border-left-color: var(--mint); color: var(--mint); font-weight: 500; }
.post-cover { margin: 0 0 36px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 20px; }
.post-related { padding: 56px 0 96px; background: #f1f7ea; }
.post-related .wrap > h2 { margin-bottom: 28px; font-size: clamp(28px, 3.4vw, 40px); }

/* Article text */
.page-body { max-width: 820px; padding-bottom: 96px; }
.prose { min-width: 0; font-size: 18px; line-height: 1.72; color: #26332a; overflow-wrap: anywhere; }
.prose::after { content: ""; display: block; clear: both; }
.prose > * + * { margin-top: 1.15em; }
.prose p + p { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin: 1.7em 0 .55em; color: var(--text); font-weight: 500; line-height: 1.2; scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(27px, 3vw, 34px); letter-spacing: -.028em; }
.prose h3 { font-size: clamp(23px, 2.4vw, 27px); letter-spacing: -.02em; }
.prose h4 { font-size: 21px; letter-spacing: -.01em; }
.prose h5 { font-size: 18px; letter-spacing: 0; }
.prose a:not(.wp-block-button__link) { color: #2b6a31; text-decoration-color: rgba(48,114,54,.4); text-underline-offset: 3px; }
.prose a:not(.wp-block-button__link):hover { text-decoration-color: currentColor; }
.prose strong, .prose b { font-weight: 600; color: var(--text); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li { margin-top: .45em; }
.prose li::marker { color: #549c3c; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; vertical-align: middle; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 14.5px; text-align: center; }
.prose .alignright { float: right; margin: .35em 0 1em 1.6em; max-width: 45%; }
.prose .alignleft { float: left; margin: .35em 1.6em 1em 0; max-width: 45%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose blockquote, .prose .wp-block-quote { margin: 1.5em 0; padding: 18px 24px; border-left: 3px solid #6cba42; border-radius: 0 14px 14px 0; background: #f3f8ed; }
.prose pre, .prose .wp-block-preformatted { padding: 18px 20px; border-radius: 14px; background: #f3f8ed; color: var(--text); font: 400 15.5px/1.6 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose code { padding: 2px 6px; border-radius: 6px; background: #eef6e6; font-size: .9em; }
.prose pre code { padding: 0; background: none; }
.prose hr, .prose .wp-block-separator { height: 1px; margin: 2.4em 0; border: 0; background: var(--line-strong); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.prose th { background: #f3f8ed; font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.prose iframe, .prose video { display: block; max-width: 100%; border: 0; border-radius: 14px; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose .wp-block-button__link { display: inline-block; padding: 13px 24px; border-radius: 99px; background: linear-gradient(180deg, #3a7f37, #2b6a31); color: #fff; font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: none; }
/* Hand-coded buttons in older posts carry their own inline colours */
.prose a[style*="background"], .prose .wp-block-button__link.has-background { display: inline-block; margin: 4px 0; padding: 13px 24px !important; border-radius: 99px !important; background: linear-gradient(180deg, #3a7f37, #2b6a31) !important; color: #fff !important; font: 500 16px/1.3 var(--sans) !important; text-decoration: none; }
.prose .is-style-outline .wp-block-button__link { background: none; box-shadow: 0 0 0 1px #2b6a31 inset; color: #2b6a31; }
.prose .wp-block-media-text { clear: both; margin-block: 1.8em; padding: 8px; border-radius: 20px; background: #f3f8ed; }
.prose .wp-block-media-text__content h2, .prose .wp-block-media-text__content h3, .prose .wp-block-media-text__content h4 { margin-top: 0; }
.prose .schema-faq-section { margin-top: 12px; padding: 16px 20px; border-radius: 14px; background: #f3f8ed; }
.prose .schema-faq-question { display: block; font-weight: 600; color: var(--text); }
.prose .schema-faq-answer { margin: 6px 0 0; }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .post-toc { display: none; }
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-featured { flex-direction: column; }
  .post-featured .post-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .blog-cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .blog-cats a { flex: none; }
  .search-form { width: 100%; }
}

@media (max-width: 600px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  .prose .alignright, .prose .alignleft { float: none; max-width: 100%; margin: 1em auto; }
}

/* Meta pricing article */
.page-id-49676 .page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; }
.page-id-49676 .prose > h2:first-of-type { display: none; }
.wp-block-button:has(> .wp-block-button__link:empty) { display: none; }
.prose .wp-block-button__link:not(.has-text-color) { color: #fff; }
