/* Single post — article body, meta, nav. Heading/cover/cards reuse style.css. */

.post-detail .case-heading > .eyebrow a { color: inherit; border-bottom: 1px solid currentColor; }
.post-detail .case-heading > .eyebrow time { white-space: nowrap; }
.post-detail .case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article body */
.post-body { max-width: 780px; margin: 0 auto; padding: 70px 6% 30px; box-sizing: content-box; font-size: 19px; line-height: 1.8; color: var(--ink); }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2, .post-body h3, .post-body h4 { line-height: 1.15; letter-spacing: -.03em; margin-top: 1.9em; }
.post-body h2 { font-size: clamp(30px, 3.4vw, 42px); }
.post-body h3 { font-size: clamp(23px, 2.4vw, 29px); }
.post-body h4 { font-size: 21px; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .7em; }
.post-body p, .post-body li { color: #33495a; }
.post-body a { color: #007d81; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--ink); }
.post-body strong { color: var(--ink); }
.post-body em, .post-body i { font-style: italic; color: inherit; }
.post-body h2 em, .post-body h3 em { font-style: normal; color: var(--teal, #00aaa8); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--teal, #00aaa8); }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--teal, #00aaa8); font-family: 'Space Grotesk', Arial, sans-serif; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); }
.post-body blockquote p { color: inherit; }
.post-body blockquote cite { display: block; margin-top: 14px; font-family: 'Inter', Arial, sans-serif; font-size: 13px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-body img { max-width: 100%; height: auto; display: block; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.post-body .alignwide { width: min(1100px, 88vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-body .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-body .alignleft { float: left; margin: .3em 28px 18px 0; max-width: 45%; }
.post-body .alignright { float: right; margin: .3em 0 18px 28px; max-width: 45%; }
.post-body .aligncenter { margin-left: auto; margin-right: auto; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-body code { font-size: .85em; background: #e9f1f3; padding: 2px 6px; border-radius: 3px; }
.post-body pre { background: var(--ink); color: #e6f1f4; padding: 22px 24px; overflow-x: auto; font-size: 15px; line-height: 1.6; border-radius: 4px; }
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-weight: 600; color: var(--ink); }
.post-body .wp-block-button__link { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 15px 25px; border-radius: 4px; font-size: 15px; font-weight: 500; }
.post-body .wp-block-embed iframe, .post-body iframe { max-width: 100%; }
.post-body::after { content: ""; display: table; clear: both; }
.post-pages { font-size: 15px; }

/* Author + tags */
.post-footer { margin-top: 3em !important; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.post-author { font-size: 16px; font-weight: 600; margin: 0; }
.post-author .eyebrow { color: var(--muted); margin-right: 8px; }
.post-body .post-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-body .post-tags li { margin: 0; }
.post-tags a { display: inline-block; font-size: 13px; line-height: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 30px; text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.post-tags a:hover { border-color: var(--ink); background: #fff; }

/* Previous / next */
.post-nav { max-width: 1400px; margin: 40px auto 0; padding: 0 6%; box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav a { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.post-nav a:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-nav .eyebrow { color: #007d81; }
.post-nav strong { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.post-nav-next { grid-column: 2; text-align: right; }

/* Related */
.post-related { padding-top: 80px; }

@media (max-width: 680px) {
	.post-body { padding: 45px 6% 20px; font-size: 17px; }
	.post-body .alignleft, .post-body .alignright { float: none; margin: 0; max-width: 100%; }
	.post-nav { grid-template-columns: 1fr; margin-top: 30px; }
	.post-nav-next { grid-column: auto; text-align: left; }
	.post-nav strong { font-size: 19px; }
	.post-related { padding-top: 55px; }
}

@media (prefers-reduced-motion: reduce) {
	.post-nav a, .post-tags a { transition: none; }
	.post-nav a:hover { transform: none; }
}
