/*
  ============================================================
  Risk Posture Tools — Risk Posture Insights Component Styles
  Section: /insights
  Scope: .blog-mock, .blog-callout, .blog-cta, .blog-references,
         heat map, progress bars, badges, tables, CSF trend chart
  These are additive — they don't redefine any site-level selectors.
  Import or <link> this after your main stylesheet.
  ============================================================
*/

/* ── BROWSER CHROME MOCK ── */
.blog-mock {
  background: #ffffff;
  border: 1px solid #dde2ed;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15,17,23,.12);
  margin: 2.5rem 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
}
/* The fake browser chrome is hidden: these illustration mockups read as plain
   content cards, and real tool screenshots are used where one adds value. */
.blog-mock__bar {
  display: none;
}
.blog-mock__dot {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 50%;
}
.blog-mock__dot--r { background: #ff5f57; }
.blog-mock__dot--y { background: #febc2e; }
.blog-mock__dot--g { background: #28c840; }
.blog-mock__url {
  margin-left: .6rem;
  background: #2d3250;
  border-radius: 5px;
  padding: .15rem .75rem;
  font-size: .72rem;
  color: #8899bb;
  flex: 1;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.blog-mock__body {
  padding: 1.4rem 1.5rem;
}
.blog-mock__label {
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8492a6;
  margin-bottom: 1rem;
}
.blog-mock__caption {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  color: #8492a6;
  margin-top: .65rem;
  line-height: 1.5;
}
.blog-mock__caption--alert { color: #b91c1c; font-weight: 600; }

/* ── HEAT MAP ── */
.heatmap-grid {
  display: grid;
  grid-template-columns: 36px repeat(5, 1fr);
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 600;
  margin: .5rem 0;
  user-select: none;
}
.hm-corner, .hm-axis-header, .hm-axis-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .1rem;
}
.hm-axis-header { color: #8492a6; font-weight: 700; }
.hm-axis-label  { color: #8492a6; justify-content: flex-end; padding-right: .4rem; }
.hm-cell {
  padding: .55rem .2rem;
  text-align: center;
  border-radius: 4px;
  position: relative;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
.hm-vl { background: #dcfce7; color: #166534; }
.hm-l  { background: #bbf7d0; color: #14532d; }
.hm-m  { background: #fef08a; color: #854d0e; }
.hm-h  { background: #fed7aa; color: #9a3412; }
.hm-vh { background: #fecaca; color: #991b1b; }

/* plotted risks inside cells */
.hm-risk-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(15,17,23,.75);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
}

/* heat map legend */
.hm-legend {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  color: #3d4355;
}
.hm-legend-item { display: flex; align-items: center; gap: .3rem; }
.hm-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
}

/* ── BADGES ── */
.blog-badge {
  display: inline-block;
  padding: .18rem .5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}
.blog-badge--critical { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.blog-badge--vh       { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.blog-badge--high     { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.blog-badge--mod      { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.blog-badge--low      { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.blog-badge--info     { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── DETAIL TABLE ── */
.blog-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .83rem;
}
.blog-detail-table tr:nth-child(even) td { background: #f8faff; }
.blog-detail-table td { padding: .4rem .75rem; border-bottom: 1px solid #eef1f8; color: #3d4355; }
.blog-detail-table__key { color: #8492a6 !important; width: 46%; }

/* ── GENERIC TABLE ── */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
}
.blog-table th {
  background: #0f1117;
  color: #fff;
  font-weight: 600;
  padding: .5rem .75rem;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.blog-table td { padding: .45rem .75rem; border-bottom: 1px solid #dde2ed; color: #3d4355; }
.blog-table tr:nth-child(even) td { background: #f8faff; }
.blog-table__mono { font-family: 'JetBrains Mono', monospace; color: #3b6bdc !important; font-size: .78rem; }
.blog-table__overdue { color: #b91c1c !important; font-weight: 700; }
.blog-table--compact td, .blog-table--compact th { padding: .38rem .65rem; font-size: .78rem; }

/* ── CALLOUTS ── */
.blog-callout {
  border-left: 4px solid #3b6bdc;
  background: #eef2fd;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1.75rem 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .9rem;
  color: #3d4355;
  line-height: 1.65;
}
.blog-callout strong { color: #3b6bdc; }
.blog-callout--amber { border-color: #f59e0b; background: #fef9ec; }
.blog-callout--amber strong { color: #92680b; }
.blog-callout--green { border-color: #10b981; background: #ecfdf5; }
.blog-callout--green strong { color: #065f46; }
.blog-callout--red   { border-color: #ef4444; background: #fef2f2; }
.blog-callout--red strong   { color: #991b1b; }

/* ── PROGRESS BARS ── */
.blog-progress-item { margin-bottom: .65rem; }
.blog-progress-item__label {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
  color: #3d4355;
  margin-bottom: .3rem;
}
.blog-progress-item__pct { font-weight: 700; }
.blog-progress-item__pct--green { color: #10b981; }
.blog-progress-item__pct--amber { color: #f59e0b; }
.blog-progress-item__pct--red   { color: #ef4444; }
.blog-progress-bar {
  height: 10px;
  background: #dde2ed;
  border-radius: 99px;
  overflow: hidden;
}
.blog-progress-bar__fill { height: 100%; border-radius: 99px; background: #3b6bdc; }

/* ── CMMC SCORE ROW ── */
.blog-score-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.blog-score-display { text-align: center; }
.blog-score-display__number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 800;
  color: #3b6bdc;
  line-height: 1;
}
.blog-score-display__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8492a6;
  margin-top: .3rem;
}
.blog-progress-stack { flex: 1; min-width: 180px; }

/* ── FINDINGS BOX ── */
.blog-findings-box {
  background: #f8faff;
  border: 1px solid #dde2ed;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
}
.blog-findings-box strong { display: block; margin-bottom: .5rem; color: #0f1117; }
.blog-finding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .22rem 0;
  border-bottom: 1px solid #eef1f8;
  color: #3d4355;
  gap: .5rem;
}
.blog-finding-row:last-child { border-bottom: none; }

/* ── FINDINGS SUMMARY (RMF Step 5) ── */
.blog-findings-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.blog-findings-summary__item { text-align: center; flex: 1; min-width: 56px; }
.blog-findings-summary__count {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.blog-findings-summary__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  color: #8492a6;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-finding-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: .6rem .85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .78rem;
  color: #3d4355;
}

/* ── RISK FORMULA ── */
.blog-formula {
  text-align: center;
  padding: 1rem 0 .75rem;
}
.blog-formula__text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f1117;
}
.blog-formula__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  color: #8492a6;
  margin-top: .4rem;
}
.blog-formula-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: .75rem;
}
.blog-formula-col {
  border-radius: 8px;
  padding: .9rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  color: #3d4355;
  line-height: 1.5;
}
.blog-formula-col--blue { background: #eef2fd; }
.blog-formula-col--amber { background: #fef9ec; }
.blog-formula-col__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.blog-formula-col--blue .blog-formula-col__title { color: #3b6bdc; }
.blog-formula-col--amber .blog-formula-col__title { color: #92680b; }

/* ── RISK SUMMARY GRID ── */
.blog-risk-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
}
.blog-risk-summary-col {
  background: #f8faff;
  border: 1px solid #dde2ed;
  border-radius: 8px;
  padding: .75rem;
}
.blog-risk-summary-col__title { font-weight: 700; margin-bottom: .4rem; }
.blog-risk-summary-col__big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #3b6bdc;
}
.blog-risk-summary-col__sub { font-size: .72rem; color: #8492a6; }

/* ── RMF STEP CHIPS ── */
.rmf-step-chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.rmf-chip {
  padding: .35rem .85rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .73rem;
  font-weight: 700;
}
.rmf-chip--done    { background: #10b981; color: #fff; }
.rmf-chip--active  { background: #3b6bdc; color: #fff; }
.rmf-chip--pending { background: #dde2ed; color: #8492a6; }

.rmf-categorize-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
}
.rmf-categorize-summary__item {
  background: #f8faff;
  border: 1px solid #dde2ed;
  border-radius: 6px;
  padding: .65rem .85rem;
}
.rmf-categorize-summary__title { font-weight: 700; margin-bottom: .4rem; }
.rmf-categorize-summary__sub { font-size: .7rem; color: #8492a6; margin-top: .35rem; }
.rmf-categorize-summary__baseline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #3b6bdc;
}
.rmf-cia-badges { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ── CSF FUNCTION GRID ── */
.csf-function-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.csf-function-card {
  background: #f8faff;
  border: 1px solid #dde2ed;
  border-radius: 6px;
  padding: .65rem;
  text-align: center;
}
.csf-function-card__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  color: #8492a6;
  margin-bottom: .25rem;
  letter-spacing: .06em;
}
.csf-function-card__score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #3b6bdc;
}
.csf-function-card__gap { font-size: .64rem; margin-top: .2rem; }
.csf-function-card__gap--red    { color: #b91c1c; }
.csf-function-card__gap--amber  { color: #92680b; }
.csf-function-card__gap--green  { color: #065f46; }

/* ── CSF TREND CHART ── */
.csf-trend-chart { margin-bottom: .25rem; }
.csf-trend-chart svg { width: 100%; height: auto; display: block; }
.csf-trend-legend {
  display: flex;
  gap: 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .72rem;
  color: #3d4355;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.csf-trend-legend__item { display: flex; align-items: center; gap: .35rem; }
.csf-trend-legend__line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

/* ── TAILORING SUMMARY ── */
.blog-tailoring-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.blog-tailoring-summary__item {
  border-radius: 6px;
  padding: .75rem;
}
.blog-tailoring-summary__item--blue { background: #eef2fd; }
.blog-tailoring-summary__item--green { background: #ecfdf5; }
.blog-tailoring-summary__title {
  font-weight: 700;
  font-size: .78rem;
  margin-bottom: .35rem;
}
.blog-tailoring-summary__item--blue .blog-tailoring-summary__title  { color: #3b6bdc; }
.blog-tailoring-summary__item--green .blog-tailoring-summary__title { color: #065f46; }
.blog-tailoring-summary__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f1117;
}
.blog-tailoring-summary__sub { font-size: .7rem; color: #8492a6; margin-top: .2rem; }

/* ── CTA BLOCK ── */
.blog-cta {
  background: #0f1117;
  border-radius: 16px;
  padding: 2.25rem;
  margin: 3rem 0;
  text-align: center;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
}
.blog-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.blog-cta p { color: #8899bb; margin-bottom: 1.4rem; font-size: .95rem; }

/* ── REFERENCES ── */
.blog-references {
  border-top: 1px solid #dde2ed;
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.blog-references h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8492a6;
  margin-bottom: .65rem;
}
.blog-references ol {
  padding-left: 1.2rem;
  font-size: .8rem;
  color: #8492a6;
  line-height: 1.6;
}
.blog-references li { margin-bottom: .3rem; }
.blog-references a { color: #3b6bdc; }
/* Collapsible references: native <details>, collapsed by default, no JS (CSP-safe). */
.blog-references summary {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8492a6;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  user-select: none;
}
.blog-references summary::-webkit-details-marker { display: none; }
.blog-references summary::before {
  content: '\25B8';
  font-size: .62rem;
  transition: transform .15s ease;
}
.blog-references[open] summary { margin-bottom: .65rem; }
.blog-references[open] summary::before { transform: rotate(90deg); }
.blog-references summary:hover { color: #3b6bdc; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .blog-formula-cols,
  .blog-risk-summary-grid,
  .rmf-categorize-summary,
  .blog-tailoring-summary,
  .csf-function-grid { grid-template-columns: 1fr; }
  .heatmap-grid { font-size: .6rem; gap: 2px; }
  .blog-score-row { flex-direction: column; align-items: flex-start; }
}

/*
  ============================================================
  Site integration — added for the /insights pages on riskposture.tools.
  The .blog-* mocks above are intentional light "screenshot" cards; the
  styles below are the ARTICLE chrome (prose body, post header, index grid)
  and DO follow the site theme via CSS vars, so they read in light + dark.
  ============================================================
*/

/* ── Article body typography ── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 24px 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin: 0 0 1.15rem; }
.prose h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); line-height: 1.25; margin: 2.4rem 0 .9rem;
}
.prose h3 { font-size: 1.12rem; font-weight: 700; color: var(--text); margin: 1.8rem 0 .55rem; }
.prose a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { opacity: .8; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.prose li { margin: .3rem 0; line-height: 1.7; }
/* Plain (un-classed) article tables — the .blog-* tables keep their own look. */
.prose table:not([class]) { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .9rem; }
.prose table:not([class]) th {
  background: var(--gray-light); color: var(--text); text-align: left; font-weight: 700;
  padding: .55rem .8rem; border-bottom: 2px solid var(--gray-border); font-size: .82rem;
}
.prose table:not([class]) td { padding: .55rem .8rem; border-bottom: 1px solid var(--gray-border); color: var(--text); vertical-align: top; }

/* The post CTAs use .btn .btn-ghost (only .btn/.btn-primary/.btn-secondary exist in styles.css). */
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.blog-cta .btn { display: inline-block; margin: .25rem .35rem 0; }

/* ── Article page header ── */
.ins-art-head { max-width: 720px; margin: 0 auto; padding: 40px 24px 4px; }
.ins-back { display: inline-block; font-size: .8rem; color: var(--gray); text-decoration: none; margin-bottom: 18px; }
.ins-back:hover { color: var(--blue-light); }
.ins-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ins-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-light); background: var(--blue-pale); border-radius: 5px; padding: 3px 9px;
}
.ins-art-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.18; color: var(--text); margin: 0 0 12px; }
.ins-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--gray); border-bottom: 1px solid var(--gray-border); padding-bottom: 20px; }
.ins-meta b { color: var(--text); font-weight: 600; }

/* ── Article footer (back link; tools CTA is in the article body) ── */
.ins-art-foot { max-width: 720px; margin: 36px auto 0; padding: 22px 24px 0; border-top: 1px solid var(--gray-border); }
.ins-art-foot a { color: var(--blue-light); font-size: .85rem; text-decoration: none; font-weight: 600; }
.ins-art-foot a:hover { opacity: .8; }

/* ── Insights index ── */
.ins-grid {
  max-width: 1040px; margin: 0 auto; padding: 8px 24px 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.ins-card {
  display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--gray-border);
  border-radius: 12px; padding: 22px; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ins-card:hover { border-color: var(--blue-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.10); }
.ins-card .ins-tags { margin-bottom: 12px; }
.ins-card h2 { font-size: 1.12rem; font-weight: 700; color: var(--text); line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
.ins-card p { font-size: .87rem; color: var(--gray); line-height: 1.6; margin: 0 0 14px; flex: 1; }
.ins-card .ins-card-meta { font-size: .74rem; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.ins-card .ins-card-go { margin-left: auto; color: var(--blue-light); font-weight: 700; }

/* ── In-article screenshots (figures) ── */
.ins-figure { margin: 2rem 0; text-align: center; }
.ins-shot { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--gray-border); border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.10); }
.ins-figcap { font-size: .8rem; color: var(--gray); line-height: 1.5; margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Dark-mode: soften the inline (non-screenshot) callouts so they don't glare on the dark page. */
[data-theme="dark"] .blog-callout { background: rgba(66,165,245,.10); color: var(--text); }
[data-theme="dark"] .blog-callout strong { color: var(--blue-light); }
[data-theme="dark"] .blog-callout--amber { background: rgba(245,158,11,.12); }
[data-theme="dark"] .blog-callout--green { background: rgba(16,185,129,.12); }
[data-theme="dark"] .blog-callout--red { background: rgba(239,68,68,.12); }
[data-theme="dark"] .blog-references { border-color: var(--gray-border); }

/* ── Shared marketing-page chrome ──
   The rest of the site carries these in each page's inline <style>; the insights pages load this
   stylesheet instead, so the body layout + footer match the rest of the marketing site exactly. */
body { display: block; overflow: auto; height: auto; min-height: 100vh; }
footer { background: var(--blue); color: rgba(255,255,255,.65); text-align: center; padding: 20px; font-size: .75rem; margin-top: auto; }
footer a { color: rgba(255,255,255,.8); text-decoration: underline dotted; }
footer .footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }

/* ── RESPONSIVE: insights ARTICLE shell on phones ──
   The .blog-* component grids collapse in the first @media block above. These
   rules handle the reading shell (prose, header, figures, data tables) so the
   articles read well on phones, where most first-time visitors land. */
@media (max-width: 600px) {
  /* Tighter gutters reclaim reading width on narrow screens. */
  .prose,
  .ins-art-head,
  .ins-art-foot { padding-left: 18px; padding-right: 18px; }
  .ins-art-head { padding-top: 28px; }
  .ins-art-head h1 { font-size: 1.62rem; }
  .ins-meta { font-size: .76rem; }
  .prose { font-size: .97rem; }
  .prose h2 { font-size: 1.28rem; }
  .prose h3 { font-size: 1.05rem; }
  /* A long URL, control id, or unbroken token in body text must never widen the
     page. Scoped to text blocks so it does not break table header words. */
  .prose p, .prose li, .blog-references { overflow-wrap: anywhere; }
  /* Data tables scroll inside their own box rather than widening the page. */
  .prose table:not([class]),
  .blog-table,
  .blog-detail-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Screenshots break out to the full viewport so detail stays legible. */
  .ins-figure { margin-left: -18px; margin-right: -18px; }
  .ins-shot { border-radius: 0; border-left: none; border-right: none; max-width: 100%; }
  .ins-figcap { padding: 0 18px; }
  /* Calmer CTA padding on small screens. */
  .blog-cta { padding: 1.6rem 1.25rem; margin: 2.25rem 0; }
  .blog-cta h3 { font-size: 1.18rem; }
}
