/* =============================================================
   Shubak — Blog & Article styles (extends styles.css)
   ============================================================= */

/* ---- Page header (blog index + article) ---- */
.bpage { padding-top: clamp(110px, 14vh, 170px); }

.bhead { padding-bottom: clamp(40px, 6vw, 72px); }
.bhead__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.bhead__crumb a { color: var(--ink-dim); transition: color .2s; }
.bhead__crumb a:hover { color: var(--accent); }
.bhead__crumb span { color: var(--ink-faint); }

.bhead__title {
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.bhead__title .em { color: var(--accent); }
.bhead__lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 56ch;
}

/* ---- Blog index grid ---- */
.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  padding-bottom: clamp(80px, 12vw, 160px);
}

.bcard {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
  min-height: 240px;
}
.bcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--card-tint, rgba(233,139,42,.12)), transparent 60%);
  opacity: .7;
  pointer-events: none;
}
.bcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--bg-soft);
}
.bcard__tag {
  position: relative;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 6px 12px;
}
.bcard__title {
  position: relative;
  margin-top: 18px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.bcard__excerpt {
  position: relative;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mute);
  flex: 1;
}
.bcard__more {
  position: relative;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.bcard__more svg { transition: transform .3s; }
.bcard:hover .bcard__more svg { transform: translateX(-4px); }
body[dir="ltr"] .bcard:hover .bcard__more svg { transform: translateX(4px); }

/* ---- Article body ---- */
.article {
  padding-bottom: clamp(60px, 9vw, 120px);
}
.article__body {
  max-width: 72ch;
  margin: 0 auto;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.9;
  color: var(--ink-dim);
}
.article__body h2 {
  margin: 56px 0 18px;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.article__body h3 {
  margin: 36px 0 12px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--ink);
}
.article__body p { margin: 0 0 20px; }
.article__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article__body a:hover { color: #F29A3F; }
.article__body ul,
.article__body ol {
  margin: 0 0 24px;
  padding-inline-start: 26px;
}
.article__body li { margin-bottom: 10px; }
.article__body li::marker { color: var(--accent); }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-inline-start: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-size: 1.02em;
}
body[dir="ltr"] .article__body blockquote { border-radius: 12px 0 0 12px; }

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-mute);
}
.article__meta time { color: var(--ink-dim); }
.article__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* Key-takeaways / callout box */
.callout {
  max-width: 72ch;
  margin: 36px auto;
  padding: 26px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.callout__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 14px;
}
.callout ul { margin: 0; padding-inline-start: 22px; }
.callout li { margin-bottom: 8px; color: var(--ink-dim); font-size: 15px; line-height: 1.7; }

/* Comparison table */
.article__body .tablewrap { overflow-x: auto; margin: 28px 0; }
.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}
.article__body th,
.article__body td {
  text-align: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.article__body thead th {
  color: var(--ink);
  font-weight: 600;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line-strong);
}
.article__body tbody td:first-child { color: var(--ink); font-weight: 500; }
.article__body tbody tr:hover td { background: rgba(243,238,228,.02); }

/* Article footer CTA */
.acta {
  max-width: 72ch;
  margin: 60px auto 0;
  padding: 36px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line-strong);
  border-radius: 24px;
}
.acta__title {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.acta__text {
  margin: 12px auto 24px;
  max-width: 46ch;
  color: var(--ink-dim);
  line-height: 1.7;
  font-size: 15px;
}
/* Buttons sit inside .article__body, which colors links amber — restore button styling */
.article__body a.btn { text-decoration: none; }
.article__body a.btn--primary,
.article__body a.btn--primary:hover { color: var(--bg); }
.article__body a.btn--ghost,
.article__body a.btn--ghost:hover { color: var(--ink); }

/* Related / back link */
.bback {
  max-width: 72ch;
  margin: 0 auto;
  padding-bottom: 8px;
}
.bback a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  transition: color .2s;
}
.bback a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .bcard { padding: 24px; min-height: 0; }
  .bgrid { grid-template-columns: 1fr; }
}
