/* ================= KECA trade accounts =================
 * Harvested from archive/build_site.py.RETIRED-20260820, CSS string,
 * the 'Trade accounts' block (lines 448-481). Custom-property names have
 * been REMAPPED to the live site_nav token contract:
 *   --ink -> --paper   --ink-soft -> --paper-soft   --ink-muted/-faint -> --paper-muted
 *   --bg-soft -> --bg-step   --line-soft -> --line   --green-soft -> --green-bg
 * The retired names do not exist in site_nav/assets/css/site.css.
 * ====================================================== */
/* ------------------ Trade accounts ------------------ */
.trade-price[hidden], .trade-status[hidden], .trade-links[hidden],
.trade-account-panel[hidden], #trade-password-form[hidden] { display: none !important; }
.trade-price { margin: 24px 0 8px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg-step); }
.trade-price .tp-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--paper-muted); margin-bottom: 6px; }
.trade-price .tp-amount { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; color: var(--paper); }
.trade-price .tp-amount .tp-unit { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--paper-muted); }
.trade-price .tp-variants { list-style: none; margin: 14px 0 0; padding: 12px 0 0;
  border-top: 1px solid var(--line); }
.trade-price .tp-variants li { display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--paper-soft); padding: 4px 0; }
.trade-price .tp-variants li .v-price { font-weight: 600; white-space: nowrap; }
.trade-price .tp-note { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--paper-muted); }
.trade-price .tp-pending { font-size: 13px; color: var(--paper-muted); }
.trade-status { max-width: 720px; margin: 20px auto 0; padding: 14px 18px; border-radius: 8px;
  font-size: 14px; line-height: 1.6; border: 1px solid var(--line);
  background: var(--bg-step); color: var(--paper-soft); }
.trade-status.ok { background: var(--green-bg); border-color: #c7e6d3; color: var(--green); }
.trade-status.err { background: #fdecec; border-color: #f3c9c9; color: #a12020; }
.trade-links { max-width: 720px; margin: 18px auto 0; padding: 0 24px;
  text-align: center; font-size: 13px; color: var(--paper-muted); }
.trade-links a { text-decoration: underline; }
.trade-account-panel { max-width: 720px; margin: 8px auto 32px; padding: 0 24px; }
.trade-account-panel .tap-row { display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.trade-account-panel .tap-row .k { color: var(--paper-muted); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; }
.trade-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.trade-badge.approved { background: var(--green-bg); color: var(--green); }
.trade-badge.pending { background: #fff4e0; color: #9a6400; }

/* Unified designer / architect workspace. */
.trade-workspace-head { max-width: 820px; margin: 0 auto; text-align: center; }
.trade-workspace-head > p { margin: 16px auto 0; max-width: 650px; color: var(--paper-muted); font-size: 1rem; }
.trade-account-panel { max-width: 1240px; margin: 8px auto 48px; padding: 0 24px; }
.trade-account-summary {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 42px;
  padding: 28px 30px; border: 1px solid var(--line); background: var(--surface);
}
.trade-account-summary h2 { margin-top: 8px; font-size: clamp(1.15rem,2vw,1.5rem); }
.trade-account-summary #ta-help { margin: 12px 0 0; max-width: 650px; color: var(--paper-muted); font-size: .9rem; line-height: 1.65; }
.trade-account-facts .tap-row:first-child { padding-top: 0; }
.trade-account-facts .tap-row:last-child { border-bottom: 0; padding-bottom: 0; }
.trade-workspace-tools { margin-top: 46px; }
.trade-tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.trade-tools-heading h2 { margin-top: 7px; }
.trade-tools-heading > a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.trade-workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.trade-tool-card { min-height: 245px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .18s ease, color .18s ease; }
.trade-tool-card:nth-child(3n) { border-right: 0; }
.trade-tool-card:nth-last-child(-n+3) { border-bottom: 0; }
.trade-tool-card:hover, .trade-tool-card:focus-visible, .trade-tool-card.primary { background: var(--paper); color: #fff; outline: 0; }
.trade-tool-card small { display: block; opacity: .65; font-family: var(--head-font); font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; }
.trade-tool-card strong { display: block; margin-top: 17px; font-family: var(--head-font); font-size: .92rem; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.trade-tool-card span { display: block; margin-top: 10px; opacity: .72; font-size: .86rem; line-height: 1.55; }
.trade-tool-card b { display: block; margin-top: 24px; font-family: var(--head-font); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.trade-signedout-card { max-width: 720px; margin: 8px auto 60px; padding: 34px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.trade-signedout-card[hidden] { display: none !important; }
.trade-signedout-card h2 { margin-top: 9px; }
.trade-signedout-card p { max-width: 560px; margin: 13px auto 22px; color: var(--paper-muted); }
.trade-signedout-card .cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
html.trade-pending .trade-tool-card[data-approved-tool] { background: #f2eee7; color: var(--paper); }
html.trade-pending .trade-tool-card[data-approved-tool]::after { content: "Available after approval"; display: block; margin-top: 16px; color: #9a6400; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.trade-program-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.trade-program-toolkit { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 25px; border: 1px solid var(--line); background: var(--surface); }
.trade-program-toolkit > a { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); transition: background .18s ease, color .18s ease; }
.trade-program-toolkit > a:last-child { border-right: 0; }
.trade-program-toolkit > a:hover, .trade-program-toolkit > a:focus-visible { background: var(--paper); color: #fff; outline: 0; }
.trade-program-toolkit small { font-family: var(--head-font); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.trade-program-toolkit h2 { margin-top: 20px; color: inherit; font-size: 1.05rem; }
.trade-program-toolkit p { margin: 12px 0 24px; opacity: .74; line-height: 1.6; }
.trade-program-toolkit b { font-family: var(--head-font); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.trade-program-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-top: 0; }
.trade-program-benefits span { flex: 1 1 220px; padding: 13px 16px; border-right: 1px solid var(--line); text-align: center; font-size: .75rem; font-weight: 700; }
.trade-program-benefits span:last-child { border-right: 0; }

@media (max-width: 860px) {
  .trade-account-summary { grid-template-columns: 1fr; gap: 25px; }
  .trade-workspace-grid { grid-template-columns: 1fr 1fr; }
  .trade-tool-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .trade-tool-card:nth-child(2n) { border-right: 0; }
  .trade-tool-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .trade-tool-card:nth-last-child(-n+2) { border-bottom: 0; }
  .trade-program-toolkit { grid-template-columns: 1fr; }
  .trade-program-toolkit > a { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trade-program-toolkit > a:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
  .trade-account-panel { padding: 0 16px; }
  .trade-account-summary { padding: 23px 20px; }
  .trade-tools-heading { align-items: start; flex-direction: column; }
  .trade-workspace-grid { grid-template-columns: 1fr; }
  .trade-tool-card { min-height: 0; padding: 24px 22px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .trade-tool-card:last-child { border-bottom: 0 !important; }
  .trade-signedout-card { margin-left: 16px; margin-right: 16px; padding: 28px 20px; }
  .trade-signedout-card .btn { width: 100%; }
  .trade-program-hero-actions .btn { width: 100%; }
  .trade-program-toolkit > a { padding: 24px 22px; }
  .trade-program-benefits { display: block; }
  .trade-program-benefits span { display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .trade-program-benefits span:last-child { border-bottom: 0; }
}

/* Volume ladder under the trade price. Added 22 Aug 2026 with the tiered list. */
.tp-vol{display:flex;flex-wrap:wrap;gap:.75rem;margin:.5rem 0 0;
  font-size:.82rem;letter-spacing:.01em;opacity:.85}
.tp-vol span{white-space:nowrap}
.tp-vol b{font-weight:600}
