/* The public /trading-journal page.
 *
 * Sits on landing.css: shell, buttons, eyebrow and every colour token are the
 * marketing site's, so this reads as one site rather than a page bolted on.
 *
 * Colour carries no meaning on its own here. A status pill has its word inside
 * it, a positive figure is green AND carries its sign, a negative one is red
 * AND carries its sign, and the sold/held bar is labelled in words underneath.
 * Nothing glows.
 *
 * Every box property is logical — inline-start, inline-end — because Arabic
 * mirrors this page from the same stylesheet rather than from a second one.
 */

/* landing.css carries one radius, --radius. The product pages want three, and
 * declaring them here — on .lc, where every other token is declared — means
 * all four of them get the same corners rather than each inventing its own.
 * They are relative to --radius so a change there still moves the whole set. */
.lc {
  --radius-sm: calc(var(--radius) - 6px);
  --radius-md: calc(var(--radius) - 3px);
  --radius-lg: var(--radius);
}

.tp-main {
  padding-bottom: 0;
}

/* ---- shared section furniture ---------------------------------------- */

.tp-section {
  padding-block: clamp(56px, 6.5vw, 96px);
  border-top: .5px solid var(--border);
}

.tp-section.is-alt {
  background: var(--bg-deep, var(--surface));
}

/* The index in the margin, and the hairline under it. Decoration: the reading
   order is carried by the headings, and both are hidden from assistive tech. */
.tp-shell {
  position: relative;
}

.tp-index {
  position: absolute;
  inset-inline-start: -66px;
  top: 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  color: var(--text-muted);
}

.tp-index::after {
  content: "";
  position: absolute;
  inset-inline-start: 20px;
  top: 22px;
  height: 64px;
  width: 1px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}

@media (max-width: 1480px) {
  .tp-index { display: none; }
}

.tp-head {
  max-width: 62ch;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.tp-title {
  margin: 12px 0 0;
  font-size: clamp(27px, 3.4vw, 38px);
  font-weight: 730;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.tp-lead {
  margin: 14px 0 0;
  font-size: clamp(14.5px, 1.2vw, 15.5px);
  line-height: 1.68;
  color: var(--text-secondary);
}

.tp-foot-note {
  margin: 18px 0 0;
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.tp-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.tp-cta-inline {
  margin-top: 26px;
}

/* ---- the card every product visual sits in ---------------------------- */

.tp-widget {
  margin: 0;
  background: var(--surface);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 64px var(--shadow, rgba(0, 0, 0, .45));
}

.tp-section.is-alt .tp-widget {
  background: var(--surface-raised);
}

.tp-widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: .5px solid var(--border);
  background: var(--surface-raised);
}

.tp-section.is-alt .tp-widget-head {
  background: var(--surface);
}

.tp-widget-title {
  font-size: 12.5px;
  font-weight: 650;
}

.tp-widget-meta {
  font-size: 10.5px;
  font-weight: 650;
  color: var(--text-muted);
  border: .5px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px 9px;
}

/* Says out loud that none of these numbers belongs to anybody. */
.tp-demo {
  margin-inline-start: auto;
  /* It says the figures beside it are not real, which is the one thing on a
     widget nobody should have to squint at. */
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: .5px dashed var(--border-strong);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* ---- figures ---------------------------------------------------------- */

.tp-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.tp-num.pos { color: var(--green); }
.tp-num.neg { color: var(--red); }
.tp-num.warn { color: var(--amber); }
.tp-num.accent { color: var(--cyan); }

/* ---- pills and chips --------------------------------------------------- */

.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 999px;
  padding: 4px 10px;
  border: .5px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
}

.tp-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tp-pill.tone-cyan { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: var(--cyan-dim); }
.tp-pill.tone-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.tp-pill.tone-green { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }

.tp-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 620;
  border-radius: 999px;
  padding: 4px 10px;
  border: .5px solid var(--border-strong);
  color: var(--text-secondary);
  white-space: nowrap;
}

.tp-chip.tone-cyan { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: var(--cyan-dim); }
.tp-chip.tone-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.tp-chip.tone-green { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.tp-chip.tone-purple { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 45%, transparent); background: color-mix(in srgb, var(--purple) 12%, transparent); }
.tp-chip.tone-red { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }

.tp-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ---- a figure, its label, and what the spreadsheet had instead --------- */

.tp-kv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tp-kv-label {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-kv-value {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 690;
}

.tp-kv-was {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .tp-kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- how much of a position was sold ---------------------------------- */

.tp-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: .5px solid var(--border);
  background: var(--track);
}

.tp-bar i { display: block; }
.tp-bar .is-sold { background: color-mix(in srgb, var(--green) 58%, transparent); }
.tp-bar .is-held { background: color-mix(in srgb, var(--cyan) 55%, transparent); }

.tp-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- 01 · the chain ---------------------------------------------------- */

.tp-line {
  position: relative;
  margin-top: 8px;
}

.tp-line::before {
  content: "";
  position: absolute;
  inset-block: 16px 10px;
  inset-inline-start: 23px;
  width: 1.5px;
  opacity: .45;
  background: linear-gradient(180deg, transparent, var(--cyan) 5%, var(--cyan) 76%, transparent);
}

.tp-act {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 300px) minmax(0, 1fr);
  gap: 0 36px;
  padding-bottom: 70px;
}

.tp-act:last-child { padding-bottom: 0; }

.tp-node {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--cyan);
  background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 70%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--cyan) 8%, transparent);
}

.tp-section.is-alt .tp-node { background: var(--bg-deep, var(--surface)); }

.tp-say { padding-top: 3px; }

.tp-say h3 {
  margin: 9px 0 0;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 710;
  line-height: 1.2;
  letter-spacing: -.028em;
}

.tp-say p {
  margin: 11px 0 0;
  font-size: 13.5px;
  line-height: 1.64;
  color: var(--text-secondary);
}

.tp-kick {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* What the same trade looks like in a spreadsheet. Stated, not shouted. */
.tp-say .tp-was {
  margin-top: 15px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  border: .5px dashed color-mix(in srgb, var(--red) 40%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}

.tp-visual { min-width: 0; }

@media (max-width: 1100px) {
  .tp-act { grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; }
  .tp-line::before { inset-inline-start: 19px; }
  .tp-node { width: 40px; height: 40px; }
  .tp-visual { grid-column: 2; margin-top: 22px; }
}

/* The fills, as the venue sends them. */
.tp-tape-row {
  display: grid;
  grid-template-columns: 72px 46px minmax(0, 1fr) repeat(3, minmax(0, 1fr)) 64px;
  align-items: center;
  gap: 0 12px;
  padding: 7px 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.tp-tape-row + .tp-tape-row { border-top: .5px solid color-mix(in srgb, var(--border) 65%, transparent); }
.tp-tape-at { color: var(--text-muted); }
.tp-tape-sym b { font-weight: 600; color: var(--text); }
.tp-tape-n { text-align: end; }
.tp-tape-n.is-value { color: var(--text); font-weight: 600; }
.tp-tape-n.is-fee { color: var(--amber); }

.tp-side {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tp-side.is-buy { color: var(--green); }
.tp-side.is-sell { color: var(--red); }

.tp-tape-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 16px;
  border-top: .5px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}

.tp-tape-foot b { margin-inline-start: auto; color: var(--cyan); font-weight: 650; }

@media (max-width: 860px) {
  .tp-tape-row { grid-template-columns: 66px 42px minmax(0, 1fr) minmax(0, 1fr); }
  .tp-tape-row .tp-tape-n:nth-of-type(2),
  .tp-tape-row .tp-tape-n.is-fee { display: none; }
}

/* The one row the same morning became in a spreadsheet. */
.tp-with-scrap { position: relative; padding-bottom: 132px; }

.tp-scrap {
  position: absolute;
  inset-inline-end: -22px;
  bottom: 0;
  width: min(368px, 92%);
  rotate: -1.4deg;
  background: #fff;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
}

.tp-scrap-head {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 6px 10px;
  background: #f1f3f4;
  border-bottom: 1px solid #dadce0;
  font-size: 10.5px;
  font-weight: 700;
  color: #3c4043;
}

.tp-scrap-head span:last-child { margin-inline-start: auto; font-weight: 500; color: #80868b; }

.tp-scrap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.tp-scrap-table th,
.tp-scrap-table td {
  border: 1px solid #d9dde3;
  padding: 4px 8px;
  text-align: end;
  white-space: nowrap;
}

.tp-scrap-table th {
  background: #eff3f9;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5f6368;
  text-align: center;
}

.tp-scrap-table .is-key { background: #c9daf8; font-weight: 700; text-align: center; }
.tp-scrap-table .is-missing { background: #f4c7c3; color: #c5221f; font-weight: 700; text-align: center; }

.tp-scrap-note {
  margin: 0;
  padding: 6px 10px;
  background: #fff6f6;
  font-size: 10.5px;
  font-weight: 620;
  color: #c5221f;
}

@media (max-width: 640px) {
  .tp-with-scrap { padding-bottom: 0; }
  .tp-scrap { position: static; width: 100%; rotate: 0deg; margin-top: 16px; }
}

/* Nine lines drawn into one point. */
.tp-fold {
  display: block;
  width: 96px;
  height: 236px;
  color: var(--cyan);
  flex: none;
}

.tp-recon {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 860px) {
  .tp-recon { grid-template-columns: minmax(0, 1fr); }
  .tp-recon .tp-fold { display: none; }
}

/* The position those fills become. */
.tp-position {
  padding: 16px 18px;
  display: grid;
  gap: 13px;
}

.tp-position-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-position-head > b {
  font-size: 16px;
  font-weight: 720;
  letter-spacing: -.018em;
}

.tp-venue { font-size: 11px; color: var(--text-muted); }

.tp-position-pnl {
  margin-inline-start: auto;
  text-align: end;
}

.tp-position-pnl b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.026em; }
.tp-position-pnl span { display: block; font-size: 10.5px; color: var(--text-muted); }

/* ---- the Trades switchboard --------------------------------------------- */

.tp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tp-tab {
  font: inherit;
  font-size: 12px;
  font-weight: 640;
  padding: 6px 13px;
  border-radius: 999px;
  border: .5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .14s var(--ease), border-color .14s var(--ease), background .14s var(--ease);
}

.tp-tab:hover { color: var(--text-secondary); border-color: var(--border-strong); }

.tp-tab.is-on,
.tp-tab[aria-selected="true"] {
  color: var(--cyan);
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
  background: var(--cyan-dim);
}

.tp-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Before the script runs every panel is visible, so the page still answers
   the question with JavaScript off. */
.tp-panel[hidden] { display: none; }
.tp-switch:not([data-tp-ready]) .tp-panel + .tp-panel { margin-top: 22px; }

.tp-panel-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* A panel's table carries more columns than the evidence one, so it runs a
   little tighter — and scrolls sideways rather than truncating when it must. */
.tp-panel .tp-table th,
.tp-panel .tp-table td { padding: 9px 11px; font-size: 11.5px; }
.tp-panel .tp-table th:first-child,
.tp-panel .tp-table td:first-child { padding-inline-start: 16px; }
.tp-panel .tp-table th:last-child,
.tp-panel .tp-table td:last-child { padding-inline-end: 16px; }
/* Denser inside a panel, but not below the floor. */
.tp-panel .tp-table th { font-size: 10.5px; }

/* The Review drawer: two taps and Save. */
.tp-review { padding: 16px 18px 18px; display: grid; gap: 15px; }

.tp-field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-taps {
  margin-inline-start: auto;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .08em;
  color: var(--on-accent);
  background: var(--cyan);
  border-radius: 999px;
  padding: 3px 10px;
}

.tp-mindset {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tp-mind {
  padding: 9px 10px;
  border-radius: var(--radius-md);
  border: .5px solid var(--border);
  background: var(--surface-raised);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.tp-mind.is-on {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}

.tp-mind.is-on::after { content: " ✓"; }
.tp-mind.is-warn { color: var(--red); border-color: color-mix(in srgb, var(--red) 32%, transparent); }

@media (max-width: 860px) {
  .tp-mindset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tp-note-box {
  margin: 0;
  padding: 11px 13px;
  border: .5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.tp-review-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.tp-save {
  margin-inline-start: auto;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--on-accent);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* A month of the trading calendar. */
.tp-month {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 16px;
  padding: 16px;
}

.tp-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.tp-cal-pad { visibility: hidden; }

.tp-dow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.tp-day {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.45;
  padding: 6px 7px;
  border-radius: 9px;
  border: .5px solid var(--border);
  background: var(--surface-raised);
}

.tp-section.is-alt .tp-day { background: var(--surface); }

.tp-day-n { font-size: 9.5px; color: var(--text-muted); }
.tp-day-pnl { margin-top: auto; font-size: 11px; font-weight: 700; }

.tp-day.is-w { border-color: color-mix(in srgb, var(--green) 30%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tp-day.is-l { border-color: color-mix(in srgb, var(--red) 28%, transparent); background: color-mix(in srgb, var(--red) 11%, transparent); }

.tp-month-side {
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
}

.tp-month-side div {
  padding: 10px 12px;
  border: .5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.tp-section.is-alt .tp-month-side div { background: var(--surface); }

.tp-month-side dt {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-month-side dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.024em;
}

.tp-month-side dd.is-small { font-size: 13px; font-weight: 650; }

@media (max-width: 860px) {
  .tp-month { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the three states --------------------------------------------------- */

.tp-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tp-state {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px;
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tp-section.is-alt .tp-state { background: var(--surface-raised); }

.tp-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.tp-state-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 13px;
  border-top: .5px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}

.tp-state-figure b { margin-inline-start: auto; font-size: 15px; font-weight: 720; }

@media (max-width: 860px) {
  .tp-trio { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the journey chart -------------------------------------------------- */

.tp-chart { padding: 18px 18px 14px; color: var(--cyan); }

.tp-chart svg {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 240px);
  overflow: visible;
}

.tp-price { stroke: var(--cyan); stroke-width: 1.6; }
.tp-avg { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 5 5; opacity: .6; }
.tp-stem { stroke: currentColor; stroke-width: 1; opacity: .22; }
.tp-mark { stroke: var(--bg); stroke-width: 2; }
.tp-mark.is-buy { fill: var(--green); }
.tp-mark.is-sell { fill: var(--red); }

.tp-axis {
  position: relative;
  height: 16px;
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--text-muted);
}

.tp-axis span {
  position: absolute;
  translate: -50% 0;
  white-space: nowrap;
}

.tp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.tp-legend span { display: inline-flex; align-items: center; gap: 7px; }

.tp-legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.tp-legend .is-buy::before { background: var(--green); }
.tp-legend .is-sell::before { background: var(--red); }
.tp-legend .is-avg::before { background: var(--cyan); }

/* ---- the journey's figures ---------------------------------------------- */

.tp-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-figure {
  padding: 15px 18px;
  border-inline-start: .5px solid var(--border);
}

.tp-figure:nth-child(4n + 1) { border-inline-start: 0; }
.tp-figure:nth-child(n + 5) { border-top: .5px solid var(--border); }

.tp-figure > span {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-figure b { display: block; margin-top: 5px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

@media (max-width: 860px) {
  .tp-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-figure:nth-child(4n + 1) { border-inline-start: .5px solid var(--border); }
  .tp-figure:nth-child(odd) { border-inline-start: 0; }
  .tp-figure:nth-child(n + 3) { border-top: .5px solid var(--border); }
}

/* ---- two cards side by side --------------------------------------------- */

.tp-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.tp-two > .tp-widget { display: flex; flex-direction: column; }
.tp-two > .tp-widget > :last-child { flex: 1; }

@media (max-width: 860px) {
  .tp-two { grid-template-columns: minmax(0, 1fr); }
}

.tp-qty { margin: 0; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.tp-qty div { display: flex; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.tp-qty dt { flex: 1; }
.tp-qty dd { margin: 0; font-weight: 650; color: var(--text); }

.tp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tp-three > div {
  padding: 16px 18px;
  border-inline-start: .5px solid var(--border);
}

.tp-three > div:first-child { border-inline-start: 0; }

.tp-three > div > span {
  display: block;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-three b { display: block; margin-top: 6px; font-size: 20px; font-weight: 740; letter-spacing: -.028em; }
.tp-three small { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }

@media (max-width: 640px) {
  .tp-three { grid-template-columns: minmax(0, 1fr); }
  .tp-three > div { border-inline-start: 0; border-top: .5px solid var(--border); }
  .tp-three > div:first-child { border-top: 0; }
}

/* ---- the review rows ---------------------------------------------------- */

.tp-rows { padding: 4px 0; }

.tp-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.tp-row + .tp-row { border-top: .5px solid color-mix(in srgb, var(--border) 65%, transparent); }
.tp-row > b { margin-inline-start: auto; color: var(--text); font-weight: 650; }
.tp-row > .tp-chiprow,
.tp-row > .tp-seg { margin-inline-start: auto; }

.tp-row.is-notes { align-items: flex-start; flex-direction: column; gap: 7px; }
.tp-row.is-notes p { margin: 0; color: var(--text-secondary); line-height: 1.6; }

.tp-seg {
  display: inline-flex;
  border: .5px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
}

.tp-seg b,
.tp-seg i {
  padding: 4px 12px;
  font-style: normal;
}

.tp-seg b.is-on { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.tp-seg i { color: var(--text-muted); }

.tp-aside {
  align-self: center;
  padding-inline: 4px;
}

.tp-aside h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tp-aside p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.66; color: var(--text-secondary); }

.tp-srcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tp-src {
  font-size: 10.5px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  border: .5px solid var(--border-strong);
  color: var(--text-secondary);
}

/* ---- search and filters -------------------------------------------------- */

.tp-find { padding: 18px; display: grid; gap: 14px; }

.tp-qbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 18px;
  border: .5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13.5px;
  color: var(--text-muted);
}

.tp-answer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 14px;
  border-top: .5px solid var(--border);
}

.tp-answer dt {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-answer dd { margin: 5px 0 0; font-size: 18px; font-weight: 730; letter-spacing: -.024em; }

@media (max-width: 640px) {
  .tp-answer { grid-template-columns: minmax(0, 1fr); }
}

/* ---- tables --------------------------------------------------------------- */

.tp-scroll { overflow-x: auto; }

.tp-position + .tp-scroll { border-top: .5px solid var(--border); }

.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tp-table th,
.tp-table td {
  padding: 10px 18px;
  text-align: start;
  white-space: nowrap;
  border-bottom: .5px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.tp-table th {
  /* A column header names the figures under it, so it is read, not glanced
     at. 10.5px is the floor this sheet holds for copy of that kind. */
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-table th.num,
.tp-table td.num { text-align: end; }
.tp-table tr:last-child td { border-bottom: 0; }

/* ---- a transfer between two of your own accounts -------------------------- */

.tp-hop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  align-items: center;
  padding: 26px 18px;
}

.tp-hop-step { text-align: center; }
.tp-hop-step b { display: block; font-size: 15px; font-weight: 700; }
.tp-hop-step > span { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-muted); }
.tp-hop-arrow { display: grid; place-items: center; color: var(--cyan); }

/* ---- where the history comes from ----------------------------------------- */

.tp-venues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tp-venue-mark {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: .5px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--surface);
}

.tp-section.is-alt .tp-venue-mark { background: var(--surface-raised); }
.tp-venues .lc-more-link { margin-inline-start: 6px; }

.tp-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.tp-ways article {
  padding: 20px;
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tp-section.is-alt .tp-ways article { background: var(--surface-raised); }
.tp-ways h3 { margin: 13px 0 0; font-size: 15px; font-weight: 700; }
.tp-ways p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

.tp-way-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: .5px solid color-mix(in srgb, var(--cyan) 35%, transparent);
}

.tp-markets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.tp-markets b {
  font-weight: 650;
  color: var(--text);
  border: .5px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
}

@media (max-width: 860px) {
  .tp-ways { grid-template-columns: minmax(0, 1fr); }
}

/* ---- what is kept, said plainly -------------------------------------------- */

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

.tp-notes article { border-top: 2px solid var(--border-strong); padding-top: 16px; }
.tp-notes h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.tp-notes p { margin: 9px 0 0; font-size: 13px; line-height: 1.62; color: var(--text-secondary); }

@media (max-width: 860px) {
  .tp-notes { grid-template-columns: minmax(0, 1fr); }
}

/* ---- hero ------------------------------------------------------------------ */

.tp-hero {
  position: relative;
  padding-block: clamp(52px, 6vw, 86px) 0;
  overflow: hidden;
}

.tp-hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -340px;
  width: min(1100px, 130%);
  height: 700px;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
  pointer-events: none;
}

.tp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.tp-h1 {
  margin: 16px 0 0;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 740;
  line-height: 1.07;
  letter-spacing: -.042em;
}

.tp-hero-sub {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.66;
  color: var(--text-secondary);
}

.tp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tp-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.tp-rebuild {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 0 92px;
  align-items: center;
}

.tp-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.tp-feed li {
  display: grid;
  grid-template-columns: 54px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  border: .5px solid var(--border);
  background: var(--surface);
  font-size: 10.5px;
  color: var(--text-muted);
}

.tp-feed-qty { text-align: end; color: var(--text-secondary); font-weight: 600; white-space: nowrap; }

.tp-weave { position: relative; }

.tp-weave .tp-fold {
  position: absolute;
  inset-inline-start: -92px;
  top: 50%;
  translate: 0 -50%;
  width: 92px;
  height: 270px;
}

@media (max-width: 1100px) {
  .tp-hero-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .tp-rebuild { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tp-feed { display: none; }
  .tp-weave .tp-fold { display: none; }
}

.tp-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 72px);
  border-top: .5px solid var(--border);
}

.tp-rail-cell {
  padding: 22px 26px;
  border-inline-start: .5px solid var(--border);
}

.tp-rail-cell:first-child { border-inline-start: 0; padding-inline-start: 0; }

/* The KPI strip the Portfolio, Performance and Psychology pages open with.
   It had no rules at all until now and stacked as bare text; the three pages
   that use it all load this sheet, so it is defined once here. */
.tp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  border-top: .5px solid var(--border);
}

.tp-kpi {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 16px 18px;
  border-inline-start: .5px solid var(--border);
  border-top: .5px solid var(--border);
  margin-top: -.5px;
}

.tp-kpi-label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-kpi-value {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 730;
  letter-spacing: -.028em;
}

.tp-kpi-value.pos { color: var(--green); }
.tp-kpi-value.neg { color: var(--red); }
.tp-kpi-value.accent { color: var(--cyan); }

.tp-rail-cell > span {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-rail-cell b { display: block; margin-top: 6px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.034em; }
.tp-rail-cell p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }

@media (max-width: 860px) {
  .tp-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-rail-cell { padding: 18px; }
  .tp-rail-cell:first-child { padding-inline-start: 18px; }
  .tp-rail-cell:nth-child(odd) { border-inline-start: 0; }
  .tp-rail-cell:nth-child(n + 3) { border-top: .5px solid var(--border); }
}

/* ---- the close --------------------------------------------------------------- */

.tp-close {
  position: relative;
  border-top: .5px solid var(--border);
  padding-block: clamp(64px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}

.tp-close::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: -260px;
  width: min(900px, 130%);
  height: 520px;
  translate: -50% 0;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
  pointer-events: none;
}

.tp-close .lc-shell { position: relative; }
.tp-close .tp-lead { margin-inline: auto; max-width: 58ch; }
.tp-close .tp-hero-cta { justify-content: center; }

/* ---- the in-page menu ---------------------------------------------------- */

/* Sticky under the site header, so a sixteen-section page can be walked
   rather than scrolled. Every entry is a real anchor: with the script blocked
   the menu still works, it simply stops marking where the reader is. */
.tp-jump {
  position: sticky;
  top: 0;
  z-index: 40;
  border-block: .5px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
}

.tp-jump-in {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 9px;
}

.tp-jump-in::-webkit-scrollbar { display: none; }

.tp-jump a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 620;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .14s var(--ease), background .14s var(--ease);
}

.tp-jump a:hover { color: var(--text); }

.tp-jump a.is-here {
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* A section landed on from the menu clears the sticky bar. */
.tp-section { scroll-margin-top: 64px; }

/* ---- spreadsheet beside journal ------------------------------------------ */

.tp-vs th[scope="row"] {
  font-weight: 650;
  color: var(--text);
  white-space: normal;
  min-width: 13ch;
}

.tp-vs td { white-space: normal; }
.tp-vs .is-sheet { color: var(--text-muted); }
.tp-vs .is-us { color: var(--text); }

.tp-vs tbody tr:hover td,
.tp-vs tbody tr:hover th { background: color-mix(in srgb, var(--cyan) 4%, transparent); }

/* The two columns carry a hairline between them, so the eye reads across. */
.tp-vs .is-us { border-inline-start: .5px solid var(--border); }
.tp-vs thead th:last-child { border-inline-start: .5px solid var(--border); color: var(--cyan); }

/* ---- history coverage ---------------------------------------------------- */

.tp-cov th[scope="row"] { font-weight: 650; color: var(--text); }
.tp-cov .is-line { white-space: normal; color: var(--text-muted); min-width: 34ch; }

/* ---- bringing the file in ------------------------------------------------ */

.tp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.tp-steps li {
  position: relative;
  padding: 22px 20px 20px;
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.tp-section.is-alt .tp-steps li { background: var(--surface-raised); }

.tp-step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: .5px solid color-mix(in srgb, var(--cyan) 40%, transparent);
}

.tp-steps h3 { margin: 14px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.tp-steps p { margin: 9px 0 0; font-size: 13px; line-height: 1.62; color: var(--text-secondary); }

/* The file types step 2 accepts. The label is translated; the extensions are
   not — they are the same characters everywhere, so they stay LTR chips even
   on an Arabic page. */
.tp-formats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
}

.tp-formats-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tp-formats .tp-chip { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .tp-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---- what a mindset tag was worth ---------------------------------------- */

.tp-bars { padding: 14px 16px; display: grid; gap: 10px; }

.tp-bar-row {
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr) 9ch;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.tp-bar-name { color: var(--text-secondary); }

.tp-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.tp-bar-track i { display: block; height: 100%; border-radius: 999px; }
.tp-bar-track .is-pos { background: color-mix(in srgb, var(--green) 62%, transparent); }
.tp-bar-track .is-neg { background: color-mix(in srgb, var(--red) 62%, transparent); }
.tp-bar-row b { text-align: end; font-size: 12.5px; font-weight: 680; }

/* ---- the questions ------------------------------------------------------- */

.tp-faq {
  display: grid;
  gap: 10px;
  max-width: 88ch;
}

.tp-faq details {
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 2px 18px;
}

.tp-section.is-alt .tp-faq details { background: var(--surface-raised); }
.tp-faq details[open] { border-color: var(--border-strong); }

.tp-faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.tp-faq summary::-webkit-details-marker { display: none; }

/* The marker is drawn rather than typed, so it flips with the page. */
.tp-faq summary::after {
  content: "";
  margin-inline-start: auto;
  width: 9px;
  height: 9px;
  border-inline-end: 1.5px solid var(--text-muted);
  border-block-end: 1.5px solid var(--text-muted);
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate .16s var(--ease);
}

.tp-faq details[open] summary::after { rotate: -135deg; translate: 0 2px; }
.tp-faq p { margin: 0 0 17px; font-size: 13.5px; line-height: 1.68; color: var(--text-secondary); max-width: 78ch; }

/* ---- the four things that cannot happen ---------------------------------- */

.tp-guarantees {
  border-top: .5px solid var(--border);
  background: var(--surface);
  padding-block: clamp(40px, 5vw, 64px);
}

.tp-guarantees-title {
  margin: 0 0 22px;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 720;
  letter-spacing: -.028em;
}

.tp-guarantees ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-guarantees li {
  display: grid;
  gap: 6px;
  padding-inline-start: 34px;
  position: relative;
  font-size: 13px;
}

.tp-tick {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}

.tp-guarantees b { font-weight: 680; }
.tp-guarantees li span { color: var(--text-muted); line-height: 1.55; }
.tp-guarantees .lc-more-link { margin-top: 22px; display: inline-flex; }

@media (max-width: 860px) {
  .tp-guarantees ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tp-guarantees ul { grid-template-columns: minmax(0, 1fr); }
}
