/* ==========================================================================
   Restoration Rocket — blog listing + article styles.
   Relies on the shared theme tokens (theme.css) and base styles (common.css)
   loaded before this file on every blog page.
   ========================================================================== */

/* --- Blog listing ------------------------------------------------------- */

.blog-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  padding: 72px 0 56px;
}

.blog-hero h1 {
  max-width: 24ch; /* common.css caps h1 at 11.6ch for the homepage hero */
}

.blog-hero .hero-lead {
  max-width: 760px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #BFDBFE;
}

.blog-card-media {
  display: block;
  margin: -26px -26px 20px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.blog-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.03);
}

.blog-card-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #1D4ED8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-card h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.blog-card h3 a:hover {
  color: var(--blue);
}

.blog-card-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 0.97rem;
  margin-bottom: 18px;
}

.blog-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

.blog-card-link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Article pages ------------------------------------------------------ */

.post-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.post-hero .container,
.post-body-wrap {
  max-width: 820px;
}

.post-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.14;
  max-width: none; /* common.css caps h1 at 11.6ch for the homepage hero */
}

.post-breadcrumb {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 18px;
}

.post-breadcrumb a {
  color: var(--blue);
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
}

.post-meta .post-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  color: #1D4ED8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.post-hero-media {
  width: min(820px, calc(100% - 40px));
  margin: 44px auto -12px;
}

.post-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.post-body {
  padding: 56px 0 72px;
}

.post-body-wrap {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.post-body h2 {
  font-size: 1.65rem;
  line-height: 1.22;
  margin: 42px 0 14px;
}

.post-body h3 {
  font-size: 1.22rem;
  margin: 30px 0 10px;
}

.post-body p,
.post-body li {
  font-size: 1.04rem;
  line-height: 1.75;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.post-body li + li {
  margin-top: 10px;
}

.post-lead {
  font-size: 1.13rem;
  color: var(--muted);
}

.post-callout {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 18px;
  padding: 20px 24px;
  margin: 28px 0;
}

.post-callout p {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

.post-cta {
  margin-top: 8px;
}

.post-cta .cta-box p {
  max-width: 720px;
}

/* --- Market Leak Report modal (shared popup, same as site-wide pattern) -- */

.rr-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 23, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rr-booking-modal.is-open {
  display: flex;
  opacity: 1;
}

.rr-booking-modal__panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rr-booking-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
}

.rr-booking-modal__head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rr-booking-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rr-booking-modal__close:hover {
  background: var(--navy);
  color: #fff;
}

.rr-booking-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 12px;
}

body.rr-booking-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .rr-booking-modal {
    padding: 10px;
  }

  .rr-booking-modal__head {
    padding: 16px 18px 12px;
  }
}
