/* ── EDITORIAL RANK TABLES (2026-10-06, token 20261006_draft_rankings) ──
   Loaded ONLY by an editorial article whose body carries a
   <table class="ff-rank-table">: scripts/build-article-page.js adds the
   <link> when it sees the class, so the other 50+ shells keep their bytes and
   css/article-pages.css keeps its token. First consumer:
     /articles/fantasy-boxing-draft-rankings/

   Five columns, authored in the body as Rank · Fighter · Fight · Floor ·
   Avg rd, with the fight date in <span class="ff-rank-date"> under the fight.
   Same grammar as .ff-intent-table (css/intent-pages.css): full width, hairline
   rows, the number that matters in heavy article red on the right.

   Phone (390px, ~318px of prose): no horizontal scroll. Fighter and fight
   wrap; Rank, Floor, Avg rd and the date never do. The in-app Gym reader
   (js/articles.js fhOpenArticle) opens this static page, so this file is the
   only place the tables are styled. */

.ff-article-prose .ff-rank-table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0 18px;
    font-size: 14.5px;
    line-height: 1.45;
    color: #334155;
}

.ff-rank-table th,
.ff-rank-table td {
    padding: 11px 4px;
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    vertical-align: top;
    text-align: left;
}

.ff-rank-table th {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    padding-top: 0;
}

/* Rank */
.ff-rank-table td:first-child {
    width: 1%;
    white-space: nowrap;
    font-weight: 800;
    color: var(--ff-dark);
}

/* Fighter + Fight wrap between words; a word only breaks if it alone
   cannot fit (break-word, not anywhere, which would split "Baumgardner"). */
.ff-rank-table td:nth-child(2),
.ff-rank-table td:nth-child(3) {
    overflow-wrap: break-word;
}

.ff-rank-table td:nth-child(2) {
    font-weight: 600;
}

/* Floor, then Avg rd: numbers, right-aligned, never wrapped. */
.ff-rank-table th:nth-child(4),
.ff-rank-table th:nth-child(5),
.ff-rank-table td:nth-child(4),
.ff-rank-table td:nth-child(5) {
    width: 1%;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ff-rank-table td:nth-child(4) {
    font-weight: 800;
    color: var(--ff-red);
}

.ff-rank-table td:nth-child(5) {
    font-weight: 600;
    color: #5b6477;
}

.ff-rank-table .ff-rank-date {
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .ff-article-prose .ff-rank-table {
        font-size: 13.5px;
    }

    .ff-rank-table th,
    .ff-rank-table td {
        padding: 10px 3px;
    }

    .ff-rank-table th {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}
