/* ============================================================
   APPROVE IT — blog.css
   Blog listing and article page styles
   ============================================================ */

/* ── Page chrome ── */
body.blog-page {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.blog-page main { flex: 1; }

/* ── Blog listing header ── */
.blog-hero {
  padding: 130px 40px 48px;
}

.blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blog-hero .eyebrow { margin-bottom: 20px; }

.blog-hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}

.blog-hero-title .serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
}

.blog-hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 540px;
}

/* ── Post card grid ── */
.blog-listing {
  padding: 0 40px 100px;
}

.blog-listing-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid rgba(4, 43, 49, 0.06);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(4, 43, 49, 0.04);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(4, 43, 49, 0.09);
}

.post-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
}

.post-card-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-soft);
}

.post-card-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}

.post-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--turquoise-soft);
  color: var(--turquoise-deep);
  font-size: 14px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.post-card:hover .post-card-arrow {
  background: var(--turquoise-deep);
  color: var(--white);
  transform: translate(2px, -2px);
}

/* ── Article header ── */
.article-header {
  padding: 130px 40px 0;
}

.article-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(4, 43, 49, 0.08);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.18s ease;
}

.article-back:hover { color: var(--ink); }

.article-back svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.article-back:hover svg { transform: translateX(-3px); }

.article-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  background: var(--turquoise-soft);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.article-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  flex-wrap: wrap;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray);
  display: inline-block;
}

/* ── Article body (white card) ── */
.article-wrap {
  padding: 0 40px 80px;
}

.article-doc {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 0 0 24px 24px;
  padding: 48px 64px 56px;
  box-shadow: 0 1px 2px rgba(4, 43, 49, 0.04), 0 16px 40px rgba(4, 43, 49, 0.06);
  border: 1px solid rgba(4, 43, 49, 0.06);
  border-top: none;
}

.article-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 20px;
  border-left: 3px solid var(--turquoise);
  margin-bottom: 36px;
}

.article-doc h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  margin: 44px 0 14px;
}

.article-doc h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-doc p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-doc a {
  color: var(--turquoise-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.article-doc a:hover { color: var(--ink); }

.article-doc ul,
.article-doc ol {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.article-doc ul li,
.article-doc ol li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
}

.article-doc ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 7px;
  color: var(--turquoise-deep);
  transform: rotate(45deg);
}

.article-doc ol {
  counter-reset: ol-counter;
}

.article-doc ol li {
  counter-increment: ol-counter;
}

.article-doc ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--turquoise-deep);
  line-height: 1.65;
}

.article-doc strong {
  font-weight: 700;
  color: var(--ink);
}

.article-doc em {
  font-family: var(--serif);
  font-style: italic;
}

.article-doc hr {
  border: none;
  border-top: 1px solid rgba(4, 43, 49, 0.1);
  margin: 36px 0;
}

/* ── Inline CTA box ── */
.article-cta-box {
  background: var(--ink);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 36px 0;
  text-align: center;
}

.article-cta-box .cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 8px;
}

.article-cta-box .cta-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.article-cta-box .cta-title .serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--turquoise);
}

.article-cta-box .cta-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  line-height: 1.5;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--turquoise);
  color: var(--teal);
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.article-cta-btn:hover {
  background: var(--white);
  color: var(--teal) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.article-cta-btn svg { width: 13px; height: 13px; }

/* ── Key takeaways box ── */
.article-takeaways {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 36px 0 0;
  border: 1px solid rgba(4, 43, 49, 0.08);
}

.article-takeaways h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--turquoise-deep) !important;
  margin: 0 0 14px !important;
}

.article-takeaways ul {
  margin-bottom: 0 !important;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .blog-hero { padding: 110px 20px 36px; }
  .blog-listing { padding: 0 16px 80px; }
  .blog-listing-inner { grid-template-columns: 1fr; }
  .article-header { padding: 110px 16px 0; }
  .article-wrap { padding: 0 16px 60px; }
  .article-doc { padding: 32px 24px 40px; border-radius: 0 0 20px 20px; }
  .article-intro { font-size: 17px; }
  .article-doc p, .article-doc li { font-size: 15px; }
  .article-doc h2 { font-size: 20px; margin-top: 36px; }
}
