/* FatTail RateWatch 1.0.11 — neon-B; range baseline; history/layout hooks; size-band layouts */
.ratewatch-root {
  --rw-hike: #ff4fd8;
  --rw-hold: #7dffd4;
  --rw-cut: #4fd2ff;
  --rw-ink: #f4f7ff;
  --rw-mute: rgba(244,247,255,0.62);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  color: var(--rw-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,79,216,0.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(10,76,255,0.35), transparent 50%),
    linear-gradient(145deg, #0e0830 0%, #1a0f5c 42%, #0a4cff 120%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.ratewatch-root *, .ratewatch-root *::before, .ratewatch-root *::after { box-sizing: border-box; }
.ratewatch-root[data-status="error"] { background: #3a0a20; }
.ratewatch-root[data-status="loading"] .rw-stage { opacity: 0.45; }


/*
 * 1.0.7 category hub banner (page 12760 /blog-media/fomc-alerts/):
 * Replace .fth-bn-art Fed image with RateWatch. Keep .fth-bn-text (title/countdown/search/chips/CTA).
 * Desktop: existing 2-col grid on .fth-bn-in. Mobile: stack text THEN widget (override order:-1).
 */
.fth-bn.ratewatch-bn-has-widget .fth-bn-in.ratewatch-bn-in-has-widget,
.fth-bn.ratewatch-bn-has-widget .fth-bn-in {
  align-items: stretch;
  gap: 1.5rem 2rem;
  /* keep tracks shrinkable so meeting tabs don't blow out the grid */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-text {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 100%;
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art.ratewatch-image-slot,
.fth-bn.ratewatch-bn-has-widget .fth-bn-art {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: stretch;
  align-self: stretch;
  min-width: 0; /* critical: allow 1fr track to shrink below meetings min-content */
  max-width: 100%;
  width: 100%;
  min-height: 360px;
  max-height: none !important;
  height: auto !important;
  order: 0 !important; /* override category-hub mobile order:-1 so text stays first */
  overflow: hidden; /* clip; meetings scroll inside .rw-meetings */
  box-sizing: border-box;
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art .fth-bn-img { display: none !important; }
.fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 360px;
  height: auto;
  flex: 1 1 auto;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  padding: 14px 16px 18px;
  overflow: hidden;
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root .rw-stage {
  flex: 1 1 auto;
  min-height: 160px;
  padding-bottom: 8px;
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root .rw-foot {
  flex: 0 0 auto;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root .rw-kicker {
  font-size: clamp(26px, 3.2vw, 38px);
}
.fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root .rw-c-delta {
  margin-top: 8px;
  margin-bottom: 4px;
}

@media (max-width: 849px) {
  .fth-bn.ratewatch-bn-has-widget .fth-bn-in.ratewatch-bn-in-has-widget,
  .fth-bn.ratewatch-bn-has-widget .fth-bn-in {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .fth-bn.ratewatch-bn-has-widget .fth-bn-art.ratewatch-image-slot,
  .fth-bn.ratewatch-bn-has-widget .fth-bn-art {
    order: 2 !important; /* AFTER .fth-bn-text */
    min-height: 0;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .fth-bn.ratewatch-bn-has-widget .fth-bn-text {
    order: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }
  .fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root {
    min-height: 340px;
    border-radius: 14px;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Shortcode / inline card (any post or page body) */
.ratewatch-root.ratewatch-inline,
.entry-content .ratewatch-root:not(.ratewatch-hub),
.fth-cat .ratewatch-root:not(.ratewatch-hub) {
  margin: 1rem 0 1.25rem;
  min-height: 300px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(14,8,48,0.28);
}

/*
 * 1.0.5 in-banner: two-column desktop hero on post 12821.
 * Left = existing .fm-hero-inner (pill/title/meta). Right = RateWatch.
 * Nothing overlaps. Mobile stacks text then graphic.
 */
.fm-hero.ratewatch-bn-has-widget {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.95fr) minmax(340px, 1.2fr);
  grid-template-rows: auto;
  align-items: stretch;
  justify-content: stretch;
  gap: 20px 28px;
  min-height: 440px !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  padding: 28px clamp(16px, 3vw, 40px) 28px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(10,76,255,0.35), transparent 55%),
    linear-gradient(145deg, #0d1b2a 0%, #1a0f5c 55%, #0e0830 100%) !important;
}

/* Decorative bg layer only — no widget, no covering text */
.fm-hero.ratewatch-bn-has-widget .fm-hero-bg.ratewatch-image-slot,
.fm-hero.ratewatch-bn-has-widget .fm-hero-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  background-image: none !important;
  background: transparent !important;
  animation: none !important;
  pointer-events: none;
  display: block !important;
}

/* Soften / effectively remove the dark gradient overlay so columns stay readable */
.fm-hero.ratewatch-bn-has-widget .fm-hero-grad,
.fm-hero.ratewatch-bn-has-widget .fm-hero-grad.ratewatch-hero-grad-soft {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent !important;
  opacity: 0;
}

/* LEFT column: Hub hero text — no absolute overlay */
.fm-hero.ratewatch-bn-has-widget .fm-hero-inner {
  position: relative !important;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 8px 12px 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

/* RIGHT column: RateWatch graphic fills former banner-image space */
.fm-hero.ratewatch-bn-has-widget > .ratewatch-root {
  position: relative !important;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  min-height: 400px;
  height: auto;
  align-self: stretch;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  /* room for delta above footer; avoid clipping */
  padding: 14px 16px 18px;
  overflow: hidden;
}
.fm-hero.ratewatch-bn-has-widget > .ratewatch-root .rw-stage {
  flex: 1 1 auto;
  min-height: 160px;
  padding-bottom: 8px; /* room between delta / legend and .rw-foot */
}
.fm-hero.ratewatch-bn-has-widget > .ratewatch-root .rw-foot {
  flex: 0 0 auto;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fm-hero.ratewatch-bn-has-widget > .ratewatch-root .rw-kicker {
  font-size: clamp(26px, 3.2vw, 38px);
}
.fm-hero.ratewatch-bn-has-widget > .ratewatch-root .rw-c-delta {
  margin-top: 8px;
  margin-bottom: 4px;
}

/* Mobile / narrow: stack text first, then graphic full width */
@media (max-width: 849px) {
  .fm-hero.ratewatch-bn-has-widget {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    gap: 14px;
    min-height: 0 !important;
    padding: 20px 14px 22px;
  }
  .fm-hero.ratewatch-bn-has-widget .fm-hero-inner {
    grid-column: 1;
    grid-row: 1;
    padding: 8px 4px 4px !important;
    justify-content: flex-start;
  }
  .fm-hero.ratewatch-bn-has-widget > .ratewatch-root {
    grid-column: 1;
    grid-row: 2;
    min-height: 360px;
    border-radius: 12px;
  }
}

.ratewatch-hero { box-shadow: none; }
.ratewatch-below-banner {
  margin: 14px 0 22px;
  min-height: 300px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(14,8,48,0.3);
}

.rw-chrome {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  flex: 0 0 auto; z-index: 2; margin-bottom: 2px;
}
.rw-brand {
  display: flex; align-items: flex-end; gap: 10px; min-width: 0;
}
/* Coach t879u: BIG RateWatch wordmark — headline brand, neon-B glow, top-left */
.rw-kicker {
  display: inline-block;
  font-weight: 900;
  font-size: clamp(28px, 5.2vw, 42px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--rw-hold);
  text-shadow:
    0 0 8px rgba(125,255,212,0.95),
    0 0 22px rgba(125,255,212,0.65),
    0 0 48px rgba(10,76,255,0.55),
    0 2px 0 rgba(0,0,0,0.35);
  font-stretch: condensed;
  text-transform: none;
}
/* 1.0.11 — Tool page info icon + footer learn link */
.rw-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  margin: 0 0 0.12em 2px;
  padding: 0;
  border-radius: 999px;
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--rw-hold);
  background: rgba(125,255,212,0.12);
  border: 1px solid rgba(125,255,212,0.45);
  box-shadow: 0 0 10px rgba(125,255,212,0.25);
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}
.rw-info:hover {
  filter: brightness(1.12);
  background: rgba(125,255,212,0.22);
  color: var(--rw-hold);
  text-decoration: none;
}
.rw-info:focus-visible,
.rw-learn:focus-visible,
.rw-share:focus-visible {
  outline: 2px solid #7dffd4;
  outline-offset: 2px;
  border-radius: 4px;
}
.rw-learn {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--rw-hold);
  text-decoration: none;
  white-space: nowrap;
}
.rw-learn:hover {
  text-decoration: underline;
  color: var(--rw-hold);
}
.rw-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  min-height: 18px;
}
.rw-asof { font-size: 11px; color: var(--rw-mute); }
.rw-warsh {
  font-size: 11px; font-weight: 800; color: var(--rw-hold);
  letter-spacing: 0.04em;
}
.rw-warsh[data-flag="DIVERGE"] { color: #ffd36a; text-shadow: 0 0 10px rgba(255,211,106,0.5); }

.rw-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; }
.rw-foot {
  display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 10px; color: var(--rw-mute);
  flex: 0 0 auto; padding-top: 4px;
}
.rw-countdown { font-weight: 700; color: var(--rw-ink); }

/* Variant A */
.rw-a { display: flex; gap: 18px; width: 100%; height: 100%; align-items: center; }
.rw-a-gauge { position: relative; width: 200px; height: 200px; flex: 0 0 auto; }
.rw-a-gauge .rw-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.rw-a-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; pointer-events: none;
}
.rw-a-dom { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 0 24px currentColor; max-width: 72%; overflow: hidden; }
.rw-fitpct { display: inline-block; font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 0 24px currentColor; white-space: nowrap; }
.rw-a-center { padding: 18px; }
.rw-b-core .rw-fitpct { text-shadow: 0 0 10px currentColor; }
.rw-c-big .rw-fitpct { text-shadow: 0 0 28px currentColor; }
.rw-c-lab { font-size: 14px; font-weight: 800; margin-top: 2px; letter-spacing: 0.02em; }
.rw-b-note { font-size: 10px; color: var(--rw-mute); margin-top: 2px; }
.rw-a-domk { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.9; margin-top: 2px; }
.rw-a-bp { font-size: 14px; font-weight: 700; color: var(--rw-mute); margin-top: 4px; }
.rw-a-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rw-a-meet { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.rw-a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rw-a-card {
  background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 10px 8px; text-align: center;
}
.rw-a-card.is-dom { border-color: currentColor; box-shadow: 0 0 18px rgba(255,79,216,0.25); }
.rw-a-card.rw-hike { color: var(--rw-hike); }
.rw-a-card.rw-hold { color: var(--rw-hold); }
.rw-a-card.rw-cut { color: var(--rw-cut); }

.rw-a-v { font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
  text-shadow: 0 0 16px currentColor; overflow: hidden; }
.rw-a-k { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; opacity: 0.9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-a-d { font-size: 11px; font-weight: 700; opacity: 0.85; margin-top: 2px; }
.rw-a-next { font-size: 12px; color: var(--rw-mute); }

/* Variant B */
.rw-b { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.rw-b-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--rw-mute); text-transform: uppercase; }
.rw-b-strip {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rw-b-node { position: relative; flex: 0 0 auto; width: 110px; text-align: center; }
.rw-b-connector {
  position: absolute; left: -14px; top: 44px; width: 28px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(125,255,212,0.55));
  border-radius: 2px;
}
.rw-b-ringwrap { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.rw-b-ringwrap .rw-ring { position: absolute; inset: 0; }
.rw-b-core {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; text-shadow: 0 0 12px currentColor;
}
.rw-b-core span { font-size: 11px; }
.rw-b-lab { font-size: 12px; font-weight: 800; margin-top: 4px; }
.rw-b-rate { font-size: 11px; color: var(--rw-mute); }
.rw-b-dom { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.rw-b-dom.rw-hike { color: var(--rw-hike); }
.rw-b-dom.rw-hold { color: var(--rw-hold); }
.rw-b-dom.rw-cut { color: var(--rw-cut); }
.rw-b-path { width: 100%; height: 56px; display: block; }

/* Variant C */
.rw-c {
  display: flex; gap: 16px; width: 100%; height: 100%; align-items: center; justify-content: center;
  position: relative;
}
.rw-c-gauge { width: min(260px, 48vw); height: auto; flex: 0 0 auto; }
.rw-c-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-120%, -55%);
  width: min(260px, 48vw); text-align: center; pointer-events: none;
}
/* center overlay aligned to gauge — use flex layout instead */
.rw-c { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 12px 20px; align-items: center; }
.rw-c-gauge { grid-row: 1; grid-column: 1; width: 100%; }
.rw-c-center {
  grid-row: 1; grid-column: 1; position: relative; left: auto; top: auto; transform: none;
  width: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
}
.rw-c-big { font-size: clamp(36px, 7vw, 56px); font-weight: 900; line-height: 1;
  letter-spacing: -0.03em; text-shadow: 0 0 28px currentColor; }
.rw-c-k { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; margin-top: 4px; }
.rw-c-delta { font-size: 13px; font-weight: 800; margin-top: 6px; }
.rw-c-delta.down { color: var(--rw-cut); }
.rw-c-delta.up { color: var(--rw-hike); }
.rw-c-bp { font-size: 12px; color: var(--rw-mute); margin-top: 2px; }
.rw-c-legend { display: flex; flex-direction: column; gap: 10px; }
.rw-c-row { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.rw-c-row .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block;
  box-shadow: 0 0 10px currentColor; }
.rw-c-row.rw-hike { color: var(--rw-hike); }
.rw-c-row.rw-hike .sw { background: var(--rw-hike); }
.rw-c-row.rw-hold { color: var(--rw-hold); }
.rw-c-row.rw-hold .sw { background: var(--rw-hold); }
.rw-c-row.rw-cut { color: var(--rw-cut); }
.rw-c-row.rw-cut .sw { background: var(--rw-cut); }
.rw-c-jan { font-size: 13px; color: var(--rw-mute); margin-top: 6px; }

/* Mobile */
@media (max-width: 720px) {
  .ratewatch-root { min-height: 260px; padding: 10px 12px; }
  .rw-kicker { font-size: clamp(24px, 8vw, 32px); }
  .rw-chrome { gap: 0; }
  .rw-a-gauge { width: 140px; height: 140px; }
  .rw-a-dom { font-size: 30px; }

  /* feature-card slot unused */
  .rw-a { flex-direction: column; gap: 8px; }
  .rw-a-gauge { width: 160px; height: 160px; }
  .rw-a-dom { font-size: 36px; }
  .rw-a-v { font-size: 26px; }
  .rw-a-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  /* Variant C narrow stack: see ≤600px block below */
  .rw-b-node { width: 92px; }
}

/* Meeting selector (CME FedWatch-style tabs) — neon-B, horizontal scroll on mobile */
.rw-meetings {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 4px 2px 8px;
  flex: 0 0 auto;
  scroll-snap-type: x proximity;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.rw-meetings::-webkit-scrollbar { height: 4px; }
.rw-meetings::-webkit-scrollbar-thumb { background: rgba(125,255,212,0.35); border-radius: 2px; }
.rw-mtab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 68px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(125,255,212,0.28);
  background: rgba(0,0,0,0.28);
  color: var(--rw-ink);
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rw-mtab:hover { border-color: rgba(125,255,212,0.7); }
.rw-mtab:focus-visible {
  outline: 2px solid var(--rw-hold);
  outline-offset: 2px;
}
.rw-mtab.is-active {
  border-color: var(--rw-hold);
  background: rgba(125,255,212,0.14);
  box-shadow: 0 0 16px rgba(125,255,212,0.35), inset 0 0 12px rgba(10,76,255,0.25);
}
.rw-mtab-lab {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap;
}
.rw-mtab-pct {
  font-size: 13px; font-weight: 900; line-height: 1.1;
  text-shadow: 0 0 8px currentColor;
}

/* Variant B selected focus strip */
.rw-b-focus { margin-bottom: 4px; }
.rw-b-focus-lab { font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.rw-b-focus-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; font-weight: 800; margin-top: 2px;
}
.rw-b-focus-row .rw-hike { color: var(--rw-hike); }
.rw-b-focus-row .rw-hold { color: var(--rw-hold); }
.rw-b-focus-row .rw-cut { color: var(--rw-cut); }
.rw-b-d, .rw-b-bp { color: var(--rw-mute); font-weight: 700; font-size: 12px; }
.rw-b-node { cursor: pointer; }
.rw-b-node.is-sel .rw-b-ringwrap {
  filter: drop-shadow(0 0 10px rgba(125,255,212,0.55));
  transform: scale(1.06);
}
.rw-b-node.is-sel .rw-b-lab { color: var(--rw-hold); }
.rw-b-ringwrap { transition: transform .15s; }

@media (max-width: 720px) {
  .rw-mtab { min-width: 62px; padding: 6px 9px; }
  .rw-mtab-lab { font-size: 10px; }
  .rw-mtab-pct { font-size: 12px; }
  .rw-b-ringwrap { width: 72px; height: 72px; }
}

#ratewatch-hub-mount[hidden] { display: none !important; }

/* Variant C gauge wrap (center overlays the dial) — desktop: side-by-side */
.rw-c {
  display: flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden; /* children must not spill past card */
}
.rw-c-gaugewrap {
  position: relative;
  width: min(280px, 50%);
  flex: 0 0 auto;
  aspect-ratio: 1;
  max-width: 100%;
  min-width: 0;
}
.rw-c-gaugewrap .rw-c-gauge { width: 100%; height: auto; display: block; max-width: 100%; }
.rw-c-gaugewrap .rw-c-center {
  position: absolute !important;
  inset: 0 !important;
  left: auto !important; top: auto !important; transform: none !important;
  width: auto !important;
  max-width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
  padding: 8px;
  box-sizing: border-box;
}
.rw-c-legend {
  flex: 1 1 auto;
  min-width: 0; /* allow shrink; was 140px and caused overflow */
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rw-c-row {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.rw-c-jan {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/*
 * 1.0.6 narrow: ≤600px stack gauge ABOVE legend.
 * Gauge scaled to card width (with padding), centered. Legend full width, wraps.
 * Desktop (≥601) unchanged.
 */
@media (max-width: 600px) {
  .ratewatch-root {
    overflow-x: hidden !important;
    max-width: 100%;
    min-width: 0;
    padding: 12px 12px 14px;
  }
  .fm-hero.ratewatch-bn-has-widget > .ratewatch-root,
  .fth-bn.ratewatch-bn-has-widget .fth-bn-art > .ratewatch-root {
    min-height: 0;
    overflow-x: hidden !important;
  }
  .rw-c {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }
  .rw-c-gaugewrap {
    width: min(220px, calc(100% - 16px)) !important;
    max-width: calc(100% - 16px) !important;
    flex: 0 0 auto !important;
    margin: 0 auto;
    align-self: center;
  }
  .rw-c-gaugewrap .rw-c-center {
    padding: 10px 6px;
  }
  .rw-c-big { font-size: clamp(28px, 11vw, 42px) !important; }
  .rw-c-k { font-size: 11px; }
  .rw-c-lab { font-size: 13px; }
  .rw-c-delta { font-size: 12px; margin-top: 4px; }
  .rw-c-legend {
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 2px;
    box-sizing: border-box;
  }
  .rw-c-row {
    font-size: 15px !important;
    gap: 8px;
    line-height: 1.25;
  }
  .rw-c-row .sw { flex: 0 0 auto; }
  .rw-c-jan {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
  }
  .rw-stage {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .rw-chrome, .rw-meta, .rw-foot {
    max-width: 100%;
    min-width: 0;
  }
  .rw-foot {
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .rw-asof, .rw-feed, .rw-target, .rw-countdown {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* 1.0.8 Share on X */
.rw-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #0b0820;
  background: linear-gradient(135deg, #7dffd4 0%, #4fd2ff 55%, #ff4fd8 140%);
  box-shadow: 0 0 14px rgba(125,255,212,0.35);
  white-space: nowrap;
  flex: 0 0 auto;
}
.rw-share:hover, .rw-share:focus {
  filter: brightness(1.08);
  outline: none;
  color: #0b0820;
}
.rw-warsh { margin-left: 0; }
.rw-meta .rw-share { order: 3; }
@media (max-width: 480px) {
  .rw-share { padding: 4px 8px; font-size: 10px; }
}


/* ==========================================================================
 * 1.0.10 — container queries for nestable Columns / Group / block widths.
 * .ratewatch-wrap is the named container. Viewport @media rules above remain
 * as fallbacks (hub banner layout ≤849px stays viewport-based).
 * ========================================================================== */
.ratewatch-wrap {
  container-type: inline-size;
  container-name: ratewatch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
}
.wp-block-fattail-ratewatch {
  max-width: 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.wp-block-fattail-ratewatch .ratewatch-wrap,
.wp-block-fattail-ratewatch .ratewatch-root {
  max-width: 100%;
  min-width: 0;
}
.ratewatch-wrap > .ratewatch-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* Narrow column / block (~720cqw): compact chrome + meetings */
@container ratewatch (max-width: 720px) {
  .ratewatch-root { min-height: 260px; padding: 10px 12px; }
  .rw-kicker { font-size: clamp(24px, 8cqw, 32px); }
  .rw-chrome { gap: 0; }
  .rw-a { flex-direction: column; gap: 8px; }
  .rw-a-gauge { width: 160px; height: 160px; }
  .rw-a-dom { font-size: 36px; }
  .rw-a-v { font-size: 26px; }
  .rw-a-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .rw-b-node { width: 92px; }
  .rw-mtab { min-width: 62px; padding: 6px 9px; }
  .rw-mtab-lab { font-size: 10px; }
  .rw-mtab-pct { font-size: 12px; }
  .rw-b-ringwrap { width: 72px; height: 72px; }
}

/* Stack Variant C when the *column* is narrow (≤600cqw), not only the viewport */
@container ratewatch (max-width: 600px) {
  .ratewatch-root {
    overflow-x: hidden !important;
    max-width: 100%;
    min-width: 0;
    padding: 12px 12px 14px;
  }
  .rw-c {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }
  /* Reading order: past FIRST when stacked */
  .rw-c > .rw-history { order: -1; width: 100%; }
  .rw-c > .rw-c-present { order: 1; width: 100%; flex-direction: column !important; align-items: center !important; }
  .rw-c > .rw-c-range { order: 2; width: 100%; max-width: 100%; flex: none; }
  .rw-c-gaugewrap {
    width: min(220px, calc(100% - 16px)) !important;
    max-width: calc(100% - 16px) !important;
    flex: 0 0 auto !important;
    margin: 0 auto;
    align-self: center;
  }
  .rw-c-gaugewrap .rw-c-center { padding: 10px 6px; }
  .rw-c-big { font-size: clamp(28px, 11cqw, 42px) !important; }
  .rw-c-k { font-size: 11px; }
  .rw-c-lab { font-size: 13px; }
  .rw-c-delta { font-size: 12px; margin-top: 4px; }
  .rw-c-legend {
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0 2px;
    box-sizing: border-box;
  }
  .rw-c-row { font-size: 15px !important; gap: 8px; line-height: 1.25; }
  .rw-c-row .sw { flex: 0 0 auto; }
  .rw-c-jan { font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .rw-stage { min-width: 0; max-width: 100%; overflow: hidden; }
  .rw-chrome, .rw-meta, .rw-foot { max-width: 100%; min-width: 0; }
  .rw-foot { flex-wrap: wrap; gap: 4px 10px; }
  .rw-asof, .rw-feed, .rw-target, .rw-countdown {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@container ratewatch (max-width: 480px) {
  .rw-share { padding: 4px 8px; font-size: 10px; }
}


/* ==========================================================================
 * 1.0.11 — FedWatch-style low/mid/high range baseline + reserved slots
 * Reading order (Coach): past LEFT / first when stacked; present+future RIGHT.
 * Design for the size occupied: composed layouts per width band, no hollow stretch.
 * ========================================================================== */

/* Meeting-tab second line / badge slot (empty until differentiator) */
.rw-mtab-slot {
  display: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--rw-mute);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.rw-mtab-slot:not(:empty):not([hidden]) {
  display: block;
}

/* Reserved decision-history slot — past. Hidden in 1.0.11 (no data yet). */
.rw-history[hidden] {
  display: none !important;
}
.rw-history:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}
.rw-history-inner {
  width: 100%;
  min-height: 0;
}

/* Present cluster: gauge + outcomes */
.rw-c-present {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

/* Range baseline panel */
.rw-c-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 220px;
  max-width: 380px;
  box-sizing: border-box;
}
.rw-range-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.rw-range-card {
  padding: 8px 8px 7px;
  border-radius: 10px;
  border: 1px solid rgba(125,255,212,0.22);
  background: rgba(0,0,0,0.28);
  min-width: 0;
}
.rw-range-k {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rw-mute);
}
.rw-range-v {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.rw-range-p {
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
  text-shadow: 0 0 8px currentColor;
}
/* Card accent colors come from .rw-cut/.rw-hold/.rw-hike (steps vs current target). */
.rw-range-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  padding: 2px 0 0;
}
.rw-range-barcol {
  flex: 1 1 0;
  min-width: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
}
.rw-range-bar {
  width: 100%;
  min-width: 4px;
  border-radius: 3px 3px 1px 1px;
  opacity: 0.9;
  flex: 0 0 auto;
}
.rw-range-barcol.is-current .rw-range-bar {
  outline: 1px solid rgba(244,247,255,0.55);
  outline-offset: 1px;
}
.rw-range-bar.rw-hike { background: var(--rw-hike); box-shadow: 0 0 8px rgba(255,79,216,0.45); }
.rw-range-bar.rw-hold { background: var(--rw-hold); box-shadow: 0 0 8px rgba(125,255,212,0.35); }
.rw-range-bar.rw-cut { background: var(--rw-cut); box-shadow: 0 0 8px rgba(79,210,255,0.4); }
.rw-range-barlab {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rw-mute);
  text-align: center;
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 1.1em;
}
.rw-range-barlab.rw-barlab-empty { visibility: hidden; }
.rw-range-barcol.is-key .rw-range-barlab { color: rgba(244,247,255,0.78); }
.rw-range-layer[hidden] { display: none !important; }

/* Panel titles: move vs cumulative level */
.rw-panel-title,
.rw-range-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rw-mute);
}
.rw-panel-sub,
.rw-range-sub {
  font-size: 10px;
  font-weight: 600;
  color: rgba(244,247,255,0.48);
  margin-top: 1px;
  margin-bottom: 6px;
  line-height: 1.25;
}
.rw-c-present {
  flex-direction: column;
  align-items: stretch;
}
.rw-c-present-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.rw-range-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(125,255,212,0.28);
  background: rgba(0,0,0,0.32);
  margin-bottom: 2px;
}
.rw-range-hl-lab {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rw-mute);
  width: 100%;
}
.rw-range-hl-v {
  font-size: clamp(18px, 3.2cqw, 26px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 12px currentColor;
}
.rw-range-hl-p {
  font-size: clamp(16px, 2.8cqw, 22px);
  font-weight: 900;
  text-shadow: 0 0 10px currentColor;
}
.rw-range-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--rw-mute);
}
.rw-range-legend .rw-leg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rw-range-legend .sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
}
.rw-range-legend .rw-cut .sw { background: var(--rw-cut); box-shadow: 0 0 6px rgba(79,210,255,0.5); }
.rw-range-legend .rw-hold .sw { background: var(--rw-hold); box-shadow: 0 0 6px rgba(125,255,212,0.45); }
.rw-range-legend .rw-hike .sw { background: var(--rw-hike); box-shadow: 0 0 6px rgba(255,79,216,0.5); }


/* ---- Base Variant C row: history (if any) | present | range ---- */
.rw-c {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.rw-c > .rw-history { order: 0; flex: 0 0 auto; } /* past — left */
.rw-c > .rw-c-present { order: 1; }
.rw-c > .rw-c-range { order: 2; } /* future / outer ranges — right */
.rw-c-gaugewrap {
  width: min(240px, 42%);
  flex: 0 0 auto;
}
.rw-c-legend {
  flex: 1 1 auto;
  min-width: 0;
}

/* Wide (≥900cqw): compose three zones across; no hollow right.
 * History reserved on the LEFT. When history still hidden, present+range share the row. */

/* Explicit column placement so hidden history cannot steal a track */
.rw-c > .rw-history { grid-column: 1; }
.rw-c > .rw-c-present { grid-column: auto; }
.rw-c > .rw-c-range { grid-column: auto; }
@container ratewatch (min-width: 601px) {
  /* History hidden: present col1, range col2 */
  .rw-c:not(:has(.rw-history:not([hidden]))) > .rw-c-present { grid-column: 1; }
  .rw-c:not(:has(.rw-history:not([hidden]))) > .rw-c-range { grid-column: 2; }
  /* History shown: hist 1, present 2, range 3 */
  .rw-c:has(.rw-history:not([hidden])) > .rw-history { grid-column: 1; }
  .rw-c:has(.rw-history:not([hidden])) > .rw-c-present { grid-column: 2; }
  .rw-c:has(.rw-history:not([hidden])) > .rw-c-range { grid-column: 3; }
}

@container ratewatch (min-width: 900px) {
  .rw-c {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important;
    grid-template-rows: auto !important;
    align-items: stretch; /* kill hollow under shorter range column */
    gap: 14px 18px;
    justify-content: stretch;
  }
  /* When history is shown: past | present | range — history LEFT */
  .rw-c:has(.rw-history:not([hidden])) {
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.15fr) minmax(260px, 0.85fr) !important;
  }
  .rw-c > .rw-history { order: 0; width: 100%; max-width: none; }
  .rw-c > .rw-c-present {
    order: 1;
    width: 100%;
    gap: 14px;
    align-self: center;
  }
  .rw-c > .rw-c-range {
    order: 2;
    width: 100%;
    max-width: none;
    flex: none;
    height: 100%;
    justify-content: space-between;
    padding: 2px 0;
  }
  .rw-c-gaugewrap {
    width: min(240px, 46%);
  }
  .rw-range-trio { gap: 8px; flex: 0 0 auto; }
  .rw-range-v { font-size: 14px; }
  .rw-range-bars {
    height: auto;
    flex: 1 1 auto;
    min-height: 72px;
    max-height: 140px;
  }
  .rw-range-barlab { font-size: 9px; }
  .rw-range-hl-v { font-size: 24px; }
  .rw-range-hl-p { font-size: 20px; }
  /* Future: set data-rw-history-view="line" on .rw-history-inner for wide */
  .rw-history:not([hidden]) .rw-history-inner {
    min-height: 160px;
  }
}

/* Medium (~520–899cqw): two-zone compose; history left if shown, else present|range */
@container ratewatch (min-width: 601px) and (max-width: 899px) {
  .rw-c {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.9fr) !important;
    grid-template-rows: auto !important;
    align-items: center;
    gap: 12px 14px;
  }
  .rw-c:has(.rw-history:not([hidden])) {
    grid-template-columns: minmax(100px, 0.65fr) minmax(0, 1.1fr) minmax(200px, 0.85fr) !important;
  }
  .rw-c > .rw-history { order: 0; }
  .rw-c > .rw-c-present { order: 1; width: 100%; }
  .rw-c > .rw-c-range {
    order: 2;
    width: 100%;
    max-width: none;
    flex: none;
  }
  .rw-c-gaugewrap { width: min(200px, 46%); }
  .rw-c-big { font-size: clamp(28px, 6cqw, 40px) !important; }
  .rw-range-v { font-size: 12px; }
  .rw-range-bars { height: 56px; }
  .rw-range-barlab { font-size: 8px; }
  /* Intended history view at medium: bars (hook) */
  .rw-history:not([hidden]) .rw-history-inner {
    min-height: 120px;
  }
}

/* Narrow (≤520cqw): stack — history FIRST, then present, then range. Phone timeline strip later. */
@container ratewatch (max-width: 520px) {
  .rw-c {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    height: auto !important;
  }
  .rw-c > .rw-history {
    order: -1; /* FIRST when stacked */
    width: 100%;
  }
  .rw-c > .rw-c-present {
    order: 1;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    gap: 8px;
  }
  .rw-c-present-body {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px;
  }
  /* Outer meetings: cumulative level reads first on phone (FedWatch-style headline). */
  .rw-c.rw-c-outer > .rw-c-range { order: 0; }
  .rw-c.rw-c-outer > .rw-c-present { order: 1; }
  .rw-c.rw-c-outer > .rw-history { order: -1; }
  .rw-c > .rw-c-range {
    order: 2;
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .rw-c-gaugewrap {
    width: min(200px, calc(100% - 16px)) !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 auto;
  }
  .rw-c-legend {
    width: 100% !important;
    flex: none !important;
  }
  .rw-range-trio { gap: 5px; }
  .rw-range-v { font-size: 11px; }
  .rw-range-p { font-size: 11px; }
  .rw-range-bars { height: 28px; }
  /* Intended history view on phone: timeline strip (hook) */
  .rw-history:not([hidden]) .rw-history-inner {
    min-height: 56px;
    max-height: 72px;
  }
}

/* Keep older ≤600 stack rules from fighting the new present/range grid:
   present already stacks its own gauge/legend inside the narrow band above. */
@container ratewatch (max-width: 600px) {
  .rw-c-present {
    flex-direction: column !important;
    align-items: center !important;
  }
}

/* When range panel omitted (<3 buckets / near meeting), present spans full row */
@container ratewatch (min-width: 601px) {
  .rw-c:not(:has(.rw-c-range)) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .rw-c:not(:has(.rw-c-range)) > .rw-c-present { grid-column: 1 / -1; }
  .rw-c:has(.rw-history:not([hidden])):not(:has(.rw-c-range)) {
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1fr) !important;
  }
}
