/* ==========================================================================
   1-STRATTON — terminal styled after bloomberg.jpg
   black field · green function keys · orange section bars · amber data
   ========================================================================== */

.term-root {
  --t-bg: #000000;
  --t-panel: #0a0a08;
  --t-orange: #ff9900;
  --t-orange-hi: #ffb52e;
  --t-amber: #ffb400;
  --t-white: #f2f2ea;
  --t-green: #2bd12b;
  --t-green-bright: #46ff46;
  --t-red: #ff3b30;
  --t-cyan: #35d0e0;
  --t-blue-news: #10104a;
  --t-dim: #8a8a72;
  --t-grid: #232318;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  background: var(--t-bg);
  color: var(--t-white);
  font-size: 13px;
  line-height: 1.45;
  display: flex; flex-direction: column;
  height: 100%;
  cursor: default;
}
.term-root ::selection { background: var(--t-orange); color: #000; }

/* -------- top chrome -------- */
.term-fkeys {
  flex: none;
  display: flex; gap: 3px;
  padding: 3px 4px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  flex-wrap: wrap;
}
.term-fkey {
  background: #1fd11f;
  color: #000;
  border: none;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  letter-spacing: .3px;
}
.term-fkey:hover { background: #5aff5a; }
.term-fkey.red { background: #e02020; color: #fff; }
.term-fkey.active { background: var(--t-orange); }

.term-cmdline {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  background: #030306;
  border-bottom: 1px solid #1c1c22;
  padding: 2px 10px;
  opacity: .8;
}
.term-cmdline .cl-tag { color: #a06000; font-weight: 700; font-size: 9.5px; }
.term-cmd-input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: #d9b64e;
  font-family: inherit; font-size: 11px;
  caret-color: #ffd75e;
  cursor: text;
  text-transform: uppercase;
}
.term-cmd-input::placeholder { color: #55552e; text-transform: none; }
.term-cmdline .cl-user { color: var(--t-dim); font-size: 9.5px; }
.term-cmdline .cl-user b { color: #c9992e; font-weight: 500;}

/* nav tabs — THE menu. big, obvious, numbered like the old terminals */
.term-nav {
  flex: none;
  display: flex;
  background: #0f0f09;
  border-bottom: 3px solid var(--t-orange);
  overflow-x: auto;
  padding: 0 4px;
}
.term-nav::-webkit-scrollbar { display: none; }
.term-tab {
  border: none; background: transparent;
  color: var(--t-orange-hi);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 11px 16px 9px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.term-tab .n { color: #8a8a72; font-weight: 400; font-size: 11.5px; }
.term-tab:hover { background: #1e1e10; color: #ffd75e; }
.term-tab.active { background: var(--t-orange); color: #000; }
.term-tab.active .n { color: #4a3000; }

/* -------- masthead / quote strip -------- */
.term-quote {
  flex: none;
  padding: 5px 10px 4px;
  border-bottom: 1px solid #26261c;
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 16px;
  background: #050505;
}
.tq-sym { color: var(--t-white); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.tq-sym .cc { color: var(--t-orange); }
.tq-px { color: var(--t-amber); font-weight: 700; font-size: 15px; }
.tq-chg.up { color: var(--t-green-bright); }
.tq-chg.dn { color: var(--t-red); }
.tq-kv { color: #a3a38c; font-size: 11.5px; }
.tq-kv b { color: var(--t-white); font-weight: 500; }
.tq-spark { height: 16px; width: 92px; align-self: center; }

/* -------- page area -------- */
.term-page {
  flex: 1;
  overflow-y: auto;
  padding: 10px 28px 30px;
  scrollbar-color: #444 #111;
}
/* document column — netnet-style flow, Bloomberg skin */
.term-page > * { max-width: 900px; margin-left: auto; margin-right: auto; }

/* serif lede under each page title */
.tlede {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #e9dcae;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #26261c;
  margin-bottom: 12px !important;
}

/* orange section bar — the signature element */
.tbar {
  background: var(--t-orange);
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 5px 12px;
  margin: 26px auto 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  letter-spacing: .4px;
}
.tbar:first-child { margin-top: 4px; }
.tbar .tbar-r { font-weight: 400; font-size: 10.5px; }
.tbar.red { background: var(--t-red); color: #fff; }
.tbar.dim { background: #3a3a30; color: var(--t-amber); }

/* demo banner */
.term-demo {
  border: 1px dashed #7a4a00;
  color: #d99b3e;
  background: #120a00;
  font-size: 10px;
  padding: 3px 10px;
  margin: 2px auto 0;
  letter-spacing: .4px;
}

/* data grids */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 4px 32px; padding: 0 2px; }
.trow {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px;
  padding: 5px 6px;
  border-bottom: 1px dotted #2b2b1e;
  font-size: 13px;
}
.trow .tk { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 12px; color: #c9c9b6; }
.trow .tk .idx { color: #8a8a72; font-family: "IBM Plex Mono", monospace; }
.trow .tv { color: var(--t-white); font-weight: 500; text-align: right; font-size: 13.5px; white-space: nowrap; }
.trow .tv.num { color: var(--t-amber); }
.trow .tv.up { color: var(--t-green-bright); }
.trow .tv.dn { color: var(--t-red); }
.trow .tv.box { background: var(--t-amber); color: #000; padding: 0 5px; font-weight: 700; }
.trow .tv.wbox { background: #d8d8cc; color: #000; padding: 0 5px; font-weight: 700; }

/* prose blocks — Verdana for reading, mono stays for data */
.tprose {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #e9e9dc;
  font-size: 13px;
  line-height: 1.62;
  padding: 4px 2px 8px;
}
.tprose p { margin: 8px 0; max-width: 76ch; }
.tprose b { color: #ffffff; }
.tprose .hi { color: #ffc233; }
.tprose .up { color: var(--t-green-bright); }
.tprose .dn { color: #ff6b60; }
.tprose .q {
  font-family: Georgia, serif;
  color: #8fd8e4;
  font-style: italic;
  font-size: 14.5px;
}
.tsmall {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #a09f88;
  font-size: 11px;
  line-height: 1.55;
  padding: 4px 2px 10px;
  max-width: 84ch;
}

/* panels side by side */
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 900px) { .tcols { grid-template-columns: 1fr; } }

/* chart */
.tchart-wrap { padding: 4px 2px 2px; }
.tchart { width: 100%; height: 215px; display: block; background: #030303; border: 1px solid #1c1c14; }
.tchart-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11.5px; color: #b9b9a4; padding: 6px 4px; }
.tchart-legend .sw { display: inline-block; width: 9px; height: 9px; margin-right: 5px; vertical-align: -1px; }

/* composition bar */
.tcomp { display: flex; height: 22px; border: 1px solid #333; max-width: 900px; margin: 8px auto 4px; }
.tcomp .seg { height: 100%; }
.tcomp-legend { display: flex; flex-wrap: wrap; gap: 5px 20px; font-size: 11.5px; color: #c5c5b6; padding: 4px 2px 8px; font-family: Verdana, Geneva, sans-serif; }
.tcomp-legend .sw { display: inline-block; width: 9px; height: 9px; margin-right: 5px; }

/* program cards */
.tprog {
  border: 1px solid #2b2b1c;
  background: #0a0a07;
  padding: 11px 16px;
  margin: 9px auto;
}
.tprog .tp-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.tprog .tp-name { color: var(--t-orange-hi); font-weight: 700; font-size: 14.5px; letter-spacing: .3px; }
.tprog .tp-pay { color: var(--t-green-bright); font-size: 11.5px; white-space: nowrap; }
.tprog .tp-desc { font-family: Verdana, Geneva, sans-serif; color: #ddddd0; font-size: 12.5px; line-height: 1.55; margin-top: 5px; max-width: 76ch; }
.tprog .tp-note { color: #979784; font-size: 11px; margin-top: 4px; font-style: italic; font-family: Georgia, serif; }

/* flywheel */
.tfly { display: flex; flex-wrap: wrap; gap: 7px 9px; align-items: center; padding: 10px 4px 12px; font-size: 13px; }
.tfly .fnode { border: 1px solid var(--t-orange); color: var(--t-orange-hi); padding: 5px 13px; }
.tfly .farr { color: var(--t-green-bright); font-size: 14px; }
.tfly .fback { font-family: Verdana, Geneva, sans-serif; color: #a09f88; font-size: 11.5px; line-height: 1.5; width: 100%; padding: 6px 4px 0; max-width: 76ch; }

/* fake action buttons (informational — always "demo") */
.tbtn-row { display: flex; gap: 8px; padding: 8px 2px 10px; flex-wrap: wrap; }
.tbtn {
  background: #262626; color: var(--t-amber);
  border: 1px solid #4a4a3a;
  font-family: inherit; font-size: 12px;
  font-weight: 600;
  padding: 7px 18px;
}
.tbtn:hover { background: var(--t-orange); color: #000; border-color: var(--t-orange); }
.tbtn.primary { background: var(--t-orange); color: #000; font-weight: 700; border-color: var(--t-orange); }
.tbtn.primary:hover { background: var(--t-orange-hi); }

/* -------- news ticker + footer -------- */
.term-news {
  flex: none;
  background: var(--t-blue-news);
  border-top: 1px solid #2e2e7a;
  color: var(--t-orange-hi);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  padding: 3px 0;
  position: relative;
}
.term-news .tn-track {
  display: inline-block;
  padding-left: 100%;
  animation: newsscroll 210s linear infinite;
}
.term-news .tn-track span { margin-right: 64px; }
.term-news .tn-track .tn-num { color: #8ab4ff; }
.term-news .tn-track .tn-t { color: #d9d9ff; }
@keyframes newsscroll { to { transform: translateX(-100%); } }

.term-footer {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  background: #0fae4a;
  color: #001406;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  letter-spacing: .2px;
}
.term-footer .tf-r { font-weight: 400; font-size: 10.5px; }

/* news page list */
.tnews-row { display: flex; gap: 12px; padding: 5px 6px; border-bottom: 1px dotted #26263a; font-size: 13px; line-height: 1.4; }
.tnews-row .nn-num { color: #8ab4ff; min-width: 30px; }
.tnews-row .nn-time { color: var(--t-dim); min-width: 44px; }
.tnews-row .nn-head { color: var(--t-orange-hi); }
.tnews-row .nn-head:hover { color: #fff; }
.tnews-row .nn-src { color: var(--t-dim); margin-left: auto; font-size: 10.5px; white-space: nowrap; }

/* dividend calculator */
.tcalc { border: 1px solid #2b2b1c; background: #0a0a07; padding: 12px 16px; margin: 8px auto; }
.tcalc input[type=range] { width: 100%; accent-color: var(--t-orange); cursor: pointer; }
.tcalc .tc-read { display: flex; justify-content: space-between; font-size: 12px; color: #b9b9a4; padding: 4px 0; font-family: Verdana, Geneva, sans-serif; }
.tcalc .tc-out { color: var(--t-green-bright); font-size: 16.5px; font-weight: 700; padding-top: 4px; }
.tcalc .tc-out small { color: #a09f88; font-weight: 400; font-size: 10.5px; font-family: Verdana, Geneva, sans-serif; }

/* ==========================================================================
   v3 — netnet-mirrored chrome: turbo strip, masthead, desk box, stats, tables
   ========================================================================== */
.term-turbo {
  flex: none;
  background: #1a1206;
  color: var(--t-orange-hi);
  font-size: 10px; letter-spacing: 2px; font-weight: 700;
  text-align: center;
  padding: 2px 8px;
  border-bottom: 1px solid #2a2013;
}
.term-mast {
  flex: none;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px 22px;
  padding: 8px 14px 7px;
  background: #050505;
  border-bottom: 1px solid #26261c;
}
.tm-brand { display: flex; flex-direction: column; gap: 1px; min-width: 300px; }
.tm-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; font-weight: 700;
  color: var(--t-white);
  letter-spacing: .3px;
}
.tm-sub { color: var(--t-orange-hi); font-size: 9.5px; letter-spacing: 1.1px; }
.tm-addr { color: #6a6a55; font-size: 9.5px; }
.tm-stats { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; margin-left: auto; }
.tm-stat { display: flex; flex-direction: column; }
.tm-k { color: #8a8a72; font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase; }
.tm-v { color: var(--t-amber); font-size: 16.5px; font-weight: 700; }
.tm-v.up { color: var(--t-green-bright); }
.tm-s { color: #8a8a72; font-size: 9.8px; }

.term-connect {
  margin-left: auto;
  align-self: center;
  background: transparent;
  border: 1px solid var(--t-orange);
  color: var(--t-orange-hi);
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  margin-right: 6px;
}
.term-connect:hover { background: var(--t-orange); color: #000; }

/* big stat blocks (Two Figures, Loop readout, Levy split, Destination) */
.tstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; padding: 2px 0 6px; }
.tstat { border: 1px solid #2b2b1c; background: #0a0a07; padding: 10px 14px; }
.tstat .ts-label { color: #b9b9a4; font-size: 11.5px; font-family: Verdana, Geneva, sans-serif; }
.tstat .ts-value { color: var(--t-amber); font-size: 22px; font-weight: 700; padding: 2px 0; }
.tstat .ts-sub { color: #8a8a72; font-size: 10.5px; font-family: Verdana, Geneva, sans-serif; }

/* data tables (bond routes, composition, sleeve, activity, suite) */
.ttable-wrap { overflow-x: auto; margin: 4px auto 8px; }
.ttable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ttable th {
  background: #1c1c10;
  color: var(--t-orange-hi);
  text-align: left;
  font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid #2b2b1c;
  white-space: nowrap;
}
.ttable td {
  padding: 6px 10px;
  border: 1px solid #22221a;
  color: #e0e0d2;
  vertical-align: top;
}
.ttable td:nth-child(n+2) { white-space: nowrap; }
.ttable tr:nth-child(odd) td { background: #070705; }
.ttable .up { color: var(--t-green-bright); }
.ttable .tbtn { padding: 3px 12px; font-size: 11px; }

/* sub-descriptions under row labels + table cells */
.tsub {
  display: block;
  font-style: normal;
  font-family: Verdana, Geneva, sans-serif;
  color: #8f8f78;
  font-size: 10.5px;
  line-height: 1.45;
  max-width: 52ch;
  white-space: normal;
  font-weight: 400;
}
.trow { align-items: flex-start; }
.trow .tk { max-width: 70%; }

/* the buy/bond desk box */
.tdesk { border: 1px solid #2b2b1c; background: #0a0a07; margin: 4px auto 10px; max-width: 900px; }
.tdesk-tabs { display: flex; border-bottom: 1px solid #2b2b1c; }
.td-tab {
  flex: 1;
  padding: 8px 14px;
  color: #b9b9a4;
  font-size: 13px; font-weight: 700;
  background: #070705;
  border-right: 1px solid #2b2b1c;
}
.td-tab em { display: block; font-style: normal; font-weight: 400; font-size: 10.5px; color: #8a8a72; }
.td-tab.active { background: var(--t-orange); color: #000; }
.td-tab.active em { color: #4a3000; }
.tdesk-body { padding: 12px 16px; }
.td-amt {
  display: flex; align-items: baseline; gap: 10px;
  border: 1px solid #33331f; background: #050503;
  padding: 8px 12px;
}
.td-amt-label { color: #8a8a72; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; }
.td-amt-val { color: var(--t-white); font-size: 19px; font-weight: 700; flex: 1; text-align: right; }
.td-amt-cur { color: var(--t-amber); font-weight: 700; }
.td-recv { color: #b9b9a4; font-size: 12.5px; padding: 8px 2px 2px; font-family: Verdana, Geneva, sans-serif; }
.td-recv b { color: var(--t-white); }

/* flywheel nodes with sub-lines */
.tfly .fnode em {
  display: block; font-style: normal;
  color: #8f8f78; font-size: 9.8px; letter-spacing: 0;
  font-family: Verdana, Geneva, sans-serif;
  max-width: 200px;
}


/* ---------- phone: native app feel ---------- */
@media (max-width: 700px) {
  .term-root { font-size: 12.5px; }

  /* no marquee strip, no command line — chrome only where fingers go */
  .term-turbo { display: none; }
  .term-cmdline { display: none; }

  /* frameless fullscreen: no window chrome, just the 3 buttons floating */
  .w95-window.phone-full {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    box-shadow: none;
    min-width: 0;
    z-index: 6500 !important;
  }
  .w95-window.phone-full .w95-titlebar {
    position: absolute;
    top: 5px; right: 6px; left: auto;
    height: auto;
    background: transparent;
    padding: 0;
    z-index: 40;
  }
  .w95-window.phone-full .w95-titlebar .tb-icon,
  .w95-window.phone-full .w95-titlebar .tb-title { display: none; }
  .w95-window.phone-full .tb-btns { gap: 5px; }
  .w95-window.phone-full .tb-btn { width: 30px; height: 24px; font-size: 12px; }
  .w95-window.phone-full .w95-grip { display: none; }

  /* masthead: one tight header line + one stat line, room for the buttons */
  .term-mast { padding: 7px 108px 5px 12px; gap: 0; display: block; }
  .tm-brand { min-width: 0; }
  .tm-name { font-size: 15.5px; }
  .tm-sub, .tm-addr { display: none; }
  .tm-stats {
    margin-left: 0; margin-top: 3px;
    display: flex; flex-wrap: wrap;
    gap: 2px 14px;
  }
  .tm-stat { flex-direction: row; align-items: baseline; gap: 5px; }
  .tm-k, .tm-s { display: none; }
  .tm-stat:nth-child(3) .tm-s { display: inline; font-size: 9px; } /* keep 'Epoch N' */
  .tm-v { font-size: 12.5px; }
  .tq-spark { display: none; }
  .term-footer { display: none; }

  /* tabs: two fixed rows, equal width, big tap targets — nothing scrolls */
  .term-nav {
    display: flex; flex-wrap: wrap;
    overflow: visible;
    padding: 0;
  }
  .term-tab {
    flex: 1 1 33%;
    font-size: 12.5px;
    padding: 12px 2px 10px;
    text-align: center;
    border-right: 1px solid #1c1c12;
    margin-bottom: 0;
    border-bottom: 3px solid transparent;
  }
  .term-tab .n { display: none; }
  .term-connect {
    flex: 1 1 33%;
    margin: 0; border: none;
    border-left: 1px solid #1c1c12;
    background: #141408;
    font-size: 11px;
  }

  /* page scrolls smoothly and NEVER chains into the desktop behind it */
  .term-page {
    padding: 6px 12px 26px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .ttable-wrap { overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

  .tbar { font-size: 12px; padding: 6px 10px; margin-top: 18px; }
  .tlede { font-size: 14px; }
  .tprose { font-size: 12.5px; line-height: 1.6; }
  .tprose p { max-width: none; }
  .tgrid { grid-template-columns: 1fr; gap: 2px; }
  .trow { padding: 7px 4px; }
  .tstats { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tstat { padding: 9px 11px; }
  .tstat .ts-value { font-size: 17px; }
  .ttable { font-size: 11px; }
  .ttable th, .ttable td { padding: 6px 7px; }
  .tdesk-body { padding: 10px 12px; }
  .td-tab { padding: 10px 8px; }
  .tbtn { padding: 11px 16px; font-size: 12.5px; }
  .tbtn-row { gap: 8px; }
  .tbtn-row .tbtn { flex: 1; }
  .tsmall { font-size: 10.5px; }
  .tfly .fnode { padding: 7px 10px; font-size: 11.5px; }
  .term-footer { font-size: 8.5px; padding: 3px 8px; }
  .term-footer .tf-r { display: none; }
  .term-news { font-size: 11px; }
  .tcomp { height: 18px; }
}
