

/* SEO_ARTICLE_POLISH_START */
main[data-category] {
  max-width: 1040px;
  margin: 48px auto 72px;
  padding: 0 22px;
}

main[data-category] article {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.10);
  padding: clamp(28px, 5vw, 64px);
  color: #111827;
  line-height: 1.72;
}

main[data-category] article h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
}

main[data-category] article h2 {
  margin: 42px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #111827;
}

main[data-category] article h3 {
  margin: 26px 0 8px;
  font-size: 20px;
  color: #111827;
}

main[data-category] article p,
main[data-category] article li {
  max-width: 780px;
  font-size: 18px;
  line-height: 1.75;
  color: #374151;
  text-align: left !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

main[data-category] article .meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 28px;
}

main[data-category] article ul,
main[data-category] article ol {
  max-width: 780px;
  padding-left: 24px;
}

main[data-category] article a {
  color: #2563eb;
  font-weight: 700;
}

main[data-category] article .cta,
main[data-category] article [class*="cta"],
main[data-category] article section[class*="cta"] {
  max-width: 820px;
  margin: 34px 0;
  padding: 24px;
  border-radius: 22px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

main[data-category] article .cta *,
main[data-category] article [class*="cta"] *,
main[data-category] article section[class*="cta"] * {
  color: inherit;
}
/* SEO_ARTICLE_POLISH_END */

/* QUICK_DARK_BLOG_FIX */
body.blog-article-page,
body:has(main[data-category]) {
  background: #060b1a !important;
}

main[data-category] article {
  background: linear-gradient(145deg, rgba(8,15,35,.96), rgba(4,9,24,.9)) !important;
  border: 1px solid rgba(212,175,55,.28) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.5) !important;
  color: #e5e7eb !important;
}

main[data-category] article h1 {
  color: #ffffff !important;
}

main[data-category] article h2 {
  color: #f5d76e !important;
}

main[data-category] article p,
main[data-category] article li {
  color: #cbd5e1 !important;
  text-align: left !important;
}

main[data-category] article a {
  color: #f5d76e !important;
}
/* QUICK_DARK_BLOG_FIX_END */


/* BLOG_CARDS_START */
/* Clean dark article cards.
   Used by the homepage "Latest articles" block and the /blog/ "All articles" page.
   New auto-published articles drop in here automatically as cards, newest first. */

/* --- /blog/ page: dark background + centered header/footer --- */
body:has(.blog-list[aria-label="All articles"]) {
  background: radial-gradient(1200px 600px at 50% -8%, #0d1838, #060b1a 60%) !important;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #e5e7eb;
}
body:has(.blog-list[aria-label="All articles"]) header { text-align: center; padding: 28px 0 4px; }
body:has(.blog-list[aria-label="All articles"]) header a { color: #f5d76e; text-decoration: none; font-weight: 800; }
body:has(.blog-list[aria-label="All articles"]) footer { color: #64748b; text-align: center; padding: 48px 0 60px; }

/* --- section wrappers (both pages) --- */
.blog-list[aria-label="All articles"],
.blog-list[aria-label="Latest articles"] {
  max-width: 1120px !important;
  margin: 30px auto 72px !important;
  padding: 0 22px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
}
.blog-list[aria-label="Latest articles"] {
  margin: 0 auto !important;
  padding: 64px 22px !important;
}
.blog-list[aria-label="Latest articles"] .seo-articles-eyebrow {
  margin: 0 0 6px;
  color: #d4af37;
  font: 700 12px/1 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.blog-list[aria-label="All articles"] h1,
.blog-list[aria-label="Latest articles"] h2 {
  color: #fff;
  font-family: Georgia, serif;
  letter-spacing: -0.02em;
  margin: 14px 0 8px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
}
.blog-list[aria-label="Latest articles"] h2 { margin: 0 0 40px; }
.blog-list[aria-label="All articles"] > p { color: #9fb0c7; margin: 0 0 40px; font-size: 15px; }

/* --- the responsive card grid --- */
.blog-list[aria-label="All articles"] ul,
.blog-list[aria-label="Latest articles"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}

/* --- reset any older list styling on the items --- */
.blog-list[aria-label="All articles"] li,
.blog-list[aria-label="Latest articles"] li.blog-item {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

/* --- the card itself is the link --- */
.blog-list[aria-label="All articles"] li a,
.blog-list[aria-label="Latest articles"] li.blog-item a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px;
  background: linear-gradient(160deg, rgba(20,27,45,.95), rgba(10,15,30,.95));
  border: 1px solid rgba(200,168,75,.22);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
  color: #fff !important;
  text-decoration: none !important;
  font: 700 18px/1.34 Georgia, serif;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.blog-list[aria-label="All articles"] li a:hover,
.blog-list[aria-label="Latest articles"] li.blog-item a:hover {
  transform: translateY(-6px);
  border-color: rgba(200,168,75,.6);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 26px rgba(200,168,75,.14);
}

/* --- optional rich parts inside the hand-written homepage cards --- */
.blog-list .bc-tag {
  align-self: flex-start;
  font: 700 11px/1 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(200,168,75,.15);
  color: #C8A84B;
}
.blog-list .blog-item[data-category="cdl"] .bc-tag { background: rgba(232,124,53,.15); color: #E87C35; }
.blog-list .blog-item[data-category="dmv"] .bc-tag { background: rgba(59,130,246,.15); color: #3B82F6; }
.blog-list .bc-title { font: 700 18px/1.34 Georgia, serif; color: #fff; }
.blog-list .bc-ex { margin: 0; flex-grow: 1; font: 400 14px/1.6 'DM Sans', sans-serif; color: #94a3b8; }
.blog-list .bc-read { font: 700 13px/1 'DM Sans', sans-serif; color: #C8A84B; }
.blog-list .blog-item[data-category="cdl"] .bc-read { color: #E87C35; }

@media (max-width: 1024px) {
  .blog-list[aria-label="All articles"] ul,
  .blog-list[aria-label="Latest articles"] ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-list[aria-label="All articles"] ul,
  .blog-list[aria-label="Latest articles"] ul { grid-template-columns: 1fr; }
}
/* BLOG_CARDS_END */
