/* Article body components in the Run-It platform style (owner rules, 21 Nov 2026):
   1. list/step markers are Run-It icons (dashboard/build/images/icons/run-it, inlined), never cyan dots,
      in their native app colours: grey base #757b91 + accent (#26c6e6 cyan), never tinted (owner, 21 Nov 2026);
   2. no small-caps eyebrow above a title (callouts start with their title);
   3. fact cards are the app's inner-glow tile (.ri-tile--glow, same values as .bpc__tile in blog-platform-card.css),
      toned per tile by meaning with data-tone="cyan|green|amber|red" (cyan = neutral, the default).
   Loaded after each article's own <style>, so these rules win over the old dot/flat-card styles. */

@property --tile-lift {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* Icons: native app colours. `initial` makes each stroke fall back to the colour written in the SVG itself
   (muted grey #757b91, accent #26c6e6), so nothing around the icon can tint it. */
.ri-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  --icon-muted: initial;
  --icon-accent: initial;
}

/* 1. Steps: icon instead of the dot, aligned with the first text line. */
.form-step {
  grid-template-columns: 20px 1fr;
}
.form-step__marker--icon {
  width: 20px;
  height: 1.55rem;
}
.form-step__marker--icon::before {
  content: none !important;
  display: none !important;
}

/* 3. Fact cards: glow tiles. */
.ri-glow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 2.5rem;
}
.ri-glow-grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-article > .ri-glow-grid + h2 {
  margin-top: clamp(3rem, 5vw, 4rem) !important;
}
.ri-glow-tile {
  --tile-rgb: 46, 209, 244;
  --tile-color: rgb(var(--tile-rgb));
  --_tile-edge: 18%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 18px;
  border-radius: 12px;
  background:
    radial-gradient(130% calc(22% + 53% * var(--tile-lift)) at 50% 104%, color-mix(in srgb, var(--tile-color) calc(50% * var(--tile-lift)), transparent), color-mix(in srgb, var(--tile-color) calc(17% * var(--tile-lift)), transparent) 50%, transparent 78%),
    linear-gradient(0deg, color-mix(in srgb, var(--tile-color) calc(10% * var(--tile-lift)), transparent), transparent 70%),
    radial-gradient(120% 55% at 50% 108%, color-mix(in srgb, var(--tile-color) 20%, transparent), color-mix(in srgb, var(--tile-color) 5%, transparent) 55%, transparent 80%),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile-color) var(--_tile-edge), transparent), inset 0 0 16px color-mix(in srgb, var(--tile-color) calc(6% + 6% * var(--tile-lift)), transparent);
  transition: --tile-lift 380ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .ri-glow-tile:hover {
    --tile-lift: 1;
    --_tile-edge: 45%;
    transition: --tile-lift 800ms cubic-bezier(0.3, 0.1, 0.3, 1) 140ms, box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1);
  }
}
/* Tones as .bpc [data-tone] in blog-platform-card.css: green = good / full data, amber = limit / estimate,
   red = stop / left out, cyan = neutral. The tone colours the glow only; the icon keeps its native colours. */
.ri-glow-tile[data-tone="cyan"] { --tile-rgb: 46, 209, 244; }
.ri-glow-tile[data-tone="green"] { --tile-rgb: 52, 211, 153; }
.ri-glow-tile[data-tone="amber"] { --tile-rgb: 251, 191, 36; }
.ri-glow-tile[data-tone="red"] { --tile-rgb: 248, 113, 113; }

.ri-glow-tile__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ri-glow-tile__img {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.ri-glow-tile__title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.ri-glow-tile__copy {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
}
.ri-glow-tile__copy > strong:first-child {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

@media (max-width: 900px) {
  .ri-glow-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ri-glow-grid {
    grid-template-columns: 1fr;
  }
}
