/* ══════════════════════════════════════════════════════════════
   TRM Garage Floors — Blog extensions
   Extends styles.css only. Header, nav, trust bar, page-hero,
   sections, buttons, cta-band, footer all come from styles.css.
   ══════════════════════════════════════════════════════════════ */

/* ── Article cards (blog index + "More From TRM") ── */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--off-white); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.post-card-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.25; color: var(--text-dark); margin: 0;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--red); }
.post-card-excerpt { font-size: 14px; color: var(--gray-dark); line-height: 1.7; margin: 0; }
.post-card-link {
  margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red);
}
.post-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-empty { margin-top: 24px; max-width: 640px; }
.post-empty a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Article page ── */
.page-hero-h1.post-title { text-transform: none; letter-spacing: 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; max-width: 820px; }
.page-hero-pretag time { color: inherit; }
.post { max-width: 760px; margin: 0 auto; }
.post-featured { margin: 0 0 32px; border-radius: var(--radius-md); overflow: hidden; background: var(--off-white); border: 1px solid var(--gray-border); }
.post-featured img { width: 100%; height: auto; display: block; }

/* Long-form body: inherits .prose (p, h3, ul) from styles.css; the rest is added here */
.post-body p, .post-body li { font-size: 16px; }
.post-body h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.2; color: var(--text-dark); margin: 40px 0 14px;
}
.post-body h4 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin: 24px 0 8px; }
.post-body > :first-child { margin-top: 0; }
.post-body a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--text-dark); }
.post-body ol { list-style: decimal; padding-left: 24px; margin-bottom: 18px; }
.post-body ol li::marker { color: var(--red); font-weight: 700; }
.post-body ol li { color: var(--gray-dark); line-height: 1.7; margin-bottom: 8px; }
.post-body ul ul, .post-body ol ol, .post-body ul ol, .post-body ol ul { margin: 8px 0 0; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 28px auto; border-radius: var(--radius-md); }
.post-body figure { margin: 28px 0; }
.post-body figcaption { font-size: 13px; color: var(--gray-dark); text-align: center; margin-top: 8px; }
.post-body blockquote {
  margin: 28px 0; padding: 18px 22px; background: var(--off-white);
  border-left: 4px solid var(--red); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.post-body blockquote p { margin-bottom: 0; color: var(--text-dark); font-weight: 500; }
.post-body hr { border: 0; border-top: 1px solid var(--gray-border); margin: 36px 0; }
.post-table-wrap { overflow-x: auto; margin: 28px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.post-table-wrap table { margin: 0; }
.post-body thead th {
  background: var(--black); color: var(--white); font-family: var(--font-display); font-size: 12px;
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 12px 14px;
}
.post-body td, .post-body tbody th { padding: 12px 14px; border-bottom: 1px solid var(--gray-border); color: var(--gray-dark); vertical-align: top; text-align: left; }
.post-body tbody tr:nth-child(even) { background: var(--off-white); }
.post-body pre { overflow-x: auto; padding: 16px; background: var(--off-white); border: 1px solid var(--gray-border); border-radius: var(--radius-md); font-size: 14px; }
.post-body code { font-size: 0.95em; }
/* FAQ-style sections the feed may emit as details/summary */
.post-body details { border: 1px solid var(--gray-border); border-radius: var(--radius-md); padding: 0 18px; margin-bottom: 12px; background: var(--white); }
.post-body summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--text-dark); }
.post-body details[open] summary { border-bottom: 1px solid var(--gray-border); margin-bottom: 12px; }

/* Author block */
.post-author { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--gray-border); border-radius: var(--radius-md); background: var(--white); }
.post-author-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.post-author-name { font-family: var(--font-display); font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dark); }
.post-author-title { font-size: 13px; font-weight: 600; color: var(--gray-dark); margin-bottom: 10px; }
.post-author p { font-size: 14px; color: var(--gray-dark); line-height: 1.7; margin: 0; }
.post-author a { color: var(--red); font-weight: 700; }

/* Inline CTA at end of article */
.post-inline-cta {
  margin-top: 44px; padding: 26px 24px; background: var(--off-white);
  border: 1.5px solid var(--gray-border); border-left: 4px solid var(--red); border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 18px;
}
.post-inline-cta-title { font-family: var(--font-display); font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dark); margin-bottom: 6px; }
.post-inline-cta p { font-size: 14px; color: var(--gray-dark); line-height: 1.7; margin: 0; }
.post-back { margin-top: 28px; font-size: 14px; font-weight: 700; }
.post-back a { color: var(--red); }
.post-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-inline-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .post-inline-cta .btn-group { flex-shrink: 0; }
}
