/* Study blog. Loaded only under /blog/. Tokens match the rest of QuizMatsuri. */
.blog-shell {
  max-width: 820px;
  margin: 0 auto;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
}

.blog-title {
  font-weight: 800;
  color: #1a2530;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.blog-dek {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.7;
}

.blog-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.blog-hero {
  margin: 0 0 1.5rem;
}

.blog-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #e2e8f0;
}

.blog-hero figcaption {
  color: #64748b;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.blog-prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.blog-prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1a2530;
  margin: 2.2rem 0 0.8rem;
  line-height: 1.35;
}

.blog-prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d60a8;
  margin: 1.4rem 0 0.5rem;
}

.blog-prose p {
  margin: 0 0 1rem;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.blog-prose li {
  margin-bottom: 0.4rem;
}

.blog-prose a {
  font-weight: 650;
}

.blog-prose blockquote {
  margin: 1rem 0 1.2rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #1d60a8;
  background: #f8fafc;
  color: #1a2530;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.blog-prose th,
.blog-prose td {
  border: 1px solid #e2e8f0;
  padding: 0.55rem 0.7rem;
  vertical-align: top;
  text-align: left;
}

.blog-prose th {
  background: #f8fafc;
  color: #1a2530;
}

.blog-prose .blog-cta-link,
a.blog-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #1d60a8;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
}

.blog-prose .blog-cta-link:hover,
a.blog-cta-link:hover {
  background: #164a83;
  color: #fff !important;
}

.blog-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.blog-related a {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  text-decoration: none;
  color: #1a2530;
  background: #fffbf2;
  height: 100%;
  font-weight: 700;
  line-height: 1.4;
}

.blog-related a span {
  display: block;
  font-weight: 600;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.blog-related a:hover {
  border-color: #1d60a8;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .blog-index-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-shadow: 0 4px 16px rgba(29, 96, 168, 0.05);
}

.blog-card:hover {
  border-color: #1d60a8;
  color: inherit;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2e8f0;
}

.blog-card-body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.blog-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #1a2530;
  line-height: 1.35;
  margin: 0;
}

.blog-card p {
  color: #334155;
  margin: 0;
  line-height: 1.55;
}

.blog-pager {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-pager a {
  text-decoration: none;
  font-weight: 700;
  max-width: 46%;
}
