/* Robinfolio — live Index layer. All classes .rfx- prefixed. Never touches donor CSS. */

:root {
  --rfx-serif: ktflux2, "ktflux2 Fallback", Georgia, "Times New Roman", serif;
  --rfx-white: #ebebeb;
  --rfx-grey: rgba(255, 255, 255, 0.55);
  --rfx-grey-dim: rgba(255, 255, 255, 0.38);
  --rfx-line: rgba(255, 255, 255, 0.14);
  --rfx-line-soft: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   HERO CARD OVERLAYS
   ============================================================ */

.rfx-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
  font-family: var(--rfx-serif);
  color: var(--rfx-white);
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(6, 7, 9, 0.88) 0%, rgba(6, 7, 9, 0.62) 55%, rgba(6, 7, 9, 0) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.25;
}

.rfx-caps {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rfx-grey);
  font-family: var(--rfx-serif);
}

/* --- Live NAV card --- */
.rfx-nav-num {
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  white-space: nowrap;
}
.rfx-nav-chg {
  font-size: 11px;
  color: var(--rfx-grey);
  margin-left: 6px;
}
.rfx-spark {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
  opacity: 0.9;
}

/* --- Composition card --- */
.rfx-comp-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.rfx-comp-list li {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  white-space: nowrap;
}
.rfx-comp-list li:first-child { border-top: 0; }
.rfx-comp-list .rfx-num { color: var(--rfx-grey-dim); margin-right: 5px; }
.rfx-comp-list .rfx-w { color: var(--rfx-grey); }

/* --- Rebalance card --- */
.rfx-reb-count {
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-top: 3px;
  white-space: nowrap;
}

/* --- 24/7 Markets card --- */
.rfx-open-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.rfx-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  vertical-align: middle;
  animation: rfx-pulse 2.4s ease-in-out infinite;
}
@keyframes rfx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.rfx-ticker {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  min-height: 17px;
  white-space: nowrap;
  transition: opacity 0.45s ease;
}
.rfx-ticker .rfx-arrow { color: var(--rfx-grey); font-size: 10px; }
.rfx-ticker .rfx-pct { color: var(--rfx-grey); font-size: 11px; }
.rfx-fadeout { opacity: 0; }

/* size adaptivity: JS sets data-rfx-size on the overlay */
.rfx-card-overlay[data-rfx-size="xs"] .rfx-spark,
.rfx-card-overlay[data-rfx-size="xs"] .rfx-comp-list li:nth-child(n+4),
.rfx-card-overlay[data-rfx-size="xs"] .rfx-ticker { display: none; }
.rfx-card-overlay[data-rfx-size="xs"] { padding: 18px 8px 8px; }
.rfx-card-overlay[data-rfx-size="xs"] .rfx-nav-num { font-size: 17px; }
.rfx-card-overlay[data-rfx-size="xs"] .rfx-reb-count { font-size: 12px; white-space: normal; }
.rfx-card-overlay[data-rfx-size="xs"] .rfx-caps { font-size: 7px; letter-spacing: 0.1em; }
.rfx-card-overlay[data-rfx-size="sm"] .rfx-comp-list li:nth-child(n+5) { display: none; }
.rfx-card-overlay[data-rfx-size="sm"] .rfx-nav-num { font-size: 20px; }
.rfx-card-overlay[data-rfx-size="sm"] .rfx-spark { height: 26px; }

/* ============================================================
   HERO "TRACK NAV" BUTTON (below Scroll indicator)
   ============================================================ */

.rfx-hero-btn {
  position: absolute;
  z-index: 600; /* above the hero cards drag layer (z:505) */
  display: inline-block;
  font-family: var(--rfx-serif);
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  padding: 7px 12px 5px;
  background: rgba(90, 93, 100, 0.35);
  pointer-events: auto;
  white-space: nowrap;
  transition: background 0.3s ease;
}
.rfx-hero-btn:hover { background: rgba(120, 123, 130, 0.55); }
.rfx-hero-btn .rfx-down { font-size: 12px; color: var(--rfx-grey); margin-left: 4px; }

/* ============================================================
   ( INDEX ) SECTION
   ============================================================ */

.rfx-index {
  position: relative;
  font-family: var(--rfx-serif);
  color: var(--rfx-white);
  padding: 140px min(10.4vw, 150px) 150px;
  -webkit-font-smoothing: antialiased;
}

.rfx-index-head {
  font-size: 16px;
  color: #fff;
  margin: 0 0 70px;
  font-weight: 400;
}

.rfx-index-title {
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 80px;
  max-width: 14em;
}

/* --- NAV block --- */
.rfx-navblock {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 26px;
  border-bottom: 1px solid var(--rfx-line);
  padding-bottom: 34px;
  margin-bottom: 0;
}
.rfx-navblock-num {
  font-size: clamp(78px, 9.6vw, 148px);
  font-weight: 400;
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.01em;
}
.rfx-navblock-side { display: flex; flex-direction: column; gap: 8px; }
.rfx-navblock-chg { font-size: clamp(18px, 1.8vw, 26px); color: var(--rfx-grey); }
.rfx-navblock-meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rfx-grey-dim); }

/* --- chart --- */
.rfx-chart-wrap { position: relative; padding: 44px 0 10px; }
.rfx-chart { display: block; width: 100%; height: 360px; }
.rfx-ranges {
  position: absolute;
  top: 14px;
  right: 0;
  display: flex;
  gap: 22px;
}
.rfx-range {
  font-family: var(--rfx-serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--rfx-grey);
  background: none;
  border: 0;
  padding: 0 0 2px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease;
}
.rfx-range:hover { color: #fff; }
.rfx-range[data-active="1"] {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* --- composition table (donor News-row style) --- */
.rfx-table { margin-top: 56px; }
.rfx-table-cap {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rfx-grey-dim);
  margin-bottom: 14px;
}
.rfx-row {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) 7em 8em 6.4em;
  align-items: baseline;
  gap: 0 18px;
  padding: 26px 4px;
  border-top: 1px solid var(--rfx-line);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
}
.rfx-row:last-child { border-bottom: 1px solid var(--rfx-line); }
.rfx-row-num { font-size: 19px; color: #fff; }
.rfx-row-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfx-row-name .rfx-sym { color: var(--rfx-grey); margin-left: 10px; font-size: 14px; letter-spacing: 0.08em; }
.rfx-row-w, .rfx-row-p, .rfx-row-c {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rfx-row-w { color: var(--rfx-grey); }
.rfx-row-c { color: var(--rfx-grey); font-size: 14px; }
.rfx-row-c .rfx-arrow { font-size: 11px; }

/* --- buttons (replica of donor "More Details" outline) --- */
.rfx-btnrow { display: flex; gap: 16px; margin-top: 58px; flex-wrap: wrap; }
.rfx-btn {
  display: inline-block;
  font-family: var(--rfx-serif);
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 3px;
  padding: 8px 26px 6px;
  background: rgba(90, 93, 100, 0.55);
  transition: background 0.3s ease;
  cursor: pointer;
}
.rfx-btn:hover { background: rgba(125, 128, 135, 0.7); }

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {
  .rfx-index { padding: 90px 6vw 100px; }
  .rfx-index-head { margin-bottom: 40px; }
  .rfx-index-title { font-size: 34px; margin-bottom: 48px; }
  .rfx-navblock-num { font-size: 62px; }
  .rfx-navblock-chg { font-size: 16px; }
  .rfx-chart { height: 220px; }
  .rfx-chart-wrap { padding-top: 56px; }
  .rfx-ranges { top: 10px; right: 0; gap: 16px; }
  .rfx-table { margin-top: 40px; }
  /* rows wrap to 2 lines: name row + numbers row */
  .rfx-row {
    grid-template-columns: 2.4em minmax(0, 1fr) auto;
    grid-template-areas:
      "num name name"
      ".   w    pc";
    padding: 18px 2px;
    font-size: 15px;
    row-gap: 6px;
  }
  .rfx-row-num { grid-area: num; font-size: 16px; }
  .rfx-row-name { grid-area: name; }
  .rfx-row-w { grid-area: w; text-align: left; font-size: 13px; }
  .rfx-row-p { display: none; }
  .rfx-row-c { grid-area: pc; font-size: 13px; }
  .rfx-btnrow { margin-top: 40px; }
  .rfx-btn { font-size: 14px; padding: 8px 18px 6px; }
}

/* hero overlays on small screens: keep only the NAV number */
@media (max-width: 520px) {
  .rfx-card-overlay { display: none; }
  .rfx-card-overlay--nav { display: block; padding: 16px 8px 8px; }
  .rfx-card-overlay--nav .rfx-spark,
  .rfx-card-overlay--nav .rfx-caps,
  .rfx-card-overlay--nav .rfx-nav-chg { display: none; }
  .rfx-card-overlay--nav .rfx-nav-num { font-size: 16px; }
  .rfx-hero-btn { font-size: 12px; padding: 6px 10px 4px; }
}
