/* ============================================================
   Tools hub (/tools/)

   Every card shows the tool's own output; the description lives
   behind the "i" in the card head. The whole card is the link,
   so no card carries a call to action of its own.

   Tokens follow the blog's palette. Scoped under .wt.
   ============================================================ */

.wt {
  --wt-white: #FFFFFF;
  --wt-card: #F7F8FA;
  --wt-page: #F2F3F5;
  --wt-ink: #1A1A2E;
  --wt-body: #555555;
  --wt-desc: #777777;
  --wt-muted: #888888;
  --wt-caption: #999999;
  --wt-disabled: #BBBBBB;
  --wt-line: #EEEEEE;
  --wt-line2: #E0E0E0;
  --wt-green: #2BB577;
  --wt-green-text: #168454;
  --wt-teal: #3ECFA5;
  --wt-pink: #E84FAD;
  --wt-purple: #9B59B6;
  --wt-purple-text: #7E4A96;
  --wt-up: #2BB577;
  --wt-down: #8A8F98;
  --wt-sipbg: #F0FAF5;
  --wt-grad: linear-gradient(90deg, #E84FAD 0%, #9B59B6 35%, #3ECFA5 70%, #2BB577 100%);
  --wt-r-sm: 8px;
  --wt-r-md: 12px;
  --wt-r-lg: 16px;
  --wt-ui: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wt-fig: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wt-maxw: 1280px;

  display: block;
  font-family: var(--wt-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--wt-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 16px;

  /* Colour on a white ground: four very low-alpha brand washes, no dark fill. */
  background:
    radial-gradient(680px 460px at 4% 1%, rgba(232, 79, 173, .07), transparent 62%),
    radial-gradient(760px 520px at 96% 6%, rgba(43, 181, 119, .08), transparent 60%),
    radial-gradient(620px 520px at 48% 52%, rgba(155, 89, 182, .05), transparent 66%),
    radial-gradient(560px 420px at 84% 94%, rgba(62, 207, 165, .06), transparent 64%),
    var(--wt-white);
}

/* ============================================================
   ROTATING BRAND-GRADIENT BORDER
   Marks the few elements that matter most. @property makes the
   angle animatable; without it the border is simply static.
   ============================================================ */
@property --wt-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes wt-spin { to { --wt-ang: 360deg; } }

.wt-glow {
  position: relative;
  padding: 2px;
  border-radius: 14px;
  background: conic-gradient(from var(--wt-ang),
    #E84FAD 0deg, #9B59B6 90deg, #3ECFA5 190deg, #2BB577 270deg, #E84FAD 360deg);
  animation: wt-spin 7s linear infinite;
}

.wt-glow > * { border-radius: 12px; }
.wt-glow > .wt-tool { height: 100%; }

/* The rotating border replaces the card's own gradient rule. */
.wt-glow .wt-feature::before { display: none; }

.wt *,
.wt *::before,
.wt *::after { box-sizing: border-box; }

.wt h1,
.wt h2,
.wt h3,
.wt h4 {
  font-family: var(--wt-ui);
  color: var(--wt-ink);
  letter-spacing: -.028em;
  margin: 0;
}

.wt p { margin: 0; }
.wt ul { margin: 0; padding: 0; list-style: none; }

/* Neutralise the site-wide link colours and underlines inside the hub. */
.wt a,
.wt a:hover,
.wt a:focus,
.wt a:active,
.wt a:visited { color: inherit; text-decoration: none; }

.wt :focus-visible { outline: 2px solid var(--wt-green); outline-offset: 3px; border-radius: 6px; }
.wt ::selection { background: rgba(43, 181, 119, .18); }

.wt-num { font-variant-numeric: tabular-nums; }

.wt-wrap {
  max-width: var(--wt-maxw);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.wt-sec { padding-top: 34px; }
.wt-sec:first-child { padding-top: 30px; }

.wt-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.wt-sec-head h1,
.wt-sec-head h2 { font-size: 23px; font-weight: 800; line-height: 1.3; }

.wt-sec-head .wt-asof {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--wt-caption);
  white-space: nowrap;
}

.wt-grid { display: grid; gap: 16px; }
.wt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wt-mt { margin-top: 16px; }
.wt-wide { width: 100%; }

.wt-seeall {
  font-size: 12px;
  font-weight: 700;
  color: var(--wt-green-text);
  white-space: nowrap;
}

.wt-seeall::after { content: " \2192"; }
.wt-seeall:hover { color: #229C66; }

/* ---- segmented toggle ---- */
.wt-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--wt-card);
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-sm);
  position: relative;
  z-index: 2;
}

.wt-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--wt-desc);
  padding: 6px 12px;
  border-radius: 6px;
  line-height: 1;
  transition: background .15s, color .15s;
}

.wt-toggle button:hover { color: var(--wt-ink); }
.wt-toggle button.on { background: var(--wt-white); color: var(--wt-ink); box-shadow: 0 1px 2px rgba(15, 16, 32, .1); }
.wt-tool-head .wt-toggle { margin-left: auto; }

/* ============================================================
   TICKER
   ============================================================ */
.wt-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--wt-line);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  margin-bottom: 4px;
}

.wt-ticker-rail {
  display: flex;
  gap: 26px;
  width: max-content;
  padding: 10px 0;
  animation: wt-marquee 62s linear infinite;
}

@keyframes wt-marquee { to { transform: translateX(-50%); } }
.wt-ticker:hover .wt-ticker-rail { animation-play-state: paused; }

.wt-ticker-rail a { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.wt-ticker-rail b { font-size: 11.5px; font-weight: 700; color: var(--wt-ink); }
.wt-ticker-rail span { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wt-ticker-rail a:hover b { color: var(--wt-green-text); }

/* ============================================================
   MARKET PULSE — the whole first fold
   ============================================================ */
.wt-pulse {
  display: grid;
  grid-template-columns: 200px 200px minmax(0, 1fr);
  gap: 0;
  background: var(--wt-white);
  border-radius: 12px;
  overflow: hidden;
}

.wt-dial {
  display: block;
  padding: 18px 20px 16px;
  border-right: 1px solid var(--wt-line);
  text-align: center;
  transition: background .18s;
}

.wt-dial:hover { background: var(--wt-card); }
.wt-dial .wt-label { text-align: left; }
.wt-dial-svg { height: 84px; margin: 6px auto 0; max-width: 152px; }
.wt-dial-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.wt-dial-svg path { stroke: var(--wt-white); stroke-width: 4; stroke-linejoin: round; }

.wt-dial-read {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.wt-dial-read strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--wt-ink);
  line-height: 1;
}

.wt-bench { padding: 18px 20px 16px; min-width: 0; }

.wt-bench-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wt-bench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 26px; }

.wt-bench-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px auto;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-bench-row:hover > span { color: var(--wt-green-text); }
.wt-bench-row > span { font-size: 12.5px; color: var(--wt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-bench-row .wt-spark { width: 66px; height: 26px; }
.wt-bench-row > div { text-align: right; }
.wt-bench-row strong { display: block; font-size: 14px; font-weight: 700; color: var(--wt-ink); letter-spacing: -.02em; }
.wt-bench-row b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   INDEX HEATMAP TABLE
   ============================================================ */
.wt-heattable-wrap {
  overflow-x: auto;
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-md);
  background: var(--wt-white);
}

.wt-heattable { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.wt-heattable caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.wt-heattable thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--wt-caption);
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--wt-line);
  white-space: nowrap;
}

.wt-heattable thead th:first-child { text-align: left; }

.wt-heattable tbody th {
  text-align: left;
  font-weight: 600;
  padding: 0 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--wt-line);
}

.wt-heattable tbody th a { display: block; padding: 11px 0; color: var(--wt-ink); }
.wt-heattable tbody tr:hover th a { color: var(--wt-green-text); }
.wt-heattable tbody tr:last-child th,
.wt-heattable tbody tr:last-child td { border-bottom: 0; }

.wt-heattable td {
  text-align: right;
  padding: 11px 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--wt-white);
  white-space: nowrap;
}

/* ============================================================
   INDEX HEATMAP
   ============================================================ */
.wt-heatgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 6px;
}

.wt-heatcell {
  display: block;
  padding: 13px 14px;
  border-radius: var(--wt-r-sm);
  min-width: 0;
  transition: transform .12s;
}

.wt-heatcell:hover { transform: translateY(-2px); }

.wt-heatcell > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .85;
}

.wt-heatcell > strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}

/* Green for gains, grey for losses: the brand does not use red. */
.wt-heatcell.u3, .wt-heat .u3, .wt-heattable td.u3 { background: #2BB577; color: #0B2A1D; }
.wt-heatcell.u2, .wt-heat .u2, .wt-heattable td.u2 { background: #9FDFC0; color: #17402D; }
.wt-heatcell.u1, .wt-heat .u1, .wt-heattable td.u1 { background: #DCF0E6; color: #2F5744; }
.wt-heatcell.hz, .wt-heat .hz, .wt-heattable td.hz { background: #EFF1F4; color: #5C626C; }
.wt-heatcell.d1, .wt-heat .d1, .wt-heattable td.d1 { background: #E4E6EA; color: #555B65; }
.wt-heatcell.d2, .wt-heat .d2, .wt-heattable td.d2 { background: #C9CDD4; color: #3C424B; }
.wt-heatcell.d3, .wt-heat .d3, .wt-heattable td.d3 { background: #A6ACB6; color: #23282F; }

/* ============================================================
   TOOL CARD SHELL
   ============================================================ */
.wt-tool {
  position: relative;
  background: var(--wt-card);
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-md);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .18s, background .18s;
  /* The whole card is the link, so the pointer is the only affordance it needs. */
  cursor: pointer;
}

.wt-tool:hover { border-color: #B7CEBF; background: var(--wt-white); }

/* Controls inside a card keep their own cursor. */
.wt-tool input,
.wt-tool button,
.wt-tool summary { cursor: pointer; }

/* The card title's link is stretched across the whole card, which is why no
   card needs a call to action. Anything interactive sits above it on z-index. */
.wt-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* The interactive bits sit above the stretched link. Note .wt-info itself must
   stay static: making it a positioning context would anchor the 24px summary,
   not the card head, and the panel below would collapse to nothing. */
.wt-sip-ctl { position: relative; z-index: 2; }

.wt-tool-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px 21px 0;
  min-height: 42px;
}

.wt-tool-ic { color: var(--wt-green-text); display: flex; flex-shrink: 0; }

.wt-tool-ic svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wt-tool.a-purple .wt-tool-ic { color: var(--wt-purple); }
.wt-tool.a-pink .wt-tool-ic { color: #BD358B; }

.wt-tool h3 { font-size: 16px; font-weight: 700; }

.wt-meta {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .7px;
  color: var(--wt-caption);
  white-space: nowrap;
  text-transform: uppercase;
}


.wt-tool-body { padding: 16px 21px 20px; flex: 1; }

/* ---- the "i" disclosure: every description lives here ----
   It sits directly after the title on every card, whether or not the head also
   carries a meta label or a toggle, so the icon is always in the same place. */
.wt-info { flex-shrink: 0; line-height: 1; }

.wt-info summary {
  display: grid;
  place-items: center;
  list-style: none;
  width: 24px;
  height: 24px;
  color: #8C9199;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 12px;
  cursor: help;
  border-radius: 50%;
  position: relative;
  z-index: 3;
}

.wt-info summary::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.wt-info summary::-webkit-details-marker { display: none; }
.wt-info summary:hover,
.wt-info[open] summary { color: var(--wt-green-text); background: #E5F5ED; }

/* Anchored to .wt-tool-head, which is the nearest positioned ancestor. */
.wt-info-body {
  position: absolute;
  top: calc(100% + 9px);
  left: 14px;
  right: 14px;
  z-index: 6;
  max-width: none;
  overflow-wrap: anywhere;
  padding: 14px 16px;
  border: 1px solid var(--wt-line2);
  border-radius: var(--wt-r-sm);
  background: var(--wt-white);
  color: var(--wt-body);
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 16px 40px rgba(15, 16, 32, .14);
}

/* ============================================================
   HALF GAUGE (regime, fear and greed)
   ============================================================ */
.wt-gauge { position: relative; margin: 2px auto 0; max-width: 262px; }
.wt-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.wt-gauge path { stroke: var(--wt-white); stroke-width: 4; stroke-linejoin: round; }

.wt .wt-needle-line {
  stroke: var(--wt-ink);
  stroke-width: 7;
  stroke-linecap: round;
  transform-origin: 160px 155px;
}

.wt .wt-pivot { fill: var(--wt-white); stroke: var(--wt-ink); stroke-width: 7; }
.wt .wt-pivot-core { fill: var(--wt-ink); stroke: none; }

.wt-gauge-read { text-align: center; margin-top: -14px; }

.wt-gauge-read strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--wt-ink);
  line-height: 1.1;
}

.wt-gauge-read span { display: block; font-size: 11px; color: var(--wt-caption); margin-top: 3px; }

.wt-gauge-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wt-gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: .3px;
  color: var(--wt-caption);
  text-transform: uppercase;
}

.wt-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.wt-badge.green { background: #E5F5ED; color: var(--wt-green-text); }
.wt-badge.purple { background: #F0E8F5; color: var(--wt-purple-text); }
.wt-badge.amber { background: #FBF3E0; color: #96701A; }
.wt-badge.red { background: #FBEAE8; color: #B0392E; }
.wt-badge.gray { background: #EDEEF1; color: #5C626C; }

.wt-label {
  display: block;
  color: var(--wt-caption);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wt-axis {
  display: flex;
  justify-content: space-between;
  color: var(--wt-caption);
  font-size: 11px;
  margin-top: 8px;
}

.wt-note { font-size: 11.5px; color: var(--wt-caption); margin-top: 14px; line-height: 1.6; }

.wt-trend { margin-top: 18px; }
.wt-trend .wt-label { margin-bottom: 7px; }
.wt-trend svg { display: block; width: 100%; height: 46px; }

/* ---- value table (macro) ---- */
.wt-vtable > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-vtable > div:last-child { border-bottom: 0; padding-bottom: 0; }
.wt-vtable > div > span { font-size: 14px; color: var(--wt-ink); }
.wt-vtable small { font-size: 10px; margin-left: 8px; color: var(--wt-caption); }

.wt-vtable strong {
  font-family: var(--wt-fig);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wt-ink);
  letter-spacing: -.03em;
  white-space: nowrap;
}

/* ---- index strip ---- */
.wt-indices { margin-top: 16px; background: var(--wt-white); }
.wt-indices .wt-tool-body { padding: 14px 0 20px; }
.wt-indices-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wt-index { padding: 0 21px; border-right: 1px solid var(--wt-line); min-width: 0; }
.wt-index:last-child { border-right: 0; }
.wt-index > span { font-size: 12px; color: var(--wt-desc); }

.wt-index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0;
}

.wt-index strong {
  font-family: var(--wt-fig);
  font-size: 21px;
  font-weight: 700;
  color: var(--wt-ink);
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.wt-spark { width: 75px; height: 32px; flex: none; }
.wt-index > b { font-family: var(--wt-fig); font-size: 12px; font-weight: 700; }
.wt-index small { font-family: var(--wt-ui); font-weight: 400; margin-left: 7px; color: var(--wt-caption); font-size: 10px; }

.wt-up { color: var(--wt-green-text); }
.wt-down { color: var(--wt-down); }
.wt-flat { color: var(--wt-caption); }

/* ---- heatmap ---- */
.wt-heat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.wt-heat > div { padding: 11px 7px; border-radius: 5px; min-width: 0; }

.wt-heat span {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-heat strong {
  font-family: var(--wt-fig);
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.wt-heat .h4 { background: var(--wt-green); color: #0E2A1F; }
.wt-heat .h3 { background: #B8E8CF; color: #1F4E37; }
.wt-heat .h2 { background: #D9EEE3; color: #345C47; }
.wt-heat .h1 { background: #E7E9ED; color: #5C626C; }

/* ---- bar rows ---- */
.wt-bars { display: flex; flex-direction: column; gap: 17px; padding-bottom: 4px; }

.wt-bar {
  display: grid;
  grid-template-columns: 91px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.wt-bar > span {
  color: var(--wt-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-bar b {
  font-family: var(--wt-fig);
  text-align: right;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wt-track { height: 8px; background: #E9EBEE; border-radius: 2px; }
.wt-track > i { height: 100%; display: block; background: var(--wt-green); border-radius: 2px; }
.wt-track > i.neg { background: #A1A5AF; }

/* ---- data table ---- */
.wt-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.wt-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wt-table th,
.wt-table td { text-align: right; padding: 11px 0; border-bottom: 1px solid var(--wt-line); }
.wt-table thead th { font-size: 10px; color: var(--wt-caption); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; padding: 5px 0; }
.wt-table th:first-child { text-align: left; }
.wt-table tbody th { color: var(--wt-ink); font-weight: 700; }
.wt-table tbody td { font-family: var(--wt-fig); font-variant-numeric: tabular-nums; }
.wt-table tbody tr:last-child > * { border-bottom: 0; }

/* ---- mini dashboard preview ---- */
.wt-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.wt-mini > div {
  background: var(--wt-white);
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  padding: 11px;
}

.wt-tool:hover .wt-mini > div { background: var(--wt-card); }
.wt-mini > div > span { font-size: 11px; color: var(--wt-desc); }

.wt-cols { height: 76px; display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.wt-cols i { flex: 1; background: #C4A9D5; border-radius: 2px 2px 0 0; }
.wt-cols i:nth-child(3n) { background: var(--wt-purple); }

.wt-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding-top: 18px; }
.wt-dots i { height: 15px; border-radius: 2px; background: #E2D6EA; }
.wt-dots i:nth-child(3n) { background: #BFDFCE; }

/* ============================================================
   MARKET TRACKER — factor columns
   ============================================================ */
.wt-factor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.wt-factor-col { min-width: 0; }
.wt-factor-col .wt-label { margin-bottom: 9px; }

.wt-stocklist li { border-top: 1px solid var(--wt-line); }
.wt-stocklist li:first-child { border-top: 0; }

.wt-stocklist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "sym ret" "name ret";
  align-items: center;
  column-gap: 8px;
  padding: 9px 0;
}

.wt-stocklist a:hover b { color: var(--wt-green-text); }
.wt-stocklist b { grid-area: sym; font-size: 12.5px; font-weight: 700; color: var(--wt-ink); }

.wt-stocklist em {
  grid-area: name;
  font-style: normal;
  font-size: 10.5px;
  color: var(--wt-caption);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-stocklist span {
  grid-area: ret;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wt-stockempty { font-size: 11.5px; color: var(--wt-caption); padding: 9px 0; }

/* ============================================================
   MARKET DASHBOARDS — ranked rows
   ============================================================ */
.wt-dashrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 52px 52px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-dashrow:last-child { border-bottom: 0; }
.wt-dashrow:hover strong { color: var(--wt-green-text); }
.wt-dashname { min-width: 0; }
.wt-dashname strong { display: block; font-size: 13px; font-weight: 700; color: var(--wt-ink); }

.wt-stage {
  display: inline-block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--wt-purple-text);
  background: #F2EAF7;
  padding: 2px 6px;
  border-radius: 4px;
}

.wt-dashspark { width: 90px; height: 34px; }
.wt-dashret { text-align: right; }
.wt-dashret b { display: block; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wt-dashret small { display: block; font-size: 9px; color: var(--wt-caption); margin-top: 2px; }

/* ============================================================
   MACRO TILES
   ============================================================ */
.wt-macro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }

.wt-macro-tile {
  display: block;
  background: var(--wt-white);
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-sm);
  padding: 14px 15px;
  min-width: 0;
  transition: border-color .15s;
}

.wt-macro-tile:hover { border-color: #B7CEBF; }

.wt-macro-tile > span {
  display: block;
  font-size: 11.5px;
  color: var(--wt-desc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wt-macro-tile > strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--wt-ink);
}

.wt-macro-tile > small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; }
.wt-macro-tile em { font-style: normal; color: var(--wt-caption); font-weight: 400; }

/* ============================================================
   PORTFOLIOS
   ============================================================ */
.wt-portgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }

.wt-port {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wt-card);
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-r-md);
  padding: 22px 20px 18px;
  min-width: 0;
  overflow: hidden;
  transition: border-color .18s, background .18s;
}

.wt-port::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--wt-grad);
}

.wt-port:hover { border-color: #B7CEBF; background: var(--wt-white); }

.wt-port-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--wt-green-text);
}

.wt-port > strong { display: block; margin-top: 7px; font-size: 16px; font-weight: 800; color: var(--wt-ink); }
.wt-port > p { margin-top: 7px; font-size: 12px; line-height: 1.55; color: var(--wt-desc); }

.wt-port-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.wt-port-cagr { font-size: 20px; font-weight: 800; color: var(--wt-green-text); letter-spacing: -.03em; }
.wt-port-cagr small { font-size: 9px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--wt-caption); margin-left: 6px; }
.wt-port-min { font-size: 11px; color: var(--wt-caption); white-space: nowrap; }

.wt-port-lock {
  font-size: 11px;
  font-weight: 600;
  color: var(--wt-purple-text);
  background: #F2EAF7;
  padding: 5px 9px;
  border-radius: 5px;
}

/* The premium tier is the brand's one dark component. */
.wt-port.pms { background: #0A1628; border-color: #0A1628; }
.wt-port.pms::before { background: linear-gradient(90deg, #7D5C1A 0%, #C4913A 20%, #F0C96A 45%, #FFE49A 55%, #C4913A 78%, #7D5C1A 100%); }
.wt-port.pms:hover { background: #0D1D33; border-color: #1B2E4A; }
.wt-port.pms .wt-port-kind { color: #F0C96A; }
.wt-port.pms > strong { color: #FFFFFF; }
.wt-port.pms > p { color: rgba(255, 255, 255, .55); }
.wt-port.pms .wt-port-cagr { color: #F0C96A; }
.wt-port.pms .wt-port-cagr small,
.wt-port.pms .wt-port-min { color: rgba(255, 255, 255, .45); }

/* ============================================================
   READ AND WATCH
   ============================================================ */
.wt-readrow {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-readrow:last-child { border-bottom: 0; }
.wt-readrow:hover strong { color: var(--wt-green-text); }

.wt-readrow img,
.wt-readph {
  width: 74px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  background: #E7E9ED;
  display: block;
}

.wt-readph.play { background: #E7E9ED url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238C9199'><path d='m9 7 9 5-9 5z'/></svg>") center / 22px no-repeat; }
.wt-readrow strong { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.45; color: var(--wt-ink); }
.wt-readrow small { display: block; margin-top: 4px; font-size: 10.5px; color: var(--wt-caption); }

/* ---- category rows ---- */
.wt-cats > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-cats > div:last-child { border-bottom: 0; }
.wt-cats i { height: 26px; width: 3px; flex: none; background: var(--wt-green); border-radius: 2px; }
.wt-cats i.purple { background: var(--wt-purple); }
.wt-cats i.pink { background: var(--wt-pink); }
.wt-cats strong { display: block; font-size: 13px; font-weight: 700; color: var(--wt-ink); }
.wt-cats small { display: block; font-size: 11px; color: var(--wt-caption); }
.wt-cats > div > span { margin-left: auto; font-family: var(--wt-fig); font-size: 12px; font-weight: 700; }

/* ============================================================
   PORTFOLIO REVIEW (equity and mutual fund)
   ============================================================ */
.wt-pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.wt-feature::before {
  content: "";
  position: absolute;
  inset: 0 8px auto;
  height: 3px;
  border-radius: var(--wt-r-md) var(--wt-r-md) 0 0;
  background: var(--wt-grad);
}

.wt-feature .wt-tool-head { padding-top: 23px; }

.wt-score {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wt-line);
}

.wt-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wt-ring > strong {
  width: 60px;
  height: 60px;
  background: var(--wt-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--wt-fig);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--wt-ink);
}

.wt-ring small { font-family: var(--wt-ui); font-size: 9px; color: var(--wt-caption); font-weight: 500; margin-top: 4px; }
.wt-score-txt > strong { display: block; font-size: 14px; color: var(--wt-ink); }
.wt-score-txt > span { font-size: 11.5px; display: block; color: var(--wt-caption); margin-top: 4px; }

.wt-checks { display: flex; flex-direction: column; gap: 0; padding-top: 4px; }

.wt-check {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--wt-line);
  font-size: 12.5px;
}

.wt-check:last-child { border-bottom: 0; }
.wt-check > span { color: var(--wt-desc); }
.wt-check > b { font-family: var(--wt-fig); font-size: 12.5px; font-weight: 700; color: var(--wt-ink); white-space: nowrap; }
.wt-check > b.warn { color: #B0392E; }

.wt-crash { margin-top: 14px; }
.wt-crash .wt-label { margin-bottom: 10px; }

.wt-crash-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  margin-bottom: 9px;
}

.wt-crash-row:last-child { margin-bottom: 0; }
.wt-crash-row > span { color: var(--wt-desc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-crash-row > div { height: 7px; background: #E9EBEE; border-radius: 2px; }
.wt-crash-row i { display: block; height: 100%; border-radius: 2px; background: #C98A83; }
.wt-crash-row > b { font-family: var(--wt-fig); font-size: 11.5px; font-weight: 700; text-align: right; color: var(--wt-ink); }

.wt-tilt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.wt-tilt span {
  font-size: 10.5px;
  padding: 4px 8px;
  background: var(--wt-white);
  border: 1px solid var(--wt-line2);
  border-radius: 5px;
  color: var(--wt-desc);
}

.wt-tilt span b { font-weight: 700; color: var(--wt-ink); margin-left: 5px; }
.wt-tool:hover .wt-tilt span { background: var(--wt-card); }

.wt-overlap { margin-top: 14px; }
.wt-overlap .wt-label { margin-bottom: 10px; }

.wt-venn { display: flex; align-items: center; gap: 12px; }

.wt-venn-svg { width: 104px; height: 60px; flex: none; }
.wt-venn-svg circle { fill-opacity: .3; stroke-width: 1.5; }
.wt-venn-txt { font-size: 11.5px; color: var(--wt-desc); line-height: 1.5; }
.wt-venn-txt b { display: block; font-family: var(--wt-fig); font-size: 18px; font-weight: 700; color: var(--wt-ink); }

.wt-side { display: grid; gap: 16px; align-content: start; }
.wt-side-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- calls to action ---- */
.wt-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  padding: 13px 26px;
  border-radius: var(--wt-r-sm);
  background: var(--wt-green);
  color: var(--wt-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--wt-green);
  transition: background .18s, border-color .18s;
}

.wt-cta:hover { background: #229C66; border-color: #229C66; color: var(--wt-white); }

.wt-cta.ghost {
  background: var(--wt-white);
  color: var(--wt-green-text);
  border-color: var(--wt-line2);
}

.wt-cta.ghost:hover { background: #EDF7F1; border-color: #B7CEBF; color: var(--wt-green-text); }

.wt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.wt-illus {
  font-size: 11px;
  color: var(--wt-caption);
  line-height: 1.6;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--wt-line2);
}

/* ============================================================
   SIP CALCULATOR (the one interactive control)
   ============================================================ */
.wt-sip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--wt-desc);
}

.wt-sip-row b { font-family: var(--wt-fig); font-size: 13px; font-weight: 700; color: var(--wt-ink); }

.wt-sip input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #E1E4E8;
  margin: 10px 0 16px;
  cursor: pointer;
}

.wt-sip input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wt-green);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(10, 22, 40, .28);
}

.wt-sip input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--wt-green);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(10, 22, 40, .28);
}

.wt-sip-out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: var(--wt-sipbg);
  overflow: hidden;
}

.wt-sip-out > div { padding: 10px 11px; border-right: 1px solid var(--wt-line); min-width: 0; }
.wt-sip-out > div:last-child { border-right: 0; }

.wt-sip-out span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--wt-caption);
}

.wt-sip-out b {
  display: block;
  margin-top: 5px;
  font-family: var(--wt-fig);
  font-size: 14px;
  font-weight: 700;
  color: var(--wt-ink);
  letter-spacing: -.03em;
}

.wt-sip-out b.gain { color: var(--wt-green-text); }

/* ---- risk profile dots ---- */
.wt-risk { display: flex; gap: 5px; margin-top: 4px; }

.wt-risk i {
  flex: 1;
  height: 26px;
  border-radius: 3px;
  background: #E7E9ED;
}

.wt-risk i.on { background: var(--wt-purple); }
.wt-risk i.on:nth-child(1) { background: #D7C0E4; }
.wt-risk i.on:nth-child(2) { background: #C2A0D6; }

/* ============================================================
   FOOTNOTE
   ============================================================ */
.wt-foot {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--wt-line);
  color: var(--wt-caption);
}

.wt-foot svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; }
.wt-foot p { font-size: 11.5px; line-height: 1.7; }
.wt-foot strong { color: var(--wt-body); font-weight: 700; margin-right: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wt-wrap { padding-left: 24px; padding-right: 24px; }
  .wt-factor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .wt-macro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-dashrow { grid-template-columns: minmax(0, 1fr) 62px 48px 48px; gap: 9px; }
  .wt-dashspark { width: 62px; }
  .wt-tool-head { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; gap: 7px; }
  .wt-tool-body { padding-left: 16px; padding-right: 16px; }
  .wt-tool h3 { font-size: 14px; }
  .wt-bar { grid-template-columns: 74px 1fr 46px; font-size: 11px; gap: 6px; }
  .wt-heat { grid-template-columns: repeat(2, 1fr); }
  .wt-index strong { font-size: 18px; }
  .wt-spark { width: 48px; }
  .wt-crash-row { grid-template-columns: 68px 1fr 44px; }
  .wt-side-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .wt-grid-2 { grid-template-columns: 1fr; }
  .wt-factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-heatgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .wt-sec-head { flex-wrap: wrap; }
  .wt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-grid-3 > .wt-tool:last-child { grid-column: 1 / -1; }
  .wt-indices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .wt-index:nth-child(2) { border-right: 0; }
  .wt-spark { width: 80px; }
  .wt-pf-grid { grid-template-columns: 1fr; }
  .wt-heat { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 540px) {
  .wt-wrap { padding-left: 18px; padding-right: 18px; }
  .wt-factor-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .wt-macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wt-macro-tile > strong { font-size: 19px; }
  .wt-heatgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-heatcell > strong { font-size: 15px; }
  .wt-portgrid { grid-template-columns: 1fr; }
  .wt-dashrow { grid-template-columns: minmax(0, 1fr) 46px 46px; }
  .wt-dashspark { display: none; }
  .wt-toggle button { padding: 6px 10px; font-size: 11px; }
  .wt-tool-head .wt-toggle { margin-left: 0; width: 100%; }
  .wt-sec-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wt-sec-head h1,
  .wt-sec-head h2 { font-size: 22px; }
  .wt-grid-3 { grid-template-columns: 1fr; }
  .wt-grid-3 > .wt-tool:last-child { grid-column: auto; }
  .wt-tool-head { padding: 19px 20px 0; column-gap: 6px; }
  .wt-tool-body { padding: 16px 20px 20px; }
  .wt-index { padding: 0 20px; }
  .wt-index-row { display: block; }
  .wt-index strong { font-size: 20px; }
  .wt-spark { display: none; }
  .wt-heat { grid-template-columns: repeat(2, 1fr); }
  .wt-side-3 { grid-template-columns: 1fr; }
  .wt-sip-out > div { padding: 10px; }
  .wt-sip-out b { font-size: 13px; }
}

@media (max-width: 960px) {
  .wt-pulse { grid-template-columns: 1fr 1fr; }
  .wt-bench { grid-column: 1 / -1; border-top: 1px solid var(--wt-line); }
  .wt-dial:nth-child(2) { border-right: 0; }
}

@media (max-width: 620px) {
  .wt-pulse { grid-template-columns: 1fr; }
  .wt-dial { border-right: 0; border-bottom: 1px solid var(--wt-line); }
  .wt-bench-grid { grid-template-columns: 1fr; }
  /* The sparkline is hidden this narrow, so drop its column with it. */
  .wt-bench-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wt-bench-row .wt-spark { display: none; }
  .wt-heattable { font-size: 11.5px; }
  .wt-heattable thead th,
  .wt-heattable td { padding: 9px 10px; }
  .wt-heattable tbody th { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .wt-glow { animation: none; }
  .wt-ticker-rail { animation: none; }
  .wt-tool,
}
