:root {
  --article-blue: #1946d2;
  --article-navy: #0d1730;
  --article-ink: #172033;
  --article-muted: #5c687c;
  --article-line: #dce3ea;
  --article-soft: #f3f7f5;
  --article-mint: #dff2e9;
  --article-white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ig-article {
  margin: 0;
  background: var(--article-white);
  color: var(--article-ink);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.ig-article.ig-has-floating-header { padding-top: 0; }
body.ig-article a { color: var(--article-blue); }
.article-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.article-hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--article-navy);
}
.article-hero__media,
.article-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-hero__media img { object-fit: cover; object-position: center; }
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 12, 29, .94) 0%, rgba(5, 12, 29, .78) 52%, rgba(5, 12, 29, .28) 100%);
}
.article-hero__inner { position: relative; z-index: 1; padding-top: 116px; padding-bottom: 72px; color: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.breadcrumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.article-kicker,
.section-label {
  margin: 0 0 12px;
  color: #70e0ba;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.article-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: 0;
}
.article-hero__lead { max-width: 790px; margin: 24px 0 0; color: rgba(255, 255, 255, .9); font-size: 20px; line-height: 1.65; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.article-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.article-button .material-icons-outlined { font-size: 20px; }
.article-button--primary { background: var(--article-blue); color: #fff !important; }
.article-button--primary:hover { background: #1138b9; }
.article-button--outline { border-color: rgba(255, 255, 255, .5); color: #fff !important; background: rgba(255, 255, 255, .08); }
.article-button--outline:hover { background: rgba(255, 255, 255, .16); }

.article-layout { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 64px; justify-content: center; padding-top: 60px; padding-bottom: 84px; }
.article-toc { min-width: 0; }
.article-toc > div { position: sticky; top: 94px; border-left: 2px solid var(--article-line); padding-left: 18px; }
.article-toc p { margin: 0 0 12px; color: var(--article-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.article-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc li { margin: 0 0 10px; }
.article-toc a { color: #465268; font-size: 13px; line-height: 1.45; text-decoration: none; }
.article-toc a:hover { color: var(--article-blue); }
.article-content { min-width: 0; }
.author-row { display: flex; align-items: center; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--article-line); }
.author-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.author-row strong,
.author-row span { display: block; }
.author-row strong { margin-bottom: 3px; font-size: 15px; }
.author-row span { color: var(--article-muted); font-size: 13px; line-height: 1.45; }
.article-content section { padding: 44px 0; border-bottom: 1px solid var(--article-line); scroll-margin-top: 96px; }
.article-content h2,
.article-cta h2,
.article-footer h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
}
.article-content h2 { margin: 0 0 18px; color: var(--article-navy); font-size: 34px; line-height: 1.2; }
.article-content h3 { margin: 0 0 8px; color: var(--article-navy); font-size: 18px; line-height: 1.35; letter-spacing: 0; }
.article-content p,
.article-content li,
.article-content td,
.article-content th { font-size: 16px; line-height: 1.78; }
.article-content p { margin: 0 0 18px; color: #3e4a5f; }
.article-content section > p:last-child { margin-bottom: 0; }

.quick-answer { margin-top: 28px; border: 1px solid #abd8c6 !important; border-left: 5px solid #29a979 !important; background: var(--article-soft); padding: 26px 28px !important; }
.quick-answer .section-label { color: #167b58; }
.quick-answer p:last-child { color: var(--article-ink); font-size: 18px; line-height: 1.7; }

.table-scroll { overflow-x: auto; margin-top: 24px; border: 1px solid var(--article-line); border-radius: 8px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
th,
td { padding: 14px 16px; border-bottom: 1px solid var(--article-line); text-align: left; vertical-align: top; }
thead th { background: #eef2fb; color: var(--article-navy); font-size: 14px !important; }
tbody th { width: 24%; color: var(--article-navy); font-weight: 800; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }

.workflow { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--article-line); }
.workflow-step { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--article-line); }
.step-number { color: var(--article-blue); font-family: "Space Grotesk", Arial, sans-serif; font-size: 22px; font-weight: 800; }
.workflow-step p { margin: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.metric { border: 1px solid var(--article-line); border-radius: 8px; padding: 20px; background: #fff; }
.metric p { margin: 0; font-size: 14px; }
.pitfall-list { margin-top: 24px; }
.pitfall-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--article-line); }
.pitfall-list .material-icons-outlined { color: #d35151; font-size: 23px; }
.pitfall-list p { margin: 0; }

.faq-list details { border-top: 1px solid var(--article-line); }
.faq-list details:last-child { border-bottom: 1px solid var(--article-line); }
.faq-list summary { cursor: pointer; padding: 18px 34px 18px 0; color: var(--article-navy); font-weight: 800; line-height: 1.45; }
.faq-list details p { padding: 0 0 18px; }
.article-sources ul,
.article-related ul { list-style: none; padding: 0; margin: 22px 0 0; }
.article-sources li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--article-line); }
.article-sources li span { flex: 0 0 auto; color: var(--article-muted); font-size: 12px; }
.article-related li { padding: 10px 0; border-top: 1px solid var(--article-line); }
.article-sources a,
.article-related a { font-weight: 700; text-underline-offset: 3px; }

.article-cta { background: var(--article-navy); color: #fff; padding: 64px 0; }
.article-cta .article-shell { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.article-cta h2 { max-width: 740px; margin: 0 0 12px; color: #fff; font-size: 36px; line-height: 1.18; }
.article-cta p:not(.section-label) { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .76); line-height: 1.7; }
.article-button--light { flex: 0 0 auto; background: #fff; color: var(--article-navy) !important; }
.article-button--light:hover { background: var(--article-mint); }

.article-footer { padding: 58px 0 24px; background: #f5f7fa; border-top: 1px solid var(--article-line); }
.article-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 54px; }
.article-footer img { width: 54px; height: 54px; object-fit: contain; }
.article-footer p { max-width: 400px; color: var(--article-muted); line-height: 1.65; }
.article-footer h2 { margin: 0 0 14px; font-size: 16px; }
.article-footer ul { list-style: none; padding: 0; margin: 0; }
.article-footer li { margin: 0 0 9px; }
.article-footer a { color: #43506a; text-decoration: none; }
.article-footer__bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--article-line); color: var(--article-muted); font-size: 13px; }

@media (max-width: 920px) {
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-toc { display: none; }
  .article-hero h1 { font-size: 48px; }
}

@media (max-width: 640px) {
  .article-shell { width: min(100% - 36px, 1180px); }
  .article-hero { min-height: 560px; }
  .article-hero__overlay { background: linear-gradient(180deg, rgba(5, 12, 29, .58), rgba(5, 12, 29, .94) 68%); }
  .article-hero__inner { padding-top: 96px; padding-bottom: 48px; }
  .article-hero h1 { font-size: 37px; line-height: 1.08; }
  .article-hero__lead { font-size: 17px; line-height: 1.55; }
  .article-actions { display: grid; }
  .article-button { width: 100%; }
  .article-layout { padding-top: 38px; padding-bottom: 60px; }
  .article-content section { padding: 36px 0; }
  .article-content h2 { font-size: 28px; }
  .quick-answer { padding: 22px 20px !important; }
  .quick-answer p:last-child { font-size: 16px; }
  .metric-grid { grid-template-columns: 1fr; }
  .workflow-step { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .article-sources li { display: block; }
  .article-sources li span { display: block; margin-top: 5px; }
  .article-cta { padding: 48px 0; }
  .article-cta .article-shell { display: block; }
  .article-cta h2 { font-size: 29px; }
  .article-cta .article-button { margin-top: 24px; }
  .article-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
