/* Article: Put AI visibility data where your agents work (resources/agents-read-the-report). Scoped with the arr- prefix.
   Page-only pieces: the five-step loop, the three setups and the numbered checklist. */

/* The loop: five steps, stacked on phones, one row from 768px. Step 4 (a person approves) is tinted */
.prose > .arr-figure { margin-top: 1.5em; }
.prose > .arr-figure + * { margin-top: 1.6em; }
.arr-loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prose .arr-loop > li {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: baseline;
  margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow-sm); font-size: 15px; line-height: 1.45;
}
.arr-step-num { grid-row: span 3; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.arr-step-title { color: var(--ink); font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.arr-step-text { color: var(--ink-2); font-size: 14px; }
.arr-step-tag {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 2px 10px 2px 8px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.arr-step-tag .icon { width: 14px; height: 14px; }
.prose .arr-loop > li.is-human { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.arr-loop > li.is-human .arr-step-num { color: var(--accent-text); }
.arr-figure figcaption { margin-top: 12px; text-align: center; text-wrap: balance; }
@media (min-width: 768px) {
  .arr-loop { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .prose .arr-loop > li { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 6px; padding: 14px 14px 16px; }
  .arr-step-num { grid-row: auto; }
  .arr-step-text { font-size: 13.5px; line-height: 1.45; }
  /* A small arrow between cards, in the gap */
  .prose .arr-loop > li:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; right: -9px; z-index: 1; width: 8px; height: 8px;
    border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg);
  }
}

/* Three setups: icon tile, title and a short paragraph per row */
.arr-ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.prose > .arr-ways { margin-top: 1.2em; }
.prose > .arr-ways + * { margin-top: 1.4em; }
.prose .arr-ways > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.prose .arr-ways h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.prose .arr-ways p { margin: 6px 0 0; font-size: .95em; line-height: 1.6; }
@media (max-width: 479px) {
  .prose .arr-ways > li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .arr-ways .icon-tile { width: 36px; height: 36px; }
  .prose .arr-ways h3 { margin-top: 4px; font-size: 17px; }
}

/* The checklist: a numbered card list */
.arr-check {
  list-style: none; margin: 0; padding: 4px 0; counter-reset: arr;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--highlight), var(--shadow-sm); font-size: .95em; line-height: 1.6;
}
.prose > .arr-check { margin-top: 1.1em; }
.arr-check > li { counter-increment: arr; position: relative; padding: 16px 20px 16px 64px; }
.prose .arr-check > li + li { margin-top: 0; border-top: 1px solid var(--line-soft); }
.arr-check > li::before {
  content: counter(arr, decimal-leading-zero);
  position: absolute; left: 20px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
@media (max-width: 479px) {
  .arr-check > li { padding: 14px 16px 14px 54px; }
  .arr-check > li::before { left: 14px; top: 14px; width: 28px; height: 28px; }
}

/* Sources: publisher reads first, the title is the link */
.sources .arr-pub { color: var(--ink-2); font-weight: 500; }
