/* One RN's attendance file, drawn on /attendance-tracking and, smaller, in
   the home page's attendance chapter (3 December 2026). The same rows the
   app's file shows: the event in ink, its date and points quiet after it, one
   status pill at the right edge, and the next step under the list. White
   card, one hairline, no accent edge. Pills are white with a hairline and
   their colour only on the mark and the word. */

.af {
  margin: 8px 0 28px;
  background: var(--g-card);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--g-ink);
}
.af__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px 16px;
}
.af__who { margin: 0; font: 600 16px/1.3 var(--g-head); color: var(--g-ink); }
.af__sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--g-ink-3); }
.af__total { margin: 0; text-align: right; white-space: nowrap; }
.af__total b {
  display: block;
  font: 600 30px/1.1 var(--g-head);
  font-variant-numeric: tabular-nums;
  color: var(--g-ink);
}
.af__total span { font-size: 13.5px; color: var(--g-ink-3); }

.af__bar { position: relative; height: 6px; margin: 0 20px; border-radius: 999px; background: var(--g-ghost); }
.af__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--g-navy); }
.af__bar s {
  position: absolute; top: -3px; width: 1px; height: 12px;
  background: var(--g-ink-3); text-decoration: none;
}
.af__ticks {
  position: relative; height: 18px;
  margin: 8px 20px 12px; padding: 0;
  font-size: 12px; line-height: 18px; color: var(--g-ink-3); font-variant-numeric: tabular-nums;
}
.af__ticks span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.af__ticks span:last-child { transform: translateX(-100%); }

.af__h {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 0; padding: 0 20px; height: 36px; align-items: center;
  background: #FAFAFA;
  border-top: 1px solid var(--g-line);
  border-bottom: 1px solid var(--g-line);
  font: 600 12px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .08em; text-transform: uppercase; color: var(--g-ink-3);
}
.af__list { list-style: none; margin: 0; padding: 0; }
.af__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  min-height: 52px; padding: 8px 20px;
  border-top: 1px solid var(--g-line);
}
.af__row:first-child { border-top: 0; }
.af__line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.af__ev { font-size: 14.5px; font-weight: 500; color: var(--g-ink); white-space: nowrap; }
.af__facts { font-size: 13.5px; color: var(--g-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.af__pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px 0 8px;
  border: 1px solid var(--g-line); border-radius: 999px; background: var(--g-card);
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.af__pill svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.af__pill--counts { color: #7D5A00; }
.af__pill--kept { color: var(--g-yes); }
.af__pill--off { color: var(--g-ink-3); }

.af__next {
  margin: 0; padding: 12px 20px 14px;
  border-top: 1px solid var(--g-line);
  font-size: 13.5px; line-height: 1.45; color: var(--g-ink-2);
}
.af__next b { color: var(--g-ink); font-weight: 600; }

/* The home page's copy sits in a chapter beside the scenes, so it keeps the
   scene's width and drops the margin the article gives it. */
.ch__vis .af { max-width: 560px; margin: 0 auto; }

/* The attendance chapter's few lines and its one link. */
.ch__pts { margin: 16px 0 0; padding: 0; list-style: none; }
.ch__pts li { position: relative; padding: 0 0 8px 18px; font-size: 15.5px; line-height: 1.5; color: var(--fx-ink-2, var(--g-ink-2)); }
.ch__pts li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--g-ink-3);
}
.ch__more { margin: 12px 0 0; font-size: 15.5px; }
.ch__more a { color: var(--g-navy); text-underline-offset: 3px; }

@media (max-width: 640px) {
  .af__top { padding: 14px 16px 12px; }
  .af__bar { margin: 0 16px; }
  /* Three step names do not fit under a phone-wide bar; the line under the
     list names the next step instead. */
  .af__ticks { display: none; }
  .af__bar { margin-bottom: 16px; }
  .af__h { padding: 0 16px; }
  .af__row { padding: 8px 16px; }
  .af__line { flex-direction: column; gap: 2px; }
  .af__next { padding: 12px 16px 14px; }
}
