/* Site theme -- the one colour system for every page (library pages and DCA Zones).
   Light is the default; theme.js stamps <html data-theme="light|dark"> before first paint
   from the saved choice or the OS setting. Pages style against these tokens only:
   add a colour here (both modes), never as a literal in a page. */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #f7f8fa;
  --bg-raise: #fbfbfc;
  --panel: #ffffff;
  --panel-2: #f4f5f7;
  --panel-3: #eceef2;
  --line: #e4e7ec;
  --line-2: #d5dae1;
  --line-3: #aab2bd;

  /* text */
  --ink: #0d1117;
  --ink-2: #39414b;
  --muted: #5f6873;
  --faint: #8b939e;
  --on-ink: #ffffff;
  --ink-hover: #2a313a;
  --focus: #3b6cf6;

  /* status */
  --up: #0a8a57;
  --down: #d63b3b;
  --warn: #b45309;
  --info: #2563eb;
  --up-soft: rgba(10, 138, 87, .06);
  --down-soft: rgba(214, 59, 59, .055);
  --warn-soft: rgba(217, 119, 6, .10);
  --info-soft: rgba(37, 99, 235, .08);
  --up-line: rgba(10, 138, 87, .28);
  --down-line: rgba(214, 59, 59, .28);
  --info-line: rgba(37, 99, 235, .3);
  --warn-line: rgba(217, 119, 6, .32);
  --star: #e0a800;

  /* DCA zones: fill + the text that sits on it */
  --z4: #a21cf0;  --on-z4: #ffffff;
  --z3: #4cd11f;  --on-z3: #0a0c0f;
  --z2: #0fa37b;  --on-z2: #ffffff;
  --z1: #2b3038;  --on-z1: #ffffff;
  --zlt: #f59e0b; --on-zlt: #0a0c0f;
  --zst: #ef3b36; --on-zst: #ffffff;
  --z1-badge: #eceef2; --on-z1-badge: #0d1117;
  --z4-soft: rgba(162, 28, 240, .07);
  --z4-line: rgba(162, 28, 240, .3);
  --z2-soft: rgba(15, 163, 123, .06);
  --candle-neutral: #1f242b;
  /* EMA overlay lines on the DCA chart (kept apart from the zone colours) */
  --ema-50: #2563eb; --ema-100: #db2777; --ema-200: #39414b;
  --candle-hollow: #ffffff;

  /* chrome */
  --topbar-bg: rgba(255, 255, 255, .86);
  --nav-mobile-bg: rgba(255, 255, 255, .96);
  --tip-bg: rgba(255, 255, 255, .98);
  --overlay: rgba(15, 20, 28, .32);
  --glass: rgba(255, 255, 255, .78);
  --shimmer: rgba(255, 255, 255, .7);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-pop: 0 10px 30px rgba(16, 24, 40, .12);
  --shadow-modal: 0 30px 80px rgba(16, 24, 40, .18);
  --shadow-seg: 0 1px 2px rgba(16, 24, 40, .12), 0 0 0 1px rgba(16, 24, 40, .04);
  --hero-bg: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  --code-bg: #0d1117; --code-ink: #e6edf3; --code-label: #7ee0b0; --code-line: #0d1117;
  --inverse-bg: #0d1117; --inverse-ink: #ffffff; --inverse-muted: #a3acb8;
  --inverse-pos: #5fe0a8; --inverse-neg: #ff9a96;

  /* charts: categorical slots in fixed order (validated palette), plus axes */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7;
  --s-other: #b4b2a9; --s-cash: #7d8a8e;
  --grid: #eceef2;
  --axis: #aab2bd;
  /* Market Atlas liquidity heatmap: empty -> thin -> heavy resting orders */
  --heat-bg: #ffffff; --heat-1: #dbe8fb; --heat-2: #7fb0ee; --heat-3: #f2b632;
  --heat-4: #e8541e; --heat-5: #9b1010;

  /* tags */
  --tag-nl-bg: #fff1e6; --tag-nl-ink: #9a4a0a;
  --tag-in-bg: #e8efff; --tag-in-ink: #28418f;

  /* type + shape */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --radius-sm: 8px;

  /* aliases used by the library pages (index, notes, journal, portfolio, calculator) */
  --paper: var(--bg);
  --green: var(--up);       --green-soft: var(--up-soft);   --green-line: var(--up-line);
  --red: var(--down);       --red-soft: var(--down-soft);   --red-line: var(--down-line);
  --amber: var(--warn);     --amber-soft: var(--warn-soft);
  --blue: var(--info);      --blue-soft: var(--info-soft);
  --on-accent: #ffffff;
  --font: var(--sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a0c0f;
  --bg-raise: #0e1115;
  --panel: #12161b;
  --panel-2: #171c22;
  --panel-3: #1d232b;
  --line: #222932;
  --line-2: #2c343f;
  --line-3: #3a4350;

  --ink: #eceef1;
  --ink-2: #b9c0ca;
  --muted: #8a93a0;
  --faint: #5d6672;
  --on-ink: #0a0c0f;
  --ink-hover: #ffffff;
  --focus: #7aa2ff;

  --up: #3ecf8e;
  --down: #f26d6d;
  --warn: #f5a524;
  --info: #7aa2ff;
  --up-soft: rgba(62, 207, 142, .12);
  --down-soft: rgba(242, 109, 109, .12);
  --warn-soft: rgba(245, 165, 36, .12);
  --info-soft: rgba(122, 162, 255, .08);
  --up-line: rgba(62, 207, 142, .35);
  --down-line: rgba(242, 109, 109, .45);
  --info-line: rgba(122, 162, 255, .35);
  --warn-line: rgba(245, 165, 36, .4);
  --star: #f5c542;

  --z4: #b26cff;  --on-z4: #ffffff;
  --z3: #7ee03c;  --on-z3: #0a0c0f;
  --z2: #1fb5c9;  --on-z2: #0a0c0f;
  --z1: #e5e7eb;  --on-z1: #0a0c0f;
  --zlt: #f59e0b; --on-zlt: #0a0c0f;
  --zst: #f05252; --on-zst: #ffffff;
  --z1-badge: #e5e7eb; --on-z1-badge: #0a0c0f;
  --z4-soft: rgba(178, 108, 255, .10);
  --z4-line: rgba(178, 108, 255, .35);
  --z2-soft: rgba(31, 181, 201, .06);
  --candle-neutral: #59616d;
  --ema-50: #60a5fa; --ema-100: #f472b6; --ema-200: #b9c0ca;
  --candle-hollow: rgba(229, 231, 235, .08);

  --topbar-bg: rgba(10, 12, 15, .82);
  --nav-mobile-bg: rgba(10, 12, 15, .95);
  --tip-bg: rgba(23, 28, 34, .97);
  --overlay: rgba(5, 6, 8, .62);
  --glass: rgba(18, 22, 27, .72);
  --shimmer: rgba(255, 255, 255, .045);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, .6);
  --shadow-seg: 0 1px 2px rgba(0, 0, 0, .4);
  --hero-bg: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  --code-bg: #0e1115; --code-ink: #dfe6ee; --code-label: #3ecf8e; --code-line: #222932;
  --inverse-bg: #1d232b; --inverse-ink: #eceef1; --inverse-muted: #8a93a0;
  --inverse-pos: #3ecf8e; --inverse-neg: #f26d6d;

  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9;
  --s-other: #5d6672; --s-cash: #8a93a0;
  --grid: #1d232b;
  --axis: #3a4350;
  --heat-bg: #070a0f; --heat-1: #10264a; --heat-2: #1f6fd1; --heat-3: #f2c230;
  --heat-4: #ff5a1f; --heat-5: #fff3d6;

  --tag-nl-bg: rgba(245, 165, 36, .14); --tag-nl-ink: #f5b45a;
  --tag-in-bg: rgba(122, 162, 255, .14); --tag-in-ink: #a9c1ff;

  --on-accent: #06120c;
}

body { background: var(--bg); color: var(--ink); }

/* ------------------------------------------------------- theme switch */

theme-toggle { display: inline-flex; flex: none; }
theme-toggle button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
theme-toggle button:hover { color: var(--ink); background: var(--panel-2); border-color: var(--line-2); }
theme-toggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
theme-toggle svg { width: 16px; height: 16px; }

/* One frame without transitions while the theme flips, so nothing fades mid-swap. */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* Pages without a top bar (sign-in) float the switch in the corner. */
.theme-float { position: fixed; top: 16px; right: 16px; z-index: 50; }
nav:has(> theme-toggle) { align-items: center; }

/* ------------------------------------------------------- site nav (site-nav.js) */
/* One header for every page. Classes are sn-* so page styles (.topbar, .brand, nav a)
   can't reach in; every property a page might set on a/button is set here. */

site-nav {
  display: block; position: sticky; top: 0; z-index: 60;
  background: var(--topbar-bg);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  font: 500 14px/1.2 var(--sans); color: var(--ink);
}
site-nav > a { display: none; } /* in-page links, until the element upgrades */
site-nav a { text-decoration: none; }
site-nav button { font: inherit; color: inherit; margin: 0; }
site-nav svg { flex: none; }
.sn-inner { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.sn-bar .sn-inner { height: 58px; }

.sn-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 500 16px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.sn-brand b { font-weight: 750; }
.sn-brand span { color: var(--ink-2); }
.sn-mark { width: 26px; height: 26px; }
.sn-brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

.sn-groups { display: flex; align-items: stretch; gap: 2px; height: 100%; margin: 0; padding: 0; }
.sn-group { position: relative; display: flex; align-items: center; }
.sn-top {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 11px;
  color: var(--muted); font: 600 14px/1 var(--sans); white-space: nowrap; transition: color .15s;
}
.sn-top:hover, .sn-group.open .sn-top, .sn-top[aria-current] { color: var(--ink); }
.sn-top[aria-current]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.sn-chev { width: 13px; height: 13px; opacity: .6; transition: transform .15s; }

.sn-menu {
  display: none; position: absolute; top: calc(100% - 6px); left: 0; min-width: 210px; padding: 6px; z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
}
.sn-menu-right { left: auto; right: 0; }
.sn-group.open .sn-menu, .sn-onpage.open .sn-menu, .sn-account.open .sn-menu { display: grid; }
@media (hover: hover) {
  .sn-group:hover .sn-menu, .sn-group:focus-within .sn-menu { display: grid; }
  .sn-group:hover .sn-chev { transform: rotate(180deg); }
}
.sn-menu a, .sn-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--ink-2); font: 500 14px/1.2 var(--sans); text-align: left; white-space: nowrap; cursor: pointer;
}
.sn-menu a:hover, .sn-menu button:hover { background: var(--panel-2); color: var(--ink); }
.sn-menu a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--panel-2); }
.sn-menu .sn-danger:hover { color: var(--down); background: var(--down-soft); }
.sn-lock { width: 12px; height: 12px; margin-left: auto; color: var(--faint); }
.sn-who { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sn-who b { color: var(--ink); font-weight: 650; }

.sn-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sn-search {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 11px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
}
.sn-search:hover { border-color: var(--line-2); background: var(--panel-2); color: var(--ink); }
.sn-search svg { width: 15px; height: 15px; }
.sn-search span { font-size: 13px; padding-right: 18px; }
.sn-search kbd { font: 600 11px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; background: var(--panel-2); }

.sn-account { position: relative; }
.sn-login {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font: 650 13px/1 var(--sans); white-space: nowrap;
}
.sn-login:hover { background: var(--ink-hover); }
.sn-avatar-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 3px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.sn-avatar-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.sn-avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 700 12px/1 var(--sans); }
.sn-name { font: 600 13px/1 var(--sans); max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.sn-account .sn-menu { top: calc(100% + 8px); }

.sn-sub { border-top: 1px solid var(--line); }
.sn-sub .sn-inner { gap: 12px; min-height: 42px; }
.sn-sub-links { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 0; margin: 0; }
.sn-sub-links::-webkit-scrollbar { display: none; }
.sn-sub-links a {
  flex: none; padding: 6px 12px; border-radius: 999px; color: var(--muted);
  font: 600 12.5px/1.2 var(--sans); letter-spacing: .01em; white-space: nowrap;
}
.sn-sub-links a:hover { color: var(--ink); background: var(--panel-2); }
.sn-sub-links a.active { color: var(--on-ink); background: var(--ink); }
.sn-onpage { position: relative; flex: none; }
.sn-onpage-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted); font: 600 12.5px/1.2 var(--sans); cursor: pointer; white-space: nowrap;
}
.sn-onpage-btn:hover { color: var(--ink); border-color: var(--line-2); }
.sn-onpage .sn-menu { top: calc(100% + 6px); max-height: 70vh; overflow-y: auto; }

.sn-icon { display: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); cursor: pointer; }
.sn-icon svg { width: 18px; height: 18px; }
.sn-drawer { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100dvh - 58px); overflow-y: auto; }
.sn-drawer[hidden] { display: none; }
.sn-drawer-inner { width: calc(100% - 32px); margin: 0 auto; padding: 8px 0 20px; }
.sn-drawer details { border-bottom: 1px solid var(--line); }
.sn-drawer summary { display: flex; align-items: center; gap: 8px; padding: 14px 2px; list-style: none; cursor: pointer; font: 650 15px/1.2 var(--sans); }
.sn-drawer summary::-webkit-details-marker { display: none; }
.sn-drawer summary .sn-lock { margin-left: 0; }
.sn-drawer summary .sn-chev { margin-left: auto; }
.sn-drawer details[open] summary .sn-chev { transform: rotate(180deg); }
.sn-drawer details a { display: block; padding: 10px 12px; margin: 0 0 2px; border-radius: var(--radius-sm); color: var(--ink-2); font: 500 15px/1.2 var(--sans); }
.sn-drawer details a[aria-current="page"] { background: var(--panel-2); color: var(--ink); font-weight: 650; }
.sn-drawer details[open] { padding-bottom: 10px; }
.sn-drawer-account { display: grid; gap: 6px; padding-top: 16px; }
.sn-drawer-account button { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); font: 600 14px var(--sans); text-align: left; cursor: pointer; }
.sn-drawer-account .sn-danger { color: var(--down); }
.sn-drawer-account .sn-who { border: 0; padding: 0 2px 4px; }
.sn-drawer-account .sn-login { justify-content: center; height: 42px; }
html.sn-locked { overflow: hidden; }

/* US | IN market pill next to the logo (shared by the US and India navs). */
.sn-market { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); flex: none; }
.sn-market a { font: 650 12px/1 var(--sans); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.sn-market a[href]:hover { color: var(--ink); background: var(--panel-2); }
.sn-market a[aria-current] { background: var(--ink); color: var(--on-ink); cursor: default; }
.sn-soon { margin-left: 6px; font: 600 10px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px; }
.sn-top.is-soon { color: var(--muted); }

@media (max-width: 1080px) {
  .sn-search span, .sn-search kbd { display: none; }
  .sn-search { width: 34px; padding: 0; justify-content: center; }
  .sn-name { display: none; }
}
@media (max-width: 900px) {
  .sn-bar .sn-inner { gap: 10px; height: 56px; }
  .sn-icon { display: grid; }
  .sn-groups, .sn-account { display: none; }
  .sn-right { gap: 8px; }
}
@media (min-width: 901px) { .sn-drawer { display: none; } }
@media print { site-nav { display: none; } }
/* In-page links land below the sticky header (nav + section row + ticker tape). */
html:has(site-nav) { scroll-padding-top: 144px; }

/* ------------------------------------------------- live ticker tape (live-prices.js) */
.lt {
  display: flex; align-items: center; height: 32px; border-top: 1px solid var(--line);
  padding-inline: max(16px, calc((100% - 1240px) / 2)); gap: 12px;
  font: 500 12px/1 var(--sans); color: var(--ink-2);
}
.lt[hidden] { display: none; }
.lt-viewport {
  flex: 1; min-width: 0; overflow: hidden; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.lt-track { display: flex; width: max-content; height: 100%; animation: lt-scroll var(--lt-dur, 60s) linear infinite; }
.lt:hover .lt-track, .lt:focus-within .lt-track { animation-play-state: paused; }
.lt-run { display: flex; align-items: center; }
@keyframes lt-scroll { to { transform: translateX(-50%); } }
site-nav a.lt-item {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; margin-right: 4px;
  border-radius: 6px; color: var(--ink-2); white-space: nowrap; transition: background-color .6s ease;
}
site-nav a.lt-item[href]:hover { background: var(--panel-2); color: var(--ink); }
.lt-item b { font-weight: 650; color: var(--ink); letter-spacing: .01em; }
.lt-held b::after { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 0 2px 4px; border-radius: 50%; background: var(--z2); vertical-align: middle; }
.lt-px, .lt-chg { font-family: var(--mono); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lt-ext { font-size: 11px; }
.lt-item.flash-up { animation: lt-flash-up 1.2s ease-out; }
.lt-item.flash-down { animation: lt-flash-down 1.2s ease-out; }
@keyframes lt-flash-up { from { background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up-line); } }
@keyframes lt-flash-down { from { background: var(--down-soft); box-shadow: inset 0 0 0 1px var(--down-line); } }
.lt-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.lt-dot.rt { background: var(--up); box-shadow: 0 0 0 2px var(--up-soft); }
.lt-dot.dl { background: var(--warn); box-shadow: 0 0 0 2px var(--warn-soft); }
.lt-side { flex: none; display: flex; align-items: center; gap: 12px; padding-left: 12px; border-left: 1px solid var(--line); height: 20px; }
.lt-feed { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.lt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-weight: 600; font-size: 11.5px; white-space: nowrap; background: var(--panel-2); color: var(--muted); }
.lt-pill.lp-open { background: var(--up-soft); color: var(--up); }
.lt-pill.lp-pre { background: var(--warn-soft); color: var(--warn); }
.lt-pill.lp-post { background: var(--info-soft); color: var(--info); }
.lt-switch { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.lt-switch-short, .lt-short { display: none; }
site-nav button.lt-toggle {
  position: relative; width: 28px; height: 16px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-2); cursor: pointer; transition: background .15s;
}
site-nav button.lt-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .18s;
}
site-nav button.lt-toggle[aria-checked="true"] { background: var(--info); }
site-nav button.lt-toggle[aria-checked="true"]::after { transform: translateX(12px); }
site-nav button.lt-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 720px) {
  .lt { gap: 8px; }
  .lt-feed, .lt-switch-text, .lt-long { display: none; }
  .lt-switch-short, .lt-short { display: inline; }
  .lt-side { gap: 8px; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lt-track { animation: none; }
  .lt-viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .lt-run[aria-hidden="true"] { display: none; }
  .lt-item.flash-up, .lt-item.flash-down { animation: none; }
}

/* The small extended-hours line under a price (LivePrices.extLine). */
.lp-ext { display: block; margin-top: 2px; font: 500 11.5px/1.3 var(--sans); color: var(--muted); white-space: nowrap; }
.lp-ext.lp-inline { display: inline-block; margin: 0 0 0 8px; }
.lp-ext .lp-ico { margin-right: 4px; }
.lp-ext.lp-post .lp-ico { color: var(--info); }
.lp-ext.lp-pre .lp-ico { color: var(--warn); }
.lp-up { color: var(--up); }
.lp-down { color: var(--down); }
.lp-flat { color: var(--muted); }
.lp-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font: 600 10.5px/1.5 var(--sans); vertical-align: middle; }
.lp-tag.lp-post { background: var(--info-soft); color: var(--info); }
.lp-tag.lp-pre { background: var(--warn-soft); color: var(--warn); }

/* iOS Safari zooms the page into any field under 16px when it's tapped. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em); }
}
