:root {
  --blog-ink: #172033;
  --blog-muted: #59677a;
  --blog-line: #d8e2ee;
  --blog-paper: #fbfcfe;
  --blog-soft-blue: #edf5ff;
  --blog-blue: #2563eb;
  --blog-red: #ef3f34;
  --blog-navy: #111827;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.blog-page {
  margin: 0;
  background: var(--blog-paper);
  color: var(--blog-ink);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.blog-page .site-header--unified .main-nav a[aria-current="page"] { color: #c92b24; }
.blog-brand-mark { display: block; width: 40px; height: 40px; border-radius: 8px; }
.blog-page main { overflow: hidden; }

.blog-landing-hero,
.article-hero {
  position: relative;
  border-bottom: 1px solid var(--blog-line);
  background:
    linear-gradient(rgba(91, 156, 230, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 156, 230, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(174, 211, 255, 0.52), transparent 32%),
    #f8fbff;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.blog-landing-hero::after,
.article-hero::after {
  position: absolute;
  right: clamp(26px, 7vw, 120px);
  bottom: -1px;
  width: clamp(110px, 18vw, 260px);
  height: 6px;
  background: var(--blog-red);
  content: "";
}

.blog-landing-hero-inner,
.article-hero-inner,
.blog-index-content,
.article-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.blog-landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 80px;
  min-height: 390px;
  padding: 92px 0 72px;
}

.blog-kicker,
.article-kicker,
.section-kicker,
.card-tag {
  margin: 0;
  color: #b82720;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-landing-hero h1,
.article-hero h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  color: var(--blog-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.blog-landing-hero .hero-lead,
.article-dek {
  max-width: 720px;
  margin: 0;
  color: #46566b;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-note {
  align-self: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 50px rgba(41, 74, 116, 0.08);
  padding: 26px;
}

.hero-note strong { display: block; margin-bottom: 8px; font-size: 15px; }
.hero-note p { margin: 0; color: var(--blog-muted); font-size: 14px; line-height: 1.65; }
.blog-index-content { padding: 72px 0 12px; }

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading-row h2,
.topic-strip h2 {
  margin: 7px 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.035em;
}

.article-list {
  display: grid;
  gap: 22px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  border-color: #a9bfd8;
  box-shadow: 0 20px 52px rgba(24, 48, 78, 0.1);
  transform: translateY(-2px);
}

.article-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px);
}

.article-card h2 {
  margin: 13px 0 16px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.article-card p { margin: 0; color: var(--blog-muted); font-size: 16px; line-height: 1.7; }
.card-meta { margin-top: 24px; color: #6b7788; font-size: 13px; font-weight: 650; }

.article-card-art {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-left: 1px solid var(--blog-line);
  background:
    linear-gradient(rgba(93, 160, 232, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 160, 232, 0.18) 1px, transparent 1px),
    var(--blog-soft-blue);
  background-size: 42px 42px;
}

.paper-stack {
  position: absolute;
  inset: 16% 12% 12% 18%;
  border: 1px solid #d2deec;
  border-radius: 8px;
  background: #fff;
  box-shadow: -18px 18px 0 #dbeaff, 20px -18px 0 #fff8f6;
  transform: rotate(-2deg);
}

.paper-stack::before {
  position: absolute;
  top: 22%;
  left: 12%;
  width: 64%;
  height: 42%;
  background: repeating-linear-gradient(to bottom, #bdd0e4 0 3px, transparent 3px 22px);
  content: "";
}

.paper-stack::after {
  position: absolute;
  right: 12%;
  bottom: 14%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid var(--blog-red);
  border-radius: 50%;
  background: #fff;
  color: var(--blog-red);
  content: "✓";
  font-size: 26px;
  font-weight: 900;
}

.article-card-art.is-pdf .paper-stack::after {
  width: 58px;
  height: 40px;
  border-radius: 7px;
  background: var(--blog-red);
  color: #fff;
  content: "PDF";
  font-size: 12px;
  letter-spacing: 0.06em;
}

.topic-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  margin-top: 64px;
  border-top: 1px solid var(--blog-line);
  padding: 48px 0 10px;
}

.topic-list { display: grid; gap: 0; border-top: 1px solid var(--blog-line); }
.topic-list span { border-bottom: 1px solid var(--blog-line); color: #39495e; font-size: 15px; font-weight: 700; padding: 16px 0; }
.article-hero-inner { padding: 74px 0 70px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #718096;
  font-size: 13px;
}

.breadcrumbs a { color: #43546a; text-decoration: none; }
.article-hero h1 { max-width: 900px; font-size: clamp(42px, 7vw, 76px); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: #657287;
  font-size: 13px;
  font-weight: 650;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: center;
  gap: 72px;
  padding: 72px 0 24px;
}

.article-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 12px;
  border-top: 3px solid var(--blog-red);
  padding-top: 18px;
}

.article-rail strong { margin-bottom: 2px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; }
.article-rail a { color: #66758a; font-size: 13px; line-height: 1.4; text-decoration: none; }
.article-rail a:hover { color: #b82720; }
.article-body { min-width: 0; }
.article-body > p:first-child { margin-top: 0; color: #27364a; font-size: 20px; line-height: 1.72; }
.article-body p, .article-body li { color: #38485d; font-size: 16px; line-height: 1.78; }
.article-body p { margin: 0 0 22px; }

.article-body h2 {
  margin: 54px 0 16px;
  color: var(--blog-navy);
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.article-body a { color: #1d55b3; font-weight: 700; text-decoration-color: rgba(29, 85, 179, 0.35); text-underline-offset: 3px; }
.article-body a:hover { color: #b82720; }
.article-body ul { display: grid; gap: 8px; margin: 16px 0 24px; padding-left: 22px; }

.workflow-card {
  margin: 34px 0;
  border: 1px solid #bfd4ea;
  border-left: 4px solid var(--blog-blue);
  border-radius: 10px;
  background: #f2f8ff;
  padding: 22px 24px;
}

.workflow-card strong { display: block; margin-bottom: 7px; color: #1e3553; }
.workflow-card p { margin: 0; color: #4d627a; font-size: 15px; line-height: 1.65; }

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  border-top: 1px solid var(--blog-line);
  padding-top: 30px;
}

.article-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-navy);
  border-radius: 7px;
  background: var(--blog-navy);
  color: #fff;
  font-size: 14px;
  padding: 0 18px;
  text-decoration: none;
}

.article-actions a:last-child { background: #fff; color: var(--blog-navy); }
.article-actions a:hover { color: #fff; }
.article-actions a:last-child:hover { background: #f3f6fa; color: var(--blog-navy); }

.related-tools {
  width: min(900px, calc(100% - 48px));
  margin: 72px auto 0;
  border-top: 1px solid var(--blog-line);
  padding-top: 42px;
}

.related-tools h2 { margin: 7px 0 22px; font-family: "Manrope", "Inter", sans-serif; font-size: 30px; letter-spacing: -0.035em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.related-grid a {
  min-height: 132px;
  border: 1px solid var(--blog-line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  padding: 20px;
  text-decoration: none;
}

.related-grid a:hover { border-color: #9fb5cf; }
.related-grid strong, .related-grid span { display: block; }
.related-grid strong { margin-bottom: 8px; font-size: 15px; }
.related-grid span { color: var(--blog-muted); font-size: 13px; line-height: 1.55; }
.blog-page .site-footer.site-footer--unified { margin-bottom: 0; }

@media (max-width: 820px) {
  .blog-landing-hero-inner, .article-card, .topic-strip { grid-template-columns: 1fr; }
  .blog-landing-hero-inner { gap: 34px; padding: 72px 0 58px; }
  .hero-note { max-width: 600px; }
  .article-card-art { border-top: 1px solid var(--blog-line); border-left: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-rail strong { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .blog-landing-hero-inner, .article-hero-inner, .blog-index-content, .article-layout, .related-tools { width: min(100% - 30px, 1120px); }
  .blog-landing-hero h1, .article-hero h1 { letter-spacing: -0.045em; }
  .article-card-copy { padding: 28px 24px; }
  .article-card-art { min-height: 260px; }
  .article-hero-inner { padding: 50px 0 54px; }
  .article-layout { padding-top: 48px; }
  .article-rail { grid-template-columns: 1fr; }
  .article-rail strong { grid-column: auto; }
  .article-body > p:first-child { font-size: 18px; }
}
