/* Blog post modal — hand-written CSS (not part of the Tailwind build).
   css/style.css is a pre-compiled Tailwind output that only contains classes
   already scanned at build time, so new utility classes added here wouldn't
   render until someone reruns `npm run build:css`. This file has no such
   dependency and is safe to edit directly. */

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}

.blog-modal.is-open {
  display: flex;
}

.blog-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 26, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.blog-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 2rem 0;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 32px -8px rgba(11, 18, 38, 0.22);
}

@media (min-width: 640px) {
  .blog-modal {
    padding: 2rem;
  }
  .blog-modal__panel {
    margin: 3rem 0;
    padding: 2.5rem;
  }
}

.blog-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0b1226;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.blog-modal__close:hover,
.blog-modal__close:focus-visible {
  background: #e2e8f0;
}

.blog-modal__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c8102e;
}

.blog-modal__title {
  margin-top: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #0b1226;
}

@media (min-width: 640px) {
  .blog-modal__title {
    font-size: 2rem;
  }
}

.blog-modal__meta {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.blog-modal__content {
  margin-top: 1.5rem;
  color: #475569;
  line-height: 1.7;
}

.blog-modal__content p {
  margin-top: 1.1rem;
}

.blog-modal__content p:first-child {
  margin-top: 0;
}

.blog-modal__content h3 {
  margin-top: 1.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #0b1226;
}

.blog-modal__content a {
  color: #c8102e;
  font-weight: 600;
  text-decoration: underline;
}

/* Blog listing / teaser card trigger */
.blog-card-trigger {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 1rem;
}

.blog-card-trigger:focus-visible {
  outline: 2px solid #c8102e;
  outline-offset: 2px;
}

.blog-card-title {
  transition: color 0.2s ease;
}

.blog-card-trigger:hover .blog-card-title,
.blog-card-trigger:focus-visible .blog-card-title {
  color: #c8102e;
}
