/* ==========================================================================
   Explore front door — the logged-out news + community front page (frame 16a).
   Cards are OUTLINE-ONLY (1px white@7%, radius 12-16, no fill) except the
   hero image card. Blue (#00a8ff) is reserved for the news-type TAG pills.
   CTAs (Play / Follow / Subscribe / Sign Up) use the near-white fill.
   ========================================================================== */

.xf-context, .xf-hero, .xf-week, .xf-rail, .xf-latest, .xf-community {
  padding: 0 40px;
  margin: 0 0 36px;
}
@media (max-width: 900px) {
  .xf-context, .xf-hero, .xf-week, .xf-rail, .xf-latest, .xf-community { padding: 0 20px; }
}

/* ---- shared atoms --------------------------------------------------------- */

/* ---- section header — ONE treatment for every module (frame 20b) ----------
   Overline label + hairline rule filling the remaining width + an optional
   control (segmented toggle / "View all") pinned right. Every Home section
   uses this; do not add a competing header style. */
.xf-shead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.xf-shead-label {
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  white-space: nowrap;
}
.xf-shead-rule { flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, 0.08); }
.xf-shead-ctl { flex: none; display: flex; align-items: center; }
/* Lead variant (The CFB Brief): the zone's first header reads a shade up. */
.xf-shead-label.is-lead { color: rgba(255, 255, 255, 0.72); }
.xf-shead-icon { width: 18px; height: 18px; border-radius: 4px; flex: none; margin-right: -6px; }
/* Inline meta after the label — read time · sources · dateline. */
.xf-shead-meta {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
  white-space: nowrap;
}

/* The greeting is the page's one personal line, NOT a section header: title-case
   and larger so it stays distinct, but tamed so the hero still leads. */
.xf-section-title {
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.xf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.xf-kicker img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.xf-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(0, 168, 255, 0.45);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00a8ff;
  white-space: nowrap;
}

.xf-btn {
  display: inline-block;
  padding: 7px 22px;
  border-radius: 999px;
  background: #e9edf2;
  color: #101216 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.xf-btn:hover { background: #fff; }

/* ---- segmented controls ----------------------------------------------------
   ONE component for every pill control on the page: the Following / All CFB
   scope toggle and the Teams / Players rail toggle are the same thing, and
   the filter dropdown pills share their metrics. Pico fights compact pills
   twice — buttons default to full-width blocks and [role=group]-ish rules
   stretch children — so flex/width/padding/radius are pinned. */
.xf-seg, .xf-mini-seg {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}
.xf-seg-btn, .xf-mini-btn {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 4px 13px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 11.5px !important;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3 !important;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
}
.xf-seg-btn.is-active, .xf-mini-btn.is-active {
  background: #e9edf2 !important;
  color: #0b0d10 !important;
}
/* Hero-line variant: the context bar is the page's header row, so its toggle
   reads a size up from the in-page controls. */
.xf-seg.is-lg { padding: 3px; background: #1c2027 !important; }   /* surface2 track */
.xf-seg.is-lg .xf-seg-btn { padding: 7px 20px !important; font-size: 13.5px !important; }

/* Anonymous visitors can't scope to Following — the segment is inert and
   explains itself on hover/focus instead of bouncing them to /login. */
.xf-seg-btn.is-locked {
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: default;
}
.xf-seg-btn.is-locked:hover { color: rgba(255, 255, 255, 0.55) !important; }

/* Hover bubble. Lives on the control itself so no JS is needed; the segmented
   wrapper must not clip it. */
.xf-tip { position: relative; }
.xf-tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 30;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #1e2028;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.xf-tip:hover::after, .xf-tip:focus-visible::after { opacity: 1; transform: none; }


.xf-link, .xf-viewall, .xf-read {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.xf-link:hover, .xf-viewall:hover { text-decoration: underline; }

/* ---- RISING ticker label (frame 21b) ----------------------------------------
   Fixed label + short vertical divider ahead of the scrolling items, so the
   strip reads as a named module instead of loose text. The .xh-ticker shell
   (fixed bar, hairline below) comes from explore-hub.css. */
.xf-tick-label {
  align-self: center;
  flex: none;
  margin-left: 40px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}
.xf-tick-div {
  align-self: center;
  flex: none;
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 900px) {
  .xf-tick-label { margin-left: 20px; }
}

/* ---- 1. context bar (frame 21b) --------------------------------------------
   Scope toggle anchors the LEFT, the personalize pill anchors the RIGHT —
   space-between fills the previously dead right half. The RISING ticker sits
   above this row (its hairline is the separator). */
.xf-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 26px;
}
/* The segmented control lives in ONE place — see "segmented controls" under
   shared atoms. Following/All CFB and Teams/Players are the same component. */

/* Personalize pill: outlined shell, followed-team logos, solid CTA inside.
   Secondary entry to the team picker — deliberately NOT a third toggle tab. */
/* Quiet text cluster, no shell: muted label · logos · divider · bold link. */
.xf-persona {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.xf-persona-lbl {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.46);
  white-space: nowrap;
}
.xf-persona-logos { display: inline-flex; align-items: center; gap: 9px; }
.xf-persona-logos img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.xf-persona-div { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.15); }
.xf-persona-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.xf-persona:hover .xf-persona-cta { text-decoration: underline; text-underline-offset: 2px; }

/* ---- 2. hero --------------------------------------------------------------- */

/* Same proportions as the signed-in hub's hero band (.xh-hero-feed): the
   list is the wider column, and both stretch to a common height. */
.xf-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.xf-trending { display: flex; flex-direction: column; min-width: 0; }
/* Both columns open with the same .xf-shead row, so their headers share a
   baseline; the card then fills the column's remaining height. */
.xf-feature-col { display: flex; flex-direction: column; min-width: 0; }

.xf-feature {
  position: relative;
  display: block;
  flex: 1;
  min-height: 476px;   /* drives the hero's height; the storyline rows follow */
  border-radius: 16px;
  overflow: hidden;
  background: #1e2028;
  text-decoration: none;
}
.xf-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Card link = a stretched overlay (the text body is visual-only). The Brief's
   label lives in the section header above the card, not on the image. */
.xf-feature-overlay { position: absolute; inset: 0; z-index: 2; }
.xf-feature-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 12, 15, 0.92) 0%, rgba(10, 12, 15, 0.55) 24%, rgba(10, 12, 15, 0) 55%);
}
.xf-feature-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  pointer-events: none;   /* clicks fall through to the card overlay link */
}
/* Eyebrow: the teams the day's storylines touch. */
.xf-feature-teams { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; }
.xf-feature-teams img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}
.xf-feature-title {
  font-size: 30px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}
.xf-feature-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.xf-feature-dek {
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Anatomy mirrors .xh-mt-row on the signed-in hub: rank · body · thumb.
   Headline only — no dek, no sparkline, no rank-move. */

.xf-trend-list { flex: 1; display: flex; flex-direction: column; }
/* Rows split the column's height evenly (flex: 1) and center rank, body, and
   thumb against each other — no asymmetric first/last padding, or the content
   in those rows rides high/low inside its band. */
.xf-trend-row {
  flex: 1;
  display: grid;
  grid-template-columns: 18px 128px minmax(0, 1fr);
  grid-template-areas: "rank thumb body";
  align-items: center;
  column-gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
}
.xf-trend-row:first-child { border-top: 0; }
.xf-trend-row:hover .xf-trend-title { text-decoration: underline; text-underline-offset: 2px; }
.xf-trend-rank {
  grid-area: rank;
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
}
.xf-trend-thumb {
  grid-area: thumb;
  position: relative;
  width: 128px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.xf-trend-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Team-logo fallback (story written from thumbnail-less sources): contain it
   on the panel instead of cropping a logo to a 104x72 photo box. */
.xf-trend-thumb.is-logo img { object-fit: contain; padding: 20px; }
.xf-trend-body { grid-area: body; min-width: 0; }
.xf-trend-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.xf-trend-tag > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xf-trend-tag img {
  width: 15px;
  height: 15px;
  flex: none;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.xf-trend-title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .xf-trend-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "thumb body";
  }
  .xf-trend-rank { display: none; }
}

/* ---- 3. upcoming ------------------------------------------------------------ */

/* Nested inside .xf-latest (below the news grid) — no page padding of its own. */
/* Second module inside LATEST: its own header supplies the spacing, so the
   strip itself sits flush under it. */
.xf-up-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 1px;              /* card borders aren't clipped by overflow */
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  /* Soft right-edge fade as a "scroll for more" affordance (same treatment
     as the old trending-teams carousel); left edge fades once scrolled. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.xf-up-strip.is-scrolled {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.xf-up-strip::-webkit-scrollbar { display: none; }
/* Outline card per matchup — same treatment as .xf-card / .xf-rail-row. */
.xf-up-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  white-space: nowrap;
  flex: none;
}
.xf-up-game:hover { border-color: rgba(255, 255, 255, 0.16); }
.xf-up-game > img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.xf-up-vs { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.46); }
.xf-up-body { display: flex; flex-direction: column; gap: 2px; margin-left: 6px; }
.xf-up-name { font-size: 12.5px; font-weight: 700; color: #fff; }
.xf-up-kick { font-size: 10.5px; color: rgba(255, 255, 255, 0.46); font-variant-numeric: tabular-nums; }
/* In-season hook: a live game's score line swaps to up-green (see handoff). */
.xf-up-kick.is-live { color: #35c66b; font-weight: 700; }

/* ---- 4. latest --------------------------------------------------------------- */

.xf-filter-row { display: flex; align-items: center; gap: 10px; }

/* Active filters: one removable pill per selection, under the header. */
.xf-active-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.xf-active-row.is-hidden { display: none; }
.xf-active-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  width: auto !important;
  margin: 0 !important;
  padding: 4px 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e9edf2 !important;
  color: #101216 !important;
  font-size: 11.5px !important;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3 !important;
  box-shadow: none !important;
  cursor: pointer;
  white-space: nowrap;
}
.xf-active-pill .x { font-weight: 800; opacity: 0.55; }
.xf-active-pill:hover .x { opacity: 1; }


/* Dropdown pill: <details>/<summary> disclosure. Pico fights compact pills —
   it stretches buttons to full-width blocks and paints its own marker — so
   sizing, background, and the marker are all pinned here. */
.xf-dd { position: relative; flex: 0 0 auto; }
/* Same metrics as .xf-seg-btn so the filters, the scope toggle, and the rail
   toggle all read as one control family (a lone pill carries the border the
   segmented wrapper would otherwise provide). */
/* Each filter is a SEGMENT of .xf-filter-seg: no border, no caret, identical
   metrics to .xf-mini-btn. Pico decorates <details>/<summary> heavily — it
   paints a chevron via summary::after, adds padding/borders to details, and
   gives summary its own line-height — so all of it is pinned off here. */
.xf-filter-seg .xf-dd,
.xf-filter-seg details.xf-dd {
  display: flex !important;      /* block <details> baseline-seats its summary
                                    — flex centers it inside the segment */
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1 !important;
}
.xf-dd-pill {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 4px 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-image: none !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px !important;
  font-weight: 700;
  line-height: 1.3 !important;
  white-space: nowrap;
  cursor: pointer;
  list-style: none !important;
}
/* Pico's caret, three ways. */
.xf-dd-pill::after,
.xf-dd-pill::before { content: none !important; display: none !important; }
.xf-dd-pill::-webkit-details-marker { display: none !important; }
.xf-dd-pill::marker { content: '' !important; }
.xf-dd-pill:hover { color: #fff; }
.xf-dd[open] .xf-dd-pill { background: rgba(255, 255, 255, 0.08) !important; color: #fff; }
.xf-dd.is-set .xf-dd-pill {
  background: #e9edf2 !important;
  color: #101216 !important;
  font-weight: 700;
}
.xf-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 190px;
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: none;      /* long team/player lists still scroll, silently */
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #14161b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.xf-dd-menu::-webkit-scrollbar { display: none; }
.xf-dd-opt {
  display: block;
  width: 100% !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px !important;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.3 !important;
  text-align: left;
  box-shadow: none !important;
  cursor: pointer;
}
.xf-dd-opt:hover { background: rgba(255, 255, 255, 0.06) !important; color: #fff !important; }
.xf-dd-opt.is-active { color: #fff !important; }
.xf-dd-clear {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)) !important;
  font-size: 11.5px !important;
  font-weight: 700;
  font-family: inherit;
  box-shadow: none !important;
  cursor: pointer;
}
.xf-dd-clear:hover { color: #fff !important; text-decoration: underline; }
.xf-dd-clear.is-hidden { display: none; }

/* The news grid runs the section's full width; the trending entities follow
   as a horizontal carousel beneath it. */
.xf-feed { min-width: 0; }

.xf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---- TRENDING carousel ------------------------------------------------------ */

/* Top-level band between the hero and LATEST; page padding comes from the
   shared section rule above. */
.xf-rail { display: block; min-width: 0; }
/* Horizontal scroller; edge fade is the "more to the right" affordance, same
   treatment as the upcoming-games strip. */
.xf-rail-list {
  display: flex;
  gap: 12px;
  padding: 1px;             /* card borders aren't clipped by overflow */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.xf-rail-list::-webkit-scrollbar { display: none; }
.xf-rail-list.is-hidden { display: none; }
/* Outline card per entity — same 1px white@7% / no-fill treatment as .xf-card. */
.xf-rail-row {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(330px, 30%, 420px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  text-decoration: none;
  min-width: 0;
}
.xf-rail-row:hover { border-color: rgba(255, 255, 255, 0.16); }
/* Faded banner background — same grammar as the topic-page header and the
   favorites team cards (.xh-mt-bg + scrim): image fills, a heavy left-biased
   scrim keeps the name/hook legible. */
.xf-rail-row.has-bg > *:not(.xf-rail-bg):not(.xf-rail-scrim) { position: relative; z-index: 1; }
.xf-rail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;       /* banner files are pre-cropped to the bowl */
  z-index: 0;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}
.xf-rail-row.has-bg:hover .xf-rail-bg { transform: scale(1.03); }
.xf-rail-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to right,
    rgba(11, 13, 16, 0.86) 0%, rgba(11, 13, 16, 0.66) 55%,
    rgba(11, 13, 16, 0.34) 100%);
}
.xf-rail-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.xf-rail-img.is-headshot { object-fit: cover; border-radius: 50% !important; background: #1e2028 !important; }
.xf-rail-img.is-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #1e2028 !important;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}
.xf-rail-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xf-rail-top { display: flex; align-items: baseline; gap: 8px; }
.xf-rail-name { font-size: 15.5px; font-weight: 700; color: #fff; }
.xf-rail-delta {
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.xf-rail-delta.up { color: #35c66b; }
.xf-rail-delta.down { color: #e76f6d; }
/* Hooks are capped at 135 chars server-side; 3 lines on a wider card fits them
   whole, so the ellipsis is a rare fallback rather than the norm. */
.xf-rail-hook {
  font-size: 13.5px;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xf-rail-row:hover .xf-rail-name { text-decoration: underline; }
/* Full-image cards — the hero Brief card's grammar: the photo fills the tile
   and a bottom scrim carries kicker · tag · headline · byline. */
.xf-card {
  position: relative;
  display: block;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: #1e2028;
  text-decoration: none;
}
.xf-card.is-hidden { display: none; }
.xf-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.xf-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 12, 15, 0.92) 0%, rgba(10, 12, 15, 0.55) 30%, rgba(10, 12, 15, 0) 62%);
}
.xf-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}
.xf-card-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xf-card-meta .xf-kicker { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
/* The pill rides the thin end of the scrim — back it so it stays legible
   over bright photography. */
.xf-card-meta .xf-tag {
  margin-left: auto;
  flex: none;
  background: rgba(10, 12, 15, 0.6);
  backdrop-filter: blur(4px);
}
.xf-card-title {
  font-size: 16px;
  line-height: 1.32;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xf-card:hover .xf-card-title { text-decoration: underline; }
/* Byline: publication · date, riding the scrim under the headline. */
.xf-card-byline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
.xf-card-source {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xf-card-byline > span:last-child { flex: none; }
.xf-empty-note { grid-column: 1 / -1; padding: 30px 0; text-align: center; font-size: 13px; color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)); }

/* ---- 5. community ------------------------------------------------------------ */

.xf-comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.xf-module {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  min-height: 250px;
}
.xf-mod-title { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.xf-mod-sub { margin: 4px 0 0; font-size: 12px; color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)); }
.xf-mod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.xf-pk-featured {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}
.xf-pk-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: #1e2028; }
.xf-pk-cluster { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.xf-pk-logos { display: inline-flex; }
.xf-pk-logos img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
  background: #14171b;
  border: 2px solid #14171b;
  position: relative;
}
.xf-pk-logos img + img { margin-left: -8px; }
.xf-pk-more { font-size: 12px; color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)); }

.xf-fanmap { padding: 0; overflow: hidden; }
.xf-map-preview {
  position: relative;
  flex: 1;
  min-height: 170px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 14px 14px;
}
.xf-map-dot {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  border-radius: 50%;
  background: #14171b;
  box-shadow: 0 0 0 2px var(--dot, rgba(255, 255, 255, 0.25));
}
.xf-map-foot { margin: 0; padding: 14px 20px 16px; }
.xf-map-id { display: flex; flex-direction: column; gap: 2px; }

.xf-takes-head { letter-spacing: 0.6px; font-size: 13px; }
.xf-live { color: #47c47d; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.xf-take-list { display: flex; flex-direction: column; margin-top: 6px; }
.xf-take {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.xf-take:last-child { border-bottom: 0; }
.xf-take-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #1e2028;
}
.xf-take-avatar.is-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.xf-take-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xf-take-who { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.xf-take-who b { font-weight: 500; color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)); }
.xf-take-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xf-take-score {
  margin-left: auto;
  flex: none;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

/* ---- 6. fans to follow — rotating card in the community grid ------------------ */

/* Slides stack; only .is-active is visible. The deck reserves the tallest
   slide's height so the module never jitters as it cycles. */
.xf-follow-deck {
  position: relative;
  flex: 1;
  display: grid;
  margin: 14px 0 4px;
}
.xf-follow-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.xf-follow-slide.is-active { opacity: 1; visibility: visible; }
.xf-follow-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #1e2028;
  margin-bottom: 4px;
}
.xf-follow-avatar.is-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.xf-follow-name { font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }
.xf-follow-name:hover { text-decoration: underline; }
.xf-follow-stat { font-size: 11px; color: var(--xh-ink-3, rgba(255, 255, 255, 0.35)); font-variant-numeric: tabular-nums; }
.xf-follow-known {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xf-follow-dots { display: inline-flex; align-items: center; gap: 6px; }
.xf-follow-dot {
  flex: 0 0 auto !important;
  width: 6px !important;
  height: 6px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.xf-follow-dot.is-active { background: #e9edf2 !important; }

/* ---- 7. newsletter tweak --------------------------------------------------------- */

.xf-nl { padding-left: 40px; padding-right: 40px; }
.xf-nl .xh-foot-left { display: none; }

/* ---- responsive --------------------------------------------------------------- */

@media (max-width: 1100px) {
  .xf-hero { grid-template-columns: 1fr; }
  .xf-feature { min-height: 360px; }
  .xf-grid, .xf-comm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  /* Too narrow for toggle + teams side by side: let the right group wrap under. */
  .xf-context { flex-wrap: wrap; }
  .xf-grid, .xf-comm-grid { grid-template-columns: 1fr; }
  .xf-feature-title { font-size: 24px; }
}
