/* ===================================================================
   McCoy Finance · Blog post template (scoped to .bp-body)
   Pairs with mccoy-base.css and templates/blog.js
   =================================================================== */
.bp-body { background: var(--white); }
.bp-main { padding-top: 116px; }
.bp-col { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* 1-3 · header */
.bp-top { max-width: 1240px; margin: 0 auto 64px; padding: 64px 30px 0; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; }
.bp-head { min-width: 0; text-align: left; }
.bp-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  font-size: 11.5px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase; color: var(--copper);
}
.bp-eyebrow::before { content: ''; flex-shrink: 0; width: 28px; height: 1.5px; background: var(--copper); }
.bp-h1 {
  font-family: 'Cormorant Garant', serif; font-weight: 600; color: var(--forest);
  font-size: clamp(36px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -0.8px;
  margin: 22px auto 22px; text-wrap: balance;
}
.bp-byline { font-size: 14px; color: var(--muted); letter-spacing: 0.2px; }
.bp-byline span[aria-hidden] { margin: 0 6px; color: var(--copper); }
.bp-author { color: var(--forest); font-weight: 500; }

/* 4 · hero */
.bp-hero { min-width: 0; margin: 0; }
.bp-hero picture { display: block; overflow: hidden; border-radius: 6px; background: var(--parchment); box-shadow: 0 24px 60px -28px rgba(26,40,32,0.45); }
.bp-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.bp-hero figcaption {
  font-family: 'Cormorant Garant', serif; font-style: italic; font-size: 18px; color: var(--muted);
  text-align: center; margin-top: 14px;
}

/* 5-6 · reading column */
.bp-lede { font-size: 21px; line-height: 1.7; color: var(--forest); margin-bottom: 24px; font-weight: 400; }
.bp-p { font-size: 17.5px; line-height: 1.85; color: #3A4B43; margin-bottom: 22px; font-weight: 300; }
.bp-p a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 3px; }
.bp-p a:hover { color: var(--copper); }
.bp-h2 {
  font-family: 'Cormorant Garant', serif; font-weight: 600; color: var(--forest);
  font-size: clamp(29px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.4px;
  margin: 60px 0 20px; text-wrap: balance;
}
.bp-h2::before { content: ''; display: block; width: 34px; height: 1.5px; background: var(--copper); margin-bottom: 18px; }

/* 7 · stat cards */
.bp-stats { margin: 34px 0 34px; }
.bp-stats-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bp-stat {
  background: #F3EDDF; border: 1px solid var(--border); border-radius: 6px; padding: 22px 22px 20px;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label fig" "chg fig"; align-items: center; gap: 4px 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bp-stat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(44,62,53,0.35); }
.bp-stat-label { grid-area: label; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.bp-stat-fig { grid-area: fig; font-family: 'Cormorant Garant', serif; font-weight: 700; font-size: 36px; color: var(--forest); line-height: 1; }
.bp-stat-chg { grid-area: chg; font-size: 13.5px; color: var(--teal-dk); font-weight: 500; }
.bp-source { font-size: 12.5px; color: var(--muted); margin-top: 12px; font-style: italic; }
@media (min-width: 640px) {
  .bp-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .bp-stat { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; }
  .bp-stat-fig { font-size: clamp(30px, 3.6vw, 38px); }
}

/* 8 · tables (stack into cards on mobile) */
.bp-table-wrap { margin: 28px 0 32px; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.bp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bp-table tr { display: block; padding: 16px 18px; border-radius: 6px; margin-bottom: 8px; background: #F3EDDF; border-left: 3px solid var(--forest); }
.bp-table tbody tr:nth-child(even) { background: var(--cream); }
.bp-table th[scope="row"], .bp-table td { display: block; text-align: left; }
.bp-table th[scope="row"] { font-weight: 600; color: var(--forest); font-size: 16px; margin-bottom: 4px; }
.bp-table td { color: #3A4B43; font-weight: 300; }
@media (min-width: 640px) {
  .bp-table { border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
  .bp-table thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group; }
  .bp-table tr { display: table-row; padding: 0; border: 0; margin: 0; border-radius: 0; }
  .bp-table th, .bp-table td { display: table-cell; padding: 15px 20px; vertical-align: top; }
  .bp-table thead th { background: var(--forest); color: var(--cream); font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 500; text-align: left; }
  .bp-table tbody tr { background: var(--white); }
  .bp-table tbody tr:nth-child(odd) { background: #F3EDDF; }
  .bp-table tbody tr:nth-child(even) { background: var(--white); }
  .bp-table th[scope="row"] { display: table-cell; width: 36%; margin: 0; font-size: 15.5px; }
}

/* 9 · featured listing */
.bp-listing { margin: 56px 0 8px; }
.bp-wave svg { height: 48px; }
.bp-listing-band { background: #F3EDDF; padding: 28px 22px 40px; }
.bp-listing-in { max-width: 1020px; margin: 0 auto; display: grid; gap: 28px; align-items: center; }
.bp-listing-media { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--parchment); }
.bp-listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.bp-listing-in:hover .bp-listing-media img { transform: scale(1.035); }
.bp-label { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--copper); font-weight: 500; }
.bp-listing-h { font-family: 'Cormorant Garant', serif; font-weight: 600; font-size: clamp(30px, 4vw, 42px); color: var(--forest); line-height: 1.08; margin: 10px 0 16px; }
.bp-listing-body p { font-size: 16.5px; line-height: 1.8; color: #3A4B43; font-weight: 300; margin-bottom: 16px; }
.bp-listing-body .bp-btn { margin-top: 8px; }
@media (min-width: 820px) {
  .bp-listing-band { padding: 36px 40px 52px; }
  .bp-listing-in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* buttons */
.bp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none;
  padding: 15px 28px; border-radius: 3px; border: 1.5px solid transparent; min-height: 50px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.bp-arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.bp-btn:hover { transform: translateY(-2px); }
.bp-btn:hover .bp-arrow { transform: translateX(4px); }
.bp-btn-forest { background: var(--forest); color: var(--cream); }
.bp-btn-forest:hover { background: var(--ink); }
.bp-btn-copper { background: var(--copper); color: #fff; }
.bp-btn-copper:hover { background: #B0744B; }
.bp-btn-ghost { color: var(--cream); border-color: rgba(240,232,216,0.45); }
.bp-btn-ghost:hover { border-color: var(--cream); background: rgba(240,232,216,0.08); }

/* 10 · FAQ */
.bp-faq { padding-bottom: 72px; }
.bp-faq-list { border-top: 1px solid rgba(44,62,53,0.14); }
.bp-faq-item { border-bottom: 1px solid rgba(44,62,53,0.14); }
.bp-faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 2px; font-family: 'Cormorant Garant', serif; font-size: 22px; font-weight: 600; color: var(--forest); line-height: 1.25;
  transition: color 0.2s;
}
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary:hover { color: var(--copper); }
.bp-faq-ic { position: relative; flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(44,62,53,0.2); transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
.bp-faq-ic::before, .bp-faq-ic::after { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.bp-faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.bp-faq-item[open] .bp-faq-ic { background: var(--copper); border-color: var(--copper); color: #fff; }
.bp-faq-item[open] .bp-faq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.bp-faq-a p { font-size: 16.5px; line-height: 1.8; color: #3A4B43; font-weight: 300; padding: 0 44px 24px 2px; }
.bp-faq-item[open] .bp-faq-a { animation: bp-fade 0.35s var(--ease); }
@keyframes bp-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 11 · CTA */
.bp-cta-band { background: var(--forest); padding: 44px 22px 80px; text-align: center; }
.bp-cta-in { max-width: 720px; margin: 0 auto; }
.bp-cta-h { font-family: 'Cormorant Garant', serif; font-weight: 600; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; color: var(--cream); text-wrap: balance; }
.bp-cta-in p { color: rgba(240,232,216,0.78); font-size: 17px; line-height: 1.7; margin: 18px auto 32px; font-weight: 300; }
.bp-cta-btns { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .bp-cta-btns { flex-direction: row; justify-content: center; } }

/* 12 · disclaimer */
.bp-disclaimer { background: var(--forest); border-top: 1px solid rgba(240,232,216,0.12); padding: 24px 22px 30px; }
.bp-disclaimer p { max-width: 820px; margin: 0 auto; text-align: center; font-size: 12.5px; line-height: 1.7; color: rgba(240,232,216,0.62); font-weight: 300; }

/* focus */
.bp-main a:focus-visible, .bp-faq-item summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 1100px) { .bp-main { padding-top: 108px; } }
@media (max-width: 900px) { .bp-main { padding-top: 96px; } .bp-top { grid-template-columns: 1fr; gap: 32px; padding: 44px 22px 0; margin-bottom: 40px; } .bp-h1 { max-width: 680px; margin-left: 0; } }
@media (max-width: 480px) { .bp-lede { font-size: 19px; } .bp-p { font-size: 17px; } .bp-faq-item summary { font-size: 20px; } }

@media (prefers-reduced-motion: reduce) {
  .bp-body *, .bp-body *::before, .bp-body *::after { transition: none !important; animation: none !important; }
  .bp-body .reveal { opacity: 1; transform: none; }
}
