/* White Horse Agency Blog — article and listing styles. Shared tokens and components come from site.css. */

.container--article { max-width: 820px; }

/* ---------- Listing ---------- */
.blog-hero { padding-bottom: 8px; }
.h1-page { color: var(--ink-3); font-size: .5em; letter-spacing: -.02em; white-space: nowrap; }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip[aria-current="page"] { background: var(--red); color: #FFFFFF; border-color: var(--red); }
.post-excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-date { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.post-feature .post-media img { aspect-ratio: 16 / 9; }
.blog-search { margin-top: clamp(40px, 5vw, 56px); }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form .input { flex: 1; min-width: 0; min-height: 44px; }
.search-form .btn { flex: none; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5vw, 56px); }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.pagination .dots { border-color: transparent; }

/* ---------- Article ---------- */
.post-hero { padding-bottom: 0; }
.post-title { margin-top: 18px; font-size: clamp(32px, 4.3vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -.036em; text-wrap: balance; }
.post-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.post-meta span + span::before { content: "·"; margin-right: 18px; color: var(--ink-3); }
.post-cover { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 1100px; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-single > .container--article { padding-top: clamp(40px, 5vw, 64px); }

.post-body { font-size: 18px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 { margin-top: 2em; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -.022em; scroll-margin-top: 96px; }
.post-body h3 { margin-top: 1.7em; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; scroll-margin-top: 96px; }
.post-body h4 { margin-top: 1.5em; font-size: 18px; font-weight: 600; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .6em; }
.post-body a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--red-deep); }
.post-body strong { font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .45em; }
.post-body li::marker { color: var(--red); }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.post-body figure { margin-inline: 0; }
.post-body figcaption, .post-body .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.post-body blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--red-soft); color: var(--ink-2); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.post-body .table-wrap, .post-body .wp-block-table { overflow-x: auto; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); font-weight: 600; }
.post-body .aligncenter { display: block; margin-inline: auto; }
@media (min-width: 760px) {
  .post-body .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
  .post-body .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
}
.post-body .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #FFFFFF; text-decoration: none; font-weight: 600; }
.post-body .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.post-body::after { content: ""; display: block; clear: both; }

/* in-article callouts */
.post-body .post-cta { margin-top: 1.8em; padding: 22px 26px; border-radius: var(--r-lg); background: var(--blush); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.post-body .post-cta + * { margin-top: 1.8em; }
.post-cta-title { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.post-body .post-cta .btn { color: #FFFFFF; text-decoration: none; }
.post-body .post-cta .link-arrow { color: var(--ink); text-decoration: none; font-size: 15px; }

/* FAQ inside articles (same look as the site's FAQ) */
.post-body .wha-faq { margin-top: 1.4em; }
.post-body .faq summary h3 { margin: 0; font-size: 18px; }
.post-body .faq-answer > * + * { margin-top: .8em; }
.post-body .faq-answer p { padding: 0 0 22px; color: var(--ink-2); font-size: 17px; }
.wha-faq .faq-icon::before { content: "+"; font-size: 18px; line-height: 1; font-weight: 500; }

/* share + author */
.post-share { margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.post-share-label { margin-right: 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.post-share a, .post-share .copy-btn { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font: 500 14px var(--font); color: var(--ink); cursor: pointer; }
.post-share a:hover, .post-share .copy-btn:hover { border-color: var(--red); color: var(--red); }
.post-author { margin-top: 28px; padding: 24px; border-radius: var(--r-lg); background: var(--bg-soft); display: flex; flex-direction: column; gap: 14px; }
.post-author img { height: 22px; width: auto; align-self: flex-start; }
.post-author p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.post-author strong { color: var(--ink); font-weight: 600; }
.post-author a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.notfound { padding-bottom: clamp(24px, 4vw, 48px); }
.notfound .actions { margin-top: 32px; }

@media (max-width: 560px) {
  .post-body { font-size: 17px; }
  .post-body .post-cta { padding: 20px; }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
}
