/* following.css — storyarc Following screen, design screen 07.
 *
 * Editorial header (eyebrow + serif title + italic dek), an accent-tinted
 * "this week" summary card, then a list of followed-story rows. Each row
 * surfaces category eyebrow + time-ago, the story title, a density
 * sparkline next to a NEW-tagged latest-article callout, and a stats line
 * with an "open arc →" affordance. Closes with a dashed "+ follow a new
 * story" CTA pointing to Today. Reads only tokens.css custom properties.
 */

/* ── Page frame ──────────────────────────────────────────────────── */

.following {
  max-width: 600px;
  margin-inline: auto;
  padding: 20px 20px 24px;
}

.following__head {
  padding-bottom: 18px;
}

.following__eyebrow {
  display: block;
}

.following__title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--text-1);
}

.following__dek {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-2);
}

/* ── This-week summary card ──────────────────────────────────────── */

.following__summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-1);
}

.following__summary-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 4px;
}

.following__summary strong {
  font-weight: 600;
}

/* ── Followed-story list ─────────────────────────────────────────── */

.following__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.follow-row {
  border-top: 1px solid var(--rule);
}

.follow-row:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.follow-row__link {
  display: block;
  padding: 18px 0 20px;
  transition: background-color 120ms ease;
}

.follow-row__link:active {
  background: var(--surface-1);
}

@media (hover: hover) {
  .follow-row__link:hover {
    background: var(--surface-1);
  }
}

/* Eyebrow: category (left) + time-ago (right). */
.follow-row__eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.follow-row__cats {
  color: var(--accent-ink);
}

.follow-row__time {
  color: var(--text-3);
  text-align: right;
  flex-shrink: 0;
}

/* Title — serif. */
.follow-row__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-1);
  text-wrap: balance;
}

/* Body row: density bar on the left, "NEW" callout on the right. */
.follow-row__body {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.follow-row__spark {
  width: 88px;
  height: 36px;
  display: block;
}

.follow-row__spark rect {
  fill: var(--accent);
}

.follow-row__latest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.follow-row__latest-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.follow-row__latest-title {
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text-1);
  margin: 0;
}

/* Foot: stats (left) + open-arc (right). */
.follow-row__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.follow-row__stats {
  color: var(--text-3);
}

.follow-row__open {
  color: var(--accent-ink);
  flex-shrink: 0;
}

/* ── + Follow a new story CTA ────────────────────────────────────── */

.following__cta {
  display: block;
  margin-top: 24px;
  padding: 18px 16px;
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 120ms ease, border-color 120ms ease;
}

.following__cta:active {
  color: var(--accent-ink);
  border-color: var(--accent);
}

@media (hover: hover) {
  .following__cta:hover {
    color: var(--accent-ink);
    border-color: var(--accent);
  }
}

/* ── Status line (empty / loading / error) ───────────────────────── */

.following__status {
  margin-top: 18px;
  padding: 6px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.following__status:empty {
  display: none;
}

/* ── Loading skeleton ────────────────────────────────────────────── */

.follow-row--skeleton {
  pointer-events: none;
  padding: 18px 0 20px;
}

.follow-row--skeleton .skel {
  display: block;
  border-radius: 3px;
  background: var(--surface-2);
}

.follow-row--skeleton .skel--eyebrow {
  width: 38%;
  height: 0.625rem;
}

.follow-row--skeleton .skel--title {
  width: 92%;
  height: 1.25rem;
  margin-top: 10px;
}

.follow-row--skeleton .skel--title.skel--short {
  width: 60%;
  margin-top: 6px;
}

.follow-row--skeleton .skel--bar {
  width: 88px;
  height: 36px;
  margin-top: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .follow-row--skeleton .skel {
    animation: follow-skel-pulse 1.4s ease-in-out infinite;
  }

  @keyframes follow-skel-pulse {
    50% { opacity: 0.45; }
  }
}

/* Guest variant rules removed in §7c — the Following view bounces guests
 * to /login/?next=/following/ rather than rendering an interstitial. */
