/* Article: rank-first-still-invisible. Page-only pieces: the numbered audit, the fields table inside it and the four-group matrix. */

/* Audit steps: tinted counters on a quiet rail */
.prose > .rfsi-audit { counter-reset: rfsi; list-style: none; margin-top: 1.5em; padding: 0; display: grid; gap: 1.6em; }
.prose > .rfsi-audit + * { margin-top: 1.8em; }
.prose .rfsi-audit > li { counter-increment: rfsi; position: relative; margin: 0; padding-left: 40px; min-width: 0; }
.prose .rfsi-audit > li::before {
  content: counter(rfsi); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text);
  font-size: 13.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
}
.prose .rfsi-audit > li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 36px; bottom: calc(-1.6em + 8px); width: 1px; background: var(--line);
}
@media (min-width: 480px) {
  .prose .rfsi-audit > li { padding-left: 46px; }
  .prose .rfsi-audit > li::before { width: 30px; height: 30px; font-size: 14px; }
  .prose .rfsi-audit > li:not(:last-child)::after { left: 15px; top: 38px; }
}
@media (min-width: 1024px) {
  .prose .rfsi-audit > li { padding-left: 52px; }
  .prose .rfsi-audit > li::before { top: -.5px; width: 32px; height: 32px; }
  .prose .rfsi-audit > li:not(:last-child)::after { left: 16px; top: 42px; }
}

/* "Record four things": a two-column table that fits a phone without sideways scrolling */
.prose .rfsi-fields { margin-top: 16px; }
.prose .rfsi-fields > .table { min-width: 100%; font-size: 15px; }
.prose .rfsi-fields .table th, .prose .rfsi-fields .table td { padding: 12px 14px; }
.prose .rfsi-fields .table tbody th { width: 1%; white-space: nowrap; color: var(--ink); font-weight: 600; }
@media (min-width: 480px) { .prose .rfsi-fields .table th, .prose .rfsi-fields .table td { padding: 13px 18px; } }

/* Four groups: ranks (yes or no) by named (yes or no), shown as a 2 by 2 on wider screens */
.prose .rfsi-groups { list-style: none; margin-top: 16px; padding: 0; display: grid; gap: 10px; }
.prose .rfsi-groups > li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--highlight); font-size: 15.5px; line-height: 1.55; }
.prose .rfsi-groups > li strong { display: block; margin-bottom: 4px; font-size: 16px; }
.prose .rfsi-groups > li:nth-child(2) { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
@media (min-width: 640px) { .prose .rfsi-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

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