/* =====================================================
   Trailside Estates — Blog Styles
   Editorial typography matching main site palette
   ===================================================== */

.blog-body {
  background: var(--cream);
  color: var(--ink);
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* Active nav link */
.site-nav a.active {
  color: var(--gold);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.breadcrumbs span[aria-hidden] {
  margin: 0 0.5rem;
  color: var(--sage);
}
.breadcrumbs span[aria-current] {
  color: var(--ink);
}

/* ---------- BLOG HERO (index) ---------- */
.blog-hero {
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid rgba(14,14,13,0.08);
}
.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.blog-hero .lede {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

/* ---------- POST CARD GRID ---------- */
.blog-list {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}
.blog-list .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .blog-list .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: #fff;
  border: 1px solid rgba(14,14,13,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14,14,13,0.08);
  border-color: var(--gold);
}
.post-card-link {
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.post-card-image {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--sage);
  overflow: hidden;
}
.post-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.post-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-tag {
  background: var(--gold);
  color: var(--ink);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.post-card-title {
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.post-card-excerpt {
  font-family: var(--body);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.post-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}

.post-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px dashed rgba(14,14,13,0.18);
  min-height: 240px;
}
.placeholder-note {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  max-width: 32ch;
}

/* ---------- POST ARTICLE ---------- */
.post-article {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.post-header {
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.post-byline {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.9rem;
}
.post-header h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.post-dek {
  font-family: var(--body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

.post-hero-figure {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
}
.post-hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  background-color: var(--sage);
  margin: 0;
  display: block;
}
.post-hero-caption {
  display: block;
  max-width: 720px;
  margin: 0.65rem auto 0;
  padding: 0 1.25rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- TABLE OF CONTENTS ---------- */
.post-toc {
  background: rgba(201,162,74,0.08);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 2.5rem;
  border-radius: 2px;
}
.post-toc-title {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.post-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1.5rem;
}
@media (min-width: 600px) {
  .post-toc ul { grid-template-columns: 1fr 1fr; }
}
.post-toc li { margin: 0; }
.post-toc a {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-block;
  padding: 0.15rem 0;
}
.post-toc a:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ---------- POST BODY (long-form) ---------- */
.post-body {
  font-family: var(--body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-body p {
  margin: 0 0 1.4rem;
}
.post-body > p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  float: left;
  margin: 0.18rem 0.5rem 0 0;
  color: var(--gold-deep);
  font-weight: 600;
}
.post-body h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin: 2.75rem 0 1rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.post-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2rem 0 0.85rem;
  color: var(--ink);
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.6rem;
  padding-left: 1.5rem;
}
.post-body li {
  margin-bottom: 0.5rem;
}
.post-body a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-deep);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-body a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(201,162,74,0.06);
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}
.post-body img {
  width: 100%;
  height: auto;
  margin: 1.75rem 0;
  border-radius: 2px;
}
.post-body strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- AUTHOR BIO ---------- */
.post-author {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(14,14,13,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
}
.post-author-photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--gold);
}
.post-author-body { flex: 1; }
.post-author-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  color: var(--ink);
}
.post-author-role {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.post-author-bio {
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- POST CTA ---------- */
.post-cta {
  margin: clamp(2rem, 5vw, 3rem) 0;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--ink);
  color: var(--cream);
  border-radius: 2px;
  text-align: center;
}
.post-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.85rem;
  color: var(--cream);
}
.post-cta p {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(245,239,226,0.8);
  margin: 0 auto 1.5rem;
  max-width: 50ch;
}
.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.post-cta .btn-outline {
  color: var(--cream);
  border-color: var(--cream);
}
.post-cta .btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ---------- BACK LINK ---------- */
.post-credit {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.8;
  text-align: center;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: 0.01em;
}
.post-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(14,14,13,0.25);
}
.post-credit a:hover {
  text-decoration-color: var(--gold);
}
.post-back {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--body);
  font-size: 0.95rem;
}
.post-back a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.post-back a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- MOBILE TWEAKS ---------- */
@media (max-width: 640px) {
  .post-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .post-body > p:first-of-type::first-letter {
    font-size: 2.6rem;
  }
}

/* ---------- OPEN HOUSE AT-A-GLANCE CARD ---------- */
.open-house-card {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--cream);
  border: 1px solid rgba(201,162,74,0.35);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(14,14,13,0.04);
}
.oh-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep, #a8842f);
}
.oh-grid {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}
.oh-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(14,14,13,0.10);
  align-items: baseline;
}
.oh-row:last-child { border-bottom: none; }
.oh-label {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.oh-value {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
}
.oh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(201,162,74,0.25);
}
@media (max-width: 640px) {
  .oh-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.6rem 0;
  }
  .oh-value { font-size: 1rem; }
}

/* ---------- FAQ ITEMS ---------- */
.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(14,14,13,0.10);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- INLINE LINK ---------- */
.inline-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--gold-deep, #a8842f); }

/* ---------- HORIZONTAL POST CARDS (all cards full-width, image left + text right) ---------- */
.blog-list .container .post-card { grid-column: 1 / -1 !important; }
.blog-list .container .post-card .post-card-link {
  display: grid !important;
  grid-template-columns: 1fr !important;
}
@media (min-width: 900px) {
  .blog-list .container .post-card .post-card-link {
    grid-template-columns: 1.2fr 1fr !important;
  }
}
.blog-list .container .post-card .post-card-image {
  min-height: 360px;
  aspect-ratio: auto !important;
}
.blog-list .container .post-card .post-card-body {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-list .container .post-card .post-card-title {
  font-size: 2rem;
  line-height: 1.15;
}
@media (max-width: 720px) {
  .blog-list .container .post-card .post-card-image { min-height: 220px; }
  .blog-list .container .post-card .post-card-body { padding: 1.5rem; }
  .blog-list .container .post-card .post-card-title { font-size: 1.5rem; }
}

/* Featured-only treatment: gold border + shadow */
.post-card--featured {
  position: relative;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 36px rgba(14,14,13,0.10);
}

/* ---------- "THIS WEEKEND" BADGE ---------- */
.post-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(14,14,13,0.25);
  z-index: 2;
}
