/* ==========================================================================
   Shared Blog Theme — Blue / White
   Reuse across all blog posts: link this file, then use the same class
   structure (.blog-container, .blog-header, .blog-content, etc.) in every
   post's HTML. Only the <title>, <meta description>, and body content
   should change between posts.
   ========================================================================== */

:root {
  --ink:        #0B1F3A;   /* headings, primary text */
  --body-text:  #33415A;   /* paragraph text */
  --muted:      #64748B;   /* secondary/meta text */
  --blue:       #1D4ED8;   /* primary accent */
  --blue-deep:  #123A9A;   /* hover / stripe pairing */
  --blue-tint:  #EFF5FD;   /* highlight background */
  --blue-tint-2:#DCE9FB;   /* stripe pairing */
  --border:     #D7E3F5;
  --white:      #FFFFFF;

  --font-body: 'Public Sans', Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-color: var(--blue-tint-2);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.blog-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* ---------- Header ---------- */

.blog-header {
  margin-bottom: 48px;
}

.blog-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  border-radius: 4px;
  padding: 5px 10px;
  margin-bottom: 22px;
}

.blog-meta .stripe {
  width: 14px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  display: inline-block;
}

.blog-header h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

.blog-header .intro {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* ---------- Body content ---------- */

.blog-content h2 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 52px 0 18px;
  padding-left: 18px;
}

.blog-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: var(--blue);
}

.blog-content p {
  font-size: 16.5px;
  font-weight: 400;
  color: var(--body-text);
  margin: 0 0 20px;
  max-width: 68ch;
}

.blog-content strong {
  color: var(--ink);
  font-weight: 600;
}

.blog-content ul {
  padding-left: 0;
  margin: 4px 0 26px;
  list-style: none;
}

.blog-content li {
  position: relative;
  font-size: 16.5px;
  color: var(--body-text);
  padding-left: 22px;
  margin-bottom: 11px;
  max-width: 66ch;
}

.blog-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--blue-tint-2);
  border: 1px solid var(--blue);
}

/* ---------- Numbered tip/step list ---------- */
/* Wrap a run of h2 + content in <div class="tips-list"> and give each
   step heading class="tip-heading" to get auto-numbered badges instead
   of the default stripe. Use only when content is a genuine sequence. */

.tips-list {
  counter-reset: tip;
}

.blog-content .tips-list .tip-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 0;
  counter-increment: tip;
}

.blog-content .tips-list .tip-heading::before {
  content: counter(tip);
  position: static;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Highlight / tip callout (card-badge motif) ---------- */

.highlight {
  position: relative;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px 22px;
  margin: 34px 0;
  overflow: hidden;
}

.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 60%, var(--blue-deep) 60%, var(--blue-deep) 100%);
}

.highlight p {
  margin: 0;
  color: var(--ink);
  font-size: 16.5px;
  max-width: none;
}

.highlight p strong {
  color: var(--blue-deep);
}

/* ---------- Checklist / bottom line ---------- */

.bottom-line {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.bottom-line h2 {
  margin-top: 0;
}

.checklist {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.checklist p {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px 16px 20px;
  margin: 0;
  font-size: 16px;
}

.checklist p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 6px 0 0 6px;
  background: var(--blue);
}

.checklist p strong {
  display: block;
  color: var(--ink);
  font-size: 15.5px;
  margin-bottom: 3px;
}

/* ---------- Tables ---------- */

.blog-content .table-wrap {
  overflow-x: auto;
  margin: 8px 0 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.blog-content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15.5px;
}

.blog-content thead th {
  text-align: left;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-deep);
  padding: 12px 16px;
  white-space: nowrap;
}

.blog-content thead th:first-child {
  border-top-left-radius: 7px;
}

.blog-content thead th:last-child {
  border-top-right-radius: 7px;
}

.blog-content tbody td {
  padding: 12px 16px;
  color: var(--body-text);
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.blog-content tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.blog-content tbody tr:nth-child(even) {
  background: var(--blue-tint);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .blog-container {
    padding: 48px 20px 72px;
  }

  .blog-header h1 {
    font-size: 30px;
  }

  .blog-header .intro {
    font-size: 16.5px;
  }

  .blog-content h2 {
    font-size: 21px;
    margin: 40px 0 14px;
  }

  .blog-content p,
  .blog-content li,
  .checklist p {
    font-size: 15.5px;
  }

  .blog-content table {
    font-size: 14px;
  }

  .blog-content thead th,
  .blog-content tbody td {
    padding: 10px 12px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}