/* ============================================================
   Capital Mortgages — blog index + article styles
   ============================================================ */

/* ---------- index ---------- */
.blog-hero { padding: 64px 0 0; }
.blog-hero h1 { font-size: 54px; line-height: 1.06; }
.blog-hero .sub { font-size: 18px; color: var(--ink-soft); max-width: 56ch; margin-top: 18px; }

.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.post-card { padding: 30px 28px 26px; display: grid; gap: 12px; align-content: start; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29,27,23,.05), 0 20px 44px -18px rgba(29,27,23,.24); }
.post-card .pc-meta { font-size: 12.5px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-card .pc-meta span { color: var(--ink-faint); letter-spacing: .02em; text-transform: none; font-weight: 560; }
.post-card h2 { font-size: 26px; line-height: 1.2; }
.post-card p { font-size: 17px; color: var(--ink-soft); }
.post-card .more { font-size: 16px; font-weight: 620; color: var(--accent); margin-top: 6px; }
.post-card:hover .more { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 64px 36px 0; }
.back-link { font-size: 13.5px; font-weight: 620; color: var(--accent); display: inline-block; margin-bottom: 28px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.article h1 { font-size: 42px; line-height: 1.12; margin-top: 14px; }
.article .dek { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin-top: 18px; }
.article .meta { font-size: 13.5px; color: var(--ink-faint); margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 27px; line-height: 1.2; margin: 44px 0 6px; }
.article p { margin: 14px 0 0; line-height: 1.72; }
.article p + p { margin-top: 16px; }
.article ul, .article ol { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 9px; line-height: 1.6; }
.article li::marker { color: var(--accent); font-weight: 600; }
.article a { color: var(--accent); font-weight: 600; }
.article a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* buttons inside articles must keep their own text colour, not the link colour */
.article a.btn { text-decoration: none; }
.article a.btn-solid { color: var(--on-accent); }
.article a.btn-solid:hover { text-decoration: none; }
.article a.btn-ghost, .article a.btn-light { color: var(--accent-deep); }
.article strong { font-weight: 640; }

.callout {
  background: var(--accent-soft); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 28px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--accent-deep);
}
.callout strong { color: var(--accent-deep); }

.figures { width: 100%; border-collapse: collapse; margin: 20px 0 0; font-size: 17px; }
.figures th { text-align: left; font-size: 12.5px; font-weight: 640; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0 10px; }
.figures td { padding: 10px 16px 10px 0; border-top: 1px solid var(--line-soft); }
.figures td:last-child { font-weight: 640; text-align: right; padding-right: 0; }

.article-cta { padding: 28px 30px; margin-top: 44px; display: grid; gap: 10px; justify-items: start; }
.article-cta h2 { margin: 0; font-size: 24px; }
.article-cta p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.article-cta .btn { margin-top: 8px; }

.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 13px; font-family: var(--sans); font-weight: 640; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.sources ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.sources a { font-size: 13.5px; color: var(--ink-soft); font-weight: 530; }
.sources a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article .disc { font-size: 12.5px; color: var(--ink-faint); margin-top: 28px; }

@media (max-width: 900px) {
  .blog-hero h1 { font-size: 38px; }
  .post-grid { grid-template-columns: 1fr; }
  .article { padding: 44px 22px 0; }
  .article h1 { font-size: 32px; }
}
