/* ══════════════════════════════════════════════════════════════
   fRank public pages
   Published snapshot, live rankings, ranker profile, brand page.
   Authority: docs/design/app-redesign/app-screens-pack.dc.html
   ("Public snapshot", "Ranker profile").

   Built on the app UI kit (app_ui.css): colours come from the app
   tokens plus the --ui-* values, so every rule follows the theme
   toggle. Selectors are doubled (.fr-x.fr-x) where they have to beat
   a Tailwind utility — Tailwind sorts last in the stylesheet glob.

   State classes: snapshot_preview_controller and draft_mode_controller
   mark state by toggling Tailwind classes (text-accent, bg-surface-2,
   ring-1, hidden…). Those controllers are shared with the signed-in
   snapshot review, so the active looks below key off the classes they
   already toggle rather than changing the controllers.
   ══════════════════════════════════════════════════════════════ */

/* ── Page frame ────────────────────────────────────────────── */
/* .main (fyf_theme) centres with auto margins inside a flex column,
   so it shrink-wraps the page: an explicit width is what widens it,
   and a percentage max-width cannot cap it (percentages are ignored
   while a shrink-wrapped parent is being sized). The cap is therefore
   the viewport minus .main's own gutters — 24px, 16px on a phone. */
.fr-pub.fr-pub {
  --fr-pub-max: 960px;
  --fr-pub-gutter: 24px;
  width: min(var(--fr-pub-max), calc(100vw - 2 * var(--fr-pub-gutter)));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--text);
  font-family: var(--font);
}
.fr-pub.fr-pub--wide { --fr-pub-max: 1052px; gap: 36px; }
@media (max-width: 768px) { .fr-pub.fr-pub { --fr-pub-gutter: 16px; } }
.fr-pub > * { min-width: 0; max-width: 100%; }

.fr-pub-banner.fr-pub-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-weight: 500;
}

/* ── Avatar ────────────────────────────────────────────────── */
.fr-pub-avatar.fr-pub-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ui-ol);
  background: var(--ui-blue);
  color: var(--ui-charcoal);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.fr-pub-avatar.fr-pub-avatar--sm { width: 40px; height: 40px; font-size: 13px; }
.fr-pub-avatar.fr-pub-avatar--xl {
  width: 112px;
  height: 112px;
  font-size: 38px;
  box-shadow: 4px 4px 0 var(--ui-sh);
}

/* ── Byline (snapshot / rankings) ──────────────────────────── */
.fr-pub-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fr-pub-byline .fr-pub-byline__who { flex: 1 1 auto; min-width: 0; }
.fr-pub-byline .fr-pub-byline__name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.fr-pub-byline a.fr-pub-byline__name:hover { color: var(--accent); }
.fr-pub-byline .fr-pub-byline__handle { display: block; font-size: 13px; color: var(--text-muted); }

.fr-pub-head { display: flex; flex-direction: column; gap: 12px; }
.fr-pub-head .fr-h1 { margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.fr-pub-head .fr-pub-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.fr-pub-head .fr-pub-head__meta .fr-meta { margin-left: 6px; }

.fr-pub-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: frPubLive 2s ease-in-out infinite;
}
@keyframes frPubLive { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ── Pill tabs (lists) + week pills ────────────────────────── */
.fr-pub-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.fr-pub-controls > * { min-width: 0; }
/* One outlined pill holding every segment; it scrolls sideways
   rather than wrapping when nine lists meet a phone. */
.fr-pub-seg.fr-pub-seg {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  padding: 3px;
  gap: 2px;
  border: 2px solid var(--ui-ol);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.fr-pub-seg.fr-pub-seg::-webkit-scrollbar { display: none; }
.fr-pub > .fr-pub-seg.fr-pub-seg { align-self: flex-start; }
.fr-pub-seg.fr-pub-seg.hidden,
.fr-pub-seg.fr-pub-seg[hidden] { display: none; }
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn {
  flex: none;
  min-width: 46px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn:hover { background: var(--ui-hov); }
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
/* Active segment: ink fill, inverse text. `.text-accent` is the class
   the snapshot-preview controller toggles on the active button. */
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn[aria-selected="true"],
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn[aria-current="page"],
.fr-pub-seg .fr-pub-seg__btn.fr-pub-seg__btn.text-accent {
  background: var(--text);
  color: var(--bg);
}
.fr-pub-seg.fr-pub-seg--sm { padding: 2px; border-color: var(--ui-line2); }
.fr-pub-seg.fr-pub-seg--sm .fr-pub-seg__btn.fr-pub-seg__btn {
  min-height: 28px;
  min-width: 0;
  padding: 0 11px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.fr-pub-seg-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fr-pub-variants { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }

/* ── The board card ────────────────────────────────────────── */
.fr-pub-board.fr-pub-board { overflow: visible; }
.fr-pub-board .fr-card__bar { min-height: 44px; padding: 6px 16px; gap: 10px; flex-wrap: wrap; }
.fr-pub-board .fr-pub-board__title { display: inline-flex; align-items: baseline; gap: 10px; }
.fr-pub-board .fr-pub-board__title.hidden { display: none; }
.fr-pub-board .fr-pub-board__count {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(250, 220, 194, 0.72);
}
/* Draft Mode toggle, on the charcoal bar: cream outline, pink when on. */
.fr-pub-board .fr-pub-mode.fr-pub-mode {
  margin-left: auto;
  height: 30px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--shell-cream);
  border-radius: 999px;
  background: transparent;
  color: var(--shell-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.fr-pub-board .fr-pub-mode.fr-pub-mode:hover { background: rgba(250, 220, 194, 0.1); }
.fr-pub-board .fr-pub-mode.fr-pub-mode:focus-visible { outline: 2px solid var(--ui-yellow); outline-offset: 2px; }
.fr-pub-board .fr-pub-mode.fr-pub-mode.text-accent {
  background: var(--ui-pink);
  border-color: var(--ui-charcoal);
  color: var(--ui-on-pink);
  box-shadow: 2px 2px 0 var(--shell-edge);
}

.fr-pub-board .fr-pub-toolbar.fr-pub-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--ui-line);
}
.fr-pub-chipbtn.fr-pub-chipbtn {
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ui-line2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.fr-pub-chipbtn.fr-pub-chipbtn:hover { border-color: var(--ui-ol); }
.fr-pub-chipbtn.fr-pub-chipbtn.text-accent {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.fr-pub-textbtn.fr-pub-textbtn {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.fr-pub-textbtn.fr-pub-textbtn:hover { color: var(--red); }

.fr-pub-colhead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--ui-line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fr-pub-colhead .fr-pub-col-rank.fr-pub-col-rank { font: inherit; color: inherit; }
.fr-pub-colhead .fr-pub-col-team.fr-pub-col-team { font-size: inherit; letter-spacing: inherit; }

/* Live rankings: the list scrolls with the page on a phone and in its
   own well from 640px up. */
@media (min-width: 640px) {
  .fr-pub-scroll { max-height: calc(100vh - 300px); min-height: 400px; overflow-y: auto; }
}

/* ── Ranked rows ───────────────────────────────────────────── */
.fr-pub-row.fr-pub-row { border-bottom: 1px solid var(--ui-line); }
.fr-pub-row.fr-pub-row:last-child { border-bottom: 0; }
/* draft-mode hides drafted rows with `.hidden`; the line below is a
   flex container, so make sure the row itself still disappears. */
.fr-pub-row.fr-pub-row.hidden { display: none; }
.fr-pub-row__line.fr-pub-row__line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 16px;
  list-style: none;
}
.fr-pub-row__line::-webkit-details-marker { display: none; }
.fr-pub-row summary.fr-pub-row__line { cursor: pointer; }
.fr-pub-row__line.fr-pub-row__line:hover { background: var(--ui-hov); }
.fr-pub-row summary.fr-pub-row__line:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* "Mine" in draft mode (controller adds ring-1 + bg-accent/5). */
.fr-pub-row.fr-pub-row.ring-1 {
  box-shadow: inset 4px 0 0 var(--ui-pink);
  background: rgba(240, 70, 160, 0.13);
}

.fr-pub-col-rank.fr-pub-col-rank {
  flex: none;
  width: 30px;
  text-align: right;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
/* Names never truncate — they wrap. */
.fr-pub-col-name.fr-pub-col-name {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: break-word;
  white-space: normal;
}
.fr-pub-col-team.fr-pub-col-team {
  flex: none;
  width: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fr-pub-col-pos { flex: none; width: 44px; text-align: center; }
.fr-pub-col-chev { flex: none; width: 12px; }
.fr-pub-row .fr-pub-col-chev { color: var(--text-muted); transition: transform 150ms ease; }
.fr-pub-row[open] .fr-pub-col-chev { transform: rotate(90deg); }

/* Position badge: solid brand pill, charcoal border, Clash caps. */
.fr-pub-pos.fr-pub-pos {
  flex: none;
  display: inline-block;
  width: 44px;
  padding: 3px 0;
  border: 1.5px solid var(--ui-charcoal);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.fr-pub-pos.fr-pub-pos--qb { background: var(--ui-orange); color: var(--ui-charcoal); }
.fr-pub-pos.fr-pub-pos--rb { background: var(--ui-green); color: var(--ui-cream); }
.fr-pub-pos.fr-pub-pos--wr { background: var(--ui-blue); color: var(--ui-charcoal); }
.fr-pub-pos.fr-pub-pos--te { background: var(--ui-yellow); color: var(--ui-charcoal); }
.fr-pub-pos.fr-pub-pos--k,
.fr-pub-pos.fr-pub-pos--def,
.fr-pub-pos.fr-pub-pos--none { border-color: var(--ui-line2); color: var(--text-muted); }

.fr-pub-dots { flex: none; display: inline-flex; align-items: center; gap: 4px; }
/* Dots take the tag's text colour (text-red, text-blue…) as their fill. */
.fr-pub-dots > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Gone / Mine pick buttons (draft mode). The wrapper's display is the
   controller's to toggle (hidden ↔ flex); only the buttons are styled. */
.fr-pub-pick.fr-pub-pick {
  height: 24px;
  padding: 0 9px;
  border: 1.5px solid var(--ui-line2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.fr-pub-pick.fr-pub-pick:hover { border-color: var(--ui-ol); }
.fr-pub-pick.fr-pub-pick.bg-surface-2 { background: var(--text); border-color: var(--text); color: var(--bg); }
.fr-pub-pick.fr-pub-pick.text-accent {
  background: var(--ui-pink);
  border-color: var(--ui-charcoal);
  color: var(--ui-on-pink);
}

/* The note under a player: tags, heuristics and the ranker's blurb,
   aligned under the name column. */
.fr-pub-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 12px 56px;
  animation: frPubNote 180ms ease-out;
}
@keyframes frPubNote { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fr-pub-note .fr-pub-note__blurb {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 68ch;
}
.fr-pub-note .fr-pub-note__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-muted); }
.fr-pub-note .fr-pub-note__facts b { font-family: var(--font-data); font-weight: 600; color: var(--text); }
.fr-pub-note .fr-pub-note__team {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
/* A tag: ink label in an outlined chip, the tag's colour as a dot
   (coloured 10px text on a tint does not reach AA). */
.fr-pub-tag.fr-pub-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1.5px solid var(--ui-line2);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fr-pub-tag .fr-pub-tag__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Tier break: pill label + dashed rule, in the tier's colour
   (green unless the ranker picked another). */
.fr-pub-tier.fr-pub-tier {
  --tier-fill: var(--ui-green);
  --tier-ink: var(--ui-cream);
  --tier-rule: var(--ui-green);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 4px 16px 4px 56px;
  border-bottom: 1px solid var(--ui-line);
  list-style: none;
}
html[data-theme="dark"] .fr-pub-tier.fr-pub-tier { --tier-rule: #4c9f5f; }
.fr-pub-tier .fr-pub-tier__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tier-fill);
  color: var(--tier-ink);
  border: 1.5px solid var(--ui-charcoal);
  border-radius: 999px;
  padding: 2px 9px;
  overflow-wrap: anywhere;
}
.fr-pub-tier::after { content: ""; flex: 1; min-width: 16px; border-top: 2px dashed var(--tier-rule); }
.fr-pub-tier.fr-pub-tier--blue   { --tier-fill: var(--ui-blue);   --tier-ink: var(--ui-charcoal); --tier-rule: var(--ui-blue); }
.fr-pub-tier.fr-pub-tier--orange { --tier-fill: var(--ui-orange); --tier-ink: var(--ui-charcoal); --tier-rule: var(--ui-orange); }
.fr-pub-tier.fr-pub-tier--yellow { --tier-fill: var(--ui-yellow); --tier-ink: var(--ui-charcoal); --tier-rule: #b98f00; }
.fr-pub-tier.fr-pub-tier--red    { --tier-fill: var(--ui-red);    --tier-ink: #fff;               --tier-rule: var(--ui-red); }
.fr-pub-tier.fr-pub-tier--purple { --tier-fill: #7a3fc4;          --tier-ink: #fff;               --tier-rule: #9c60e0; }
.fr-pub-tier.fr-pub-tier--pink   { --tier-fill: var(--ui-pink);   --tier-ink: var(--ui-on-pink);  --tier-rule: var(--ui-pink); }
.fr-pub-tier.fr-pub-tier--gray   { --tier-fill: var(--surface-2); --tier-ink: var(--text);        --tier-rule: var(--ui-line2); }
html[data-theme="dark"] .fr-pub-tier.fr-pub-tier--yellow { --tier-rule: var(--ui-yellow); }

.fr-pub-out {
  padding: 10px 16px;
  border-top: 2px solid var(--ui-line);
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.fr-pub-out .fr-pub-out__label {
  margin-right: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.fr-pub-none { padding: 56px 20px; text-align: center; font-size: 14px; color: var(--text-muted); }

.fr-pub-board .fr-pub-board__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 2px solid var(--ui-line);
  background: var(--surface-2);
  font-family: var(--font-data);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

/* ── My picks (draft mode): the charcoal bottom bar ────────── */
.fr-pub-roster.fr-pub-roster {
  background: var(--shell-bar);
  color: var(--shell-cream);
  border: 0;
  border-top: 2px solid var(--shell-edge);
  border-radius: 0;
  box-shadow: none;
}
.fr-pub-roster .fr-pub-roster__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(250, 220, 194, 0.16);
}
.fr-pub-roster .fr-pub-roster__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ui-yellow);
}
.fr-pub-roster .fr-pub-roster__counts {
  font-family: var(--font-data);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(250, 220, 194, 0.78);
}
/* Rows are built by draft_mode_controller with theme-following text
   utilities; on the always-charcoal bar they must stay cream. */
.fr-pub-roster.fr-pub-roster ol { max-height: 12rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.fr-pub-roster.fr-pub-roster li { border-color: rgba(250, 220, 194, 0.12); color: rgba(250, 220, 194, 0.78); }
.fr-pub-roster.fr-pub-roster li > span { color: rgba(250, 220, 194, 0.78); }
.fr-pub-roster.fr-pub-roster li > span:nth-child(1) { font-family: var(--font-data); }
.fr-pub-roster.fr-pub-roster li > span:nth-child(2) { color: var(--shell-cream); font-weight: 600; font-size: 13px; }
.fr-pub-roster.fr-pub-roster li > button {
  color: var(--shell-cream);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ui-pink);
}
.fr-pub-roster.fr-pub-roster li > button:hover { color: var(--ui-yellow); }
@media (min-width: 640px) {
  .fr-pub-roster.fr-pub-roster {
    border: 2px solid var(--shell-edge);
    box-shadow: 4px 4px 0 var(--ui-sh);
  }
}

/* ── Profile header (ranker, brand) ────────────────────────── */
.fr-pub-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 32px;
}
.fr-pub-profile .fr-pub-profile__text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fr-pub-profile .fr-h1 { margin: 0; overflow-wrap: anywhere; }
.fr-pub-profile .fr-lede { margin: 4px 0 0; max-width: 560px; line-height: 1.55; }

.fr-pub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1020px) { .fr-pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .fr-pub-grid { grid-template-columns: minmax(0, 1fr); } }

/* Published-rankings card. */
.fr-pub-card.fr-pub-card { display: flex; flex-direction: column; padding: 0; }
.fr-pub-card .fr-pub-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 16px;
}
.fr-pub-card .fr-pub-card__title.fr-pub-card__title {
  font-size: 23px;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.fr-pub-card .fr-pub-card__title a { color: inherit; text-decoration: none; }
.fr-pub-card .fr-pub-card__title a:hover { color: var(--accent); }
.fr-pub-card .fr-pub-card__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 18px 14px;
  border-top: 2px solid var(--ui-line);
}
.fr-pub-card .fr-pub-card__foot .fr-meta { font-size: 12.5px; line-height: 1.4; }

.fr-pub-members { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.fr-pub-member.fr-pub-member {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.fr-pub-member.fr-pub-member:hover { color: var(--accent); }

@media (max-width: 640px) {
  .fr-pub.fr-pub { gap: 20px; }
  .fr-pub-avatar.fr-pub-avatar--xl { width: 84px; height: 84px; font-size: 28px; }
  .fr-pub-row__line.fr-pub-row__line { padding: 8px 12px; gap: 8px; }
  .fr-pub-colhead { padding: 0 12px; gap: 8px; }
  .fr-pub-col-rank.fr-pub-col-rank { width: 26px; }
  .fr-pub-note { padding: 0 12px 12px 46px; }
  .fr-pub-tier.fr-pub-tier { padding-left: 46px; padding-right: 12px; }
  .fr-pub-board .fr-card__bar { padding: 6px 12px; }
}
/* Phone, draft mode on: Gone/Mine take the team column's room so the
   name keeps enough width to wrap between words. The team is still on
   the row's data and in My picks. */
@media (max-width: 480px) {
  .fr-pub-row__line:has([data-draft-role="controls"].flex) .fr-pub-col-team { display: none; }
  .fr-pub-pick.fr-pub-pick { padding: 0 8px; }
  .fr-pub-board:has([data-draft-mode-target="toolbar"].flex) .fr-pub-colhead .fr-pub-col-team { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fr-pub-live-dot,
  .fr-pub-note { animation: none; }
}
