/* ja_nexora — Authors index + Author detail page-scoped overlay
 * Loaded render-last via addCustomTag from html/com_content/author/list.php + author.php
 * (filemtime cache-bust) so it wins over the T4 optimize bundle regardless of merge order.
 * Fixes token-mismatch leaks in the shared _nexora.scss (which is FORBIDDEN to recompile in
 * this review). All rules are scoped to the author page wrappers — zero impact elsewhere.
 */

/* A1 — Author card "·" dot + "N posts" use --color-muted (#A2A8C0 dark / #4C5268 light);
 * .pen yBPJG/w0Yveg = $text-dim (#6B7196 dark / #888EA6 light). Token fix, both modes. */
body .nx-page-authors .nx-author-dot,
body .nx-page-authors .nx-author-posts {
  color: var(--color-text-dim);
}

/* A2 — Active sort option bg uses --color-bg-alt ($bg-elev #101023/#F5F6FB);
 * .pen AJPL9 = $bg-card-2 (#181A33 dark / #EEF1F8 light). Token fix, both modes. */
body .nx-page-authors .nx-authors-sort-option.is-active {
  background: var(--color-card-2);
}

/* A3 — Author-detail Follow button used class `nx-btn btn-primary` which zeroed the
 * .btn padding/radius (nx-btn is not a styled class in this template) → button collapsed.
 * Markup now uses `btn btn-primary`; pin .pen xwZGD pad [14,24] + radius-md so it matches
 * the design exactly (bare .btn is 12/20). Accent gradient fill already correct both modes. */
body .nx-author-single-page .nxa-follow-btn {
  padding: 14px 24px;
  border-radius: var(--radius-md, 10px);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}

/* A4 — [Author feed-row title/excerpt overlap] The shared .nxa-row-title rule
 * (template.css ~L30580) uses display:-webkit-box + -webkit-line-clamp:2 +
 * overflow:hidden inside the flex-column .nxa-row-body. For a single-line title
 * the -webkit-box collapses the title BOX to ~12px (well under its 1.2 line-height
 * = ~23px), so the title GLYPHS overflow the box bottom and visually collide with
 * the excerpt line below — even though the flex gap (10px) keeps the boxes apart.
 * A box-geometry probe passes; only the rendered text overlaps. Reserve one full
 * line-height so the title box never starves below its content. Keeps the 2-line
 * clamp (clamp still truncates a genuine 2-line title). Scoped to body.view-author
 * (shared scss is forbidden to recompile in this review). Both themes. */
body.view-author .nxa-row-title {
  min-height: 1.2em; /* = the rule's own line-height:1.2 → one rendered line */
}

/* A5 — [Author feed-row excerpt collapse] Same -webkit-box collapse bug as A4 but on
 * .nxa-row-exc: inside the flex-column .nxa-row-body the -webkit-box excerpt collapses
 * to ~12px (well under its line-height:1.45 = ~20px), so the excerpt glyphs clip at the
 * box bottom and read as cut-off/overlapping the meta row below. A box-geometry probe
 * (h=12) passes visually-broken. Reserve one full line-height so the visible excerpt
 * line renders complete. The 150px feed row (thumb 190 + body pad 22 + cat/title/meta)
 * leaves room for a single truncated excerpt line — matches the .pen row. Both themes. */
body.view-author .nxa-row-exc {
  min-height: 1.45em; /* = the rule's own line-height:1.45 → one rendered line */
}

/* A6 — [Author card hover] .pen j44xqQ region micro-spec: "Hover: border $border → $accent;
 * subtle lift". The shared scss sets hover border to --color-border-strong (a stronger grey),
 * not the accent. Match the design: border → primary + a subtle shadow lift (box-shadow only,
 * NO transform → zero box jump). Both themes via var(--color-primary). Scoped to the listing. */
body .nx-page-authors .nx-author-card {
  transition: border-color .15s ease, box-shadow .15s ease;
}
body .nx-page-authors .nx-author-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 22px rgb(var(--color-primary-rgb) / 0.10);
}
