/*
 * Company activity: components. Every colour, size and space comes from tokens.css (load it first).
 * All selectors are scoped under `.jts` (the addon root, or the shared app bar's root), so a host page and
 * the core portal's own styles are untouched. No inline styles anywhere (CSP); charts are styled by
 * signals.js from the same tokens.
 */

/* ---------------------------------------------------------------- base */
.jts { font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh); color: var(--text); background: var(--page); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
.jts *, .jts *::before, .jts *::after { box-sizing: border-box; }
.jts.jts-page { min-height: 100vh; padding-bottom: var(--s7); }
.jts.jts-barroot { background: var(--bar); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh); color: var(--text); }
/* the core stylesheet styles every details/summary (an arrow marker, flex); not in the app bar */
.jts .jts-menu-btn::before, .jts details[open] > .jts-menu-btn::before { content: none; display: none; }
.jts summary.jts-menu-btn { min-height: 0; }
.jts h1, .jts h2, .jts h3, .jts h4, .jts p, .jts ul, .jts ol, .jts dl, .jts dd, .jts figure { margin: 0; padding: 0; }
.jts h1, .jts h2, .jts h3, .jts h4 { font-family: var(--font); color: var(--text); letter-spacing: -0.005em; }
.jts ul, .jts ol { list-style: none; }
.jts a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jts a:hover { text-decoration-thickness: 2px; }
.jts :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.jts button, .jts input, .jts select { font: inherit; color: inherit; }
.jts .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jts .jts-in { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.jts .n { font-weight: 700; color: var(--text); }
.jts .co { font-weight: 650; color: var(--text); text-decoration: none; }
.jts a.co:hover { color: var(--accent-text); text-decoration: underline; }
.jts .jts-tk { color: var(--text-3); font-size: var(--fs-sm); font-weight: 500; }

/* ---------------------------------------------------------------- app bar */
.jts .jts-appbar { position: relative; z-index: 40; background: var(--bar); color: var(--bar-text); letter-spacing: normal; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
/* three columns: brand | menu (centred in the bar: the side columns share the rest equally) | search + user */
.jts .jts-appbar-in { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); height: var(--bar-h); display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; column-gap: var(--s4); }
.jts .jts-brand { justify-self: start; color: var(--bar-text); text-decoration: none; font-size: 20px; font-weight: 500; font-stretch: 85%; letter-spacing: -0.01em; border-radius: 6px; }
.jts .jts-brand b { font-weight: 750; }
.jts .jts-brand--host { display: inline-flex; align-items: center; gap: 8px; }
.jts .jts-brand-logo { display: block; flex: none; }
.jts .jts-mid { position: relative; min-width: 0; display: flex; justify-content: center; }
.jts .jts-menu { min-width: 0; transition: opacity .15s ease; }
.jts .jts-menu-list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.jts .jts-tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.jts .jts-menu-item { position: relative; }
.jts .jts-menu-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--bar-text-2); font-size: var(--fs-md); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; }
.jts .jts-menu-btn::-webkit-details-marker { display: none; }
.jts .jts-menu-btn::marker { content: ""; }
.jts .jts-menu-btn:hover, .jts details[open] > .jts-menu-btn { background: var(--bar-hover); color: var(--bar-text); }
.jts .jts-menu-item.is-current > .jts-menu-btn, .jts .jts-menu-item.is-current > details > .jts-menu-btn { color: var(--bar-text); box-shadow: inset 0 -2px 0 var(--bar-text); border-radius: 8px 8px 0 0; }
/* the core stylesheet (loaded after this one on the job-postings portal) has its own element baseline:
   the bar states its box model and focus ring itself, so it looks the same on every page */
.jts .jts-appbar *, .jts .jts-appbar *::before, .jts .jts-appbar *::after { box-sizing: border-box; }
.jts .jts-appbar :focus-visible { outline: 2px solid var(--bar-text); outline-offset: 2px; }
.jts .jts-appbar .jts-dd-panel :focus-visible, .jts .jts-appbar .jts-sheet :focus-visible, .jts .jts-appbar .jts-searchbox-panel :focus-visible { outline-color: var(--focus); outline-offset: -2px; }
.jts .jts-caret { width: 7px; height: 7px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.jts details[open] > .jts-menu-btn .jts-caret { transform: rotate(225deg) translateY(-1px); }
.jts .jts-dd-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 320px; padding: 6px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.jts .jts-dd-panel a, .jts .jts-sheet a { display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.jts .jts-dd-panel a:hover, .jts .jts-dd-panel a:focus-visible, .jts .jts-sheet a:hover { background: var(--raised); color: var(--text); text-decoration: none; outline-offset: -2px; }
.jts .jts-dd-panel a[aria-current="page"], .jts .jts-sheet a[aria-current="page"] { background: var(--accent-soft); }
.jts .jts-dd-panel .t, .jts .jts-sheet .t { font-weight: 650; font-size: var(--fs-md); }
.jts .jts-dd-panel .d, .jts .jts-sheet .d { color: var(--text-3); font-size: var(--fs-sm); line-height: 1.35; }
.jts .jts-search { display: flex; align-items: center; gap: 0; flex: 0 1 300px; min-width: 0; }
.jts .jts-search input, .jts .jts-search input[type="search"] { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 8px 0 0 8px; border: 1px solid rgba(255, 255, 255, .18); border-right: 0; background: rgba(255, 255, 255, .08); color: var(--bar-text); font-size: var(--fs-md); }
.jts .jts-search input::placeholder { color: var(--bar-text-2); opacity: 1; }
.jts .jts-search-go { height: 36px; padding: 0 14px; border: 0; border-radius: 0 8px 8px 0; background: var(--primary); color: var(--on-primary); font-weight: 650; cursor: pointer; }
.jts .jts-search--page input, .jts .jts-search--page input[type="search"] { background: var(--card); color: var(--text); border-color: var(--line); }
.jts .jts-search--page input::placeholder { color: var(--text-3); }
/* the last dropdowns of the centred menu open leftwards, so a panel never runs off the right edge */
.jts .jts-menu-item:nth-last-child(-n+2) > details > .jts-dd-panel { left: auto; right: 0; }

/* round icon buttons at the right: search, the user icon */
.jts .jts-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--bar-text-2); cursor: pointer; list-style: none; text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.jts .jts-iconbtn::-webkit-details-marker { display: none; }
.jts .jts-iconbtn::marker { content: ""; }
.jts summary.jts-iconbtn { min-height: 0; }
.jts summary.jts-iconbtn::before, .jts details[open] > summary.jts-iconbtn::before { content: none; display: none; }
.jts .jts-iconbtn:hover, .jts details[open] > .jts-iconbtn, .jts .jts-iconbtn[aria-expanded="true"] { background: var(--bar-hover); color: var(--bar-text); }
.jts .jts-iconbtn:active { background: rgba(255, 255, 255, .16); }
.jts .jts-appbar .jts-iconbtn:focus-visible { border-radius: 50%; outline-offset: 0; }
.jts .jts-ico { display: block; flex: none; }
.jts .jts-user { position: relative; }
.jts .jts-user-btn { color: var(--bar-text); }
.jts .jts-user.is-current > .jts-user-btn { box-shadow: 0 0 0 2px var(--bar-text); }
.jts .jts-user-btn .jts-badge-n { position: absolute; top: -3px; right: -5px; margin: 0; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 10.5px; line-height: 17px; box-shadow: 0 0 0 2px var(--bar); }
.jts .jts-user-panel { left: auto; right: 0; top: calc(100% + 8px); width: 304px; min-width: 0; max-width: calc(100vw - 24px); }
.jts .jts-user-group { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 6px; }
.jts .jts-user-group .jts-dd-h { padding-top: 2px; }
.jts .jts-prefs-note { margin: 0; padding: 8px 10px; font-size: var(--fs-sm); color: var(--text-2); }

/* the Dark and Compact switches: a pill track and a round knob, the label under it; two side by side */
.jts .jts-prefs { display: flex; align-items: stretch; gap: 6px; }
.jts .jts-prefs[hidden] { display: none; }
.jts .jts-pref { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 7px; border-radius: 8px; font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); cursor: pointer; user-select: none; }
.jts .jts-pref:hover { background: var(--raised); color: var(--text); }
.jts .jts-switch { --sw-w: 54px; --sw-h: 28px; --sw-knob: 22px; position: relative; display: block; flex: none; width: var(--sw-w); height: var(--sw-h); }
.jts .jts-switch input[type="checkbox"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jts .jts-switch-track { position: absolute; inset: 0; border-radius: 999px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(120, 135, 160, .45); transition: background-color .2s ease; pointer-events: none; }
.jts .jts-switch-knob { position: absolute; top: 3px; left: 3px; width: var(--sw-knob); height: var(--sw-knob); border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; pointer-events: none; }
.jts .jts-switch input:checked ~ .jts-switch-knob { transform: translateX(calc(var(--sw-w) - var(--sw-knob) - 6px)); }
.jts .jts-switch input:focus-visible ~ .jts-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Dark: a sun on a day sky, a crescent moon on a night sky */
.jts .jts-switch--dark .jts-switch-track { background: #9fd0f5; }
.jts .jts-switch--dark .jts-switch-knob { background: #f7b928; }
.jts .jts-switch--dark input:checked ~ .jts-switch-track { background: #16213a; }
.jts .jts-switch--dark input:checked ~ .jts-switch-knob { background: transparent; box-shadow: inset -7px -2px 0 0 #e6ecf7; }
/* Compact: rows on the knob, wide apart when off, close together when on */
.jts .jts-switch--compact .jts-switch-track { background: var(--neutral-soft); }
.jts .jts-switch--compact .jts-switch-knob { background: #ffffff; }
.jts .jts-switch--compact .jts-switch-knob::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px; background: linear-gradient(#33415a, #33415a) 0 0 / 100% 2px no-repeat, linear-gradient(#33415a, #33415a) 0 100% / 100% 2px no-repeat; }
.jts .jts-switch--compact input:checked ~ .jts-switch-track { background: var(--primary); }
.jts .jts-switch--compact input:checked ~ .jts-switch-knob::before { top: 5px; bottom: 5px; background: linear-gradient(#33415a, #33415a) 0 0 / 100% 2px no-repeat, linear-gradient(#33415a, #33415a) 0 50% / 100% 2px no-repeat, linear-gradient(#33415a, #33415a) 0 100% / 100% 2px no-repeat; }

/* the search box: opens over the menu from the search button's side; its panel (what to search, matches)
   hangs under it */
.jts .jts-appbar.is-searching .jts-menu { opacity: 0; visibility: hidden; }
.jts .jts-searchbox { position: absolute; z-index: 45; top: 50%; left: 50%; width: clamp(480px, 100%, 720px); margin: 0; transform: translate(-50%, -50%); animation: jts-search-in .18s cubic-bezier(.2, .7, .2, 1) backwards; }
.jts .jts-searchbox[hidden] { display: none; }
@keyframes jts-search-in { from { opacity: 0; clip-path: inset(0 0 0 72% round 19px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 19px); } }
@keyframes jts-search-panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.jts .jts-searchbox-row { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 3px 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 19px; background: var(--bar-hover); color: var(--bar-text-2); }
.jts .jts-searchbox-row:focus-within { border-color: var(--bar-text); color: var(--bar-text); }
.jts .jts-searchbox input[type="search"] { display: block; flex: 1; width: auto; min-width: 0; min-height: 0; height: 34px; padding: 0 6px; border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--bar-text); font-size: var(--fs-md); outline: none; -webkit-appearance: none; appearance: none; }
.jts .jts-searchbox input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.jts .jts-searchbox input::placeholder { color: var(--bar-text-2); opacity: 1; }
.jts .jts-searchbox .jts-search-go { height: 28px; padding: 0 12px; border-radius: 14px; font-size: var(--fs-sm); }
.jts .jts-searchbox .jts-search-go:hover { filter: brightness(1.1); }
.jts .jts-searchbox .jts-search-close { width: 30px; height: 30px; }
.jts .jts-searchbox-panel { position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 50; padding: 6px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); animation: jts-search-panel-in .18s ease .06s backwards; }
.jts .jts-searchbox-panel[hidden] { display: none; }
.jts .jts-search-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 4px 6px; border: 0; min-width: 0; }
.jts .jts-search-kinds legend { float: left; padding: 0; margin-right: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.jts .jts-search-kinds label { position: relative; display: inline-flex; cursor: pointer; }
.jts .jts-search-kinds input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jts .jts-search-kinds span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.jts .jts-search-kinds label:hover span { background: var(--raised); }
.jts .jts-search-kinds input:checked + span { background: var(--text); border-color: var(--text); color: var(--card); }
.jts .jts-search-kinds input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.jts .jts-suggest[hidden] { display: none; }
.jts .jts-search-kinds + .jts-suggest { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 6px; }
.jts .jts-suggest a { display: grid; grid-template-columns: minmax(72px, max-content) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: var(--fs-md); }
.jts .jts-suggest a:hover, .jts .jts-suggest a:focus-visible { background: var(--raised); color: var(--text); text-decoration: none; outline-offset: -2px; }
.jts .jts-suggest .tk { font-weight: 700; overflow-wrap: anywhere; }
.jts .jts-suggest .nm { color: var(--text-2); overflow-wrap: anywhere; }
.jts .jts-suggest .jts-suggest-none { padding: 7px 10px; font-size: var(--fs-sm); color: var(--text-3); }

.jts .jts-burger { display: none; }
.jts .jts-burger-icon { width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.jts .jts-burger-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.jts .jts-sheet { position: absolute; left: 0; right: 0; top: 100%; max-height: 80vh; overflow-y: auto; z-index: 60; padding: var(--s4); background: var(--card); color: var(--text); border-top: 1px solid var(--line); display: grid; align-content: start; gap: var(--s3); }
.jts .jts-sheet h2 { font-size: var(--fs-sm); font-weight: 650; color: var(--text-3); padding: 0 12px; margin-bottom: 2px; }
.jts .jts-sheet-link { font-weight: 650; }
.jts .jts-sheet-group { border-top: 1px solid var(--line-soft); padding-top: var(--s3); }

/* ---------------------------------------------------------------- page head, notice, host nav, company tabs */
.jts .jts-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s2) var(--s5); padding: var(--s5) 0 var(--s4); }
.jts .jts-title { font-size: var(--fs-2xl); font-weight: 750; line-height: 1.15; font-stretch: 92%; }
.jts .jts-sub { color: var(--text-2); font-size: var(--fs-body); margin-top: 4px; max-width: 90ch; }
.jts .jts-head-side { display: grid; justify-items: end; gap: var(--s2); }
.jts .jts-notice { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-pagenote { color: var(--text-2); font-size: var(--fs-sm); margin: 0 0 var(--s3); }
.jts .jts-hostnav ul, .jts .jts-ctabs ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); }
.jts .jts-hostnav a, .jts .jts-ctabs a { display: block; padding: 10px 14px; white-space: nowrap; color: var(--text-2); font-weight: 600; font-size: var(--fs-md); text-decoration: none; border-radius: 8px 8px 0 0; }
.jts .jts-hostnav a:hover, .jts .jts-ctabs a:hover { background: var(--card); color: var(--text); }
.jts .jts-hostnav a[aria-current="page"], .jts .jts-ctabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); background: var(--card); }
.jts .jts-ctabs { margin-bottom: var(--s4); }
.jts .jts-ctabs ul { flex-wrap: wrap; overflow-x: visible; } /* every tab stays in view: the strip wraps, it never scrolls */

/* ---------------------------------------------------------------- KPI tiles */
.jts .jts-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.jts .jts-kpi { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 10px; display: grid; align-content: start; gap: 2px; min-width: 0; }
.jts .jts-kpi-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.jts .jts-kpi-value { font-size: var(--fs-kpi); font-weight: 750; line-height: 1.1; font-stretch: 88%; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.jts .jts-kpi-delta { font-size: var(--fs-sm); color: var(--text-3); }
.jts .jts-kpi-delta b { font-weight: 700; color: var(--text); }
.jts .jts-kpi.is-up .jts-kpi-delta b { color: var(--up-text); }
.jts .jts-kpi.is-down .jts-kpi-delta b { color: var(--down-text); }
.jts .jts-kpi .jts-spark { margin-top: 6px; height: 34px; }
.jts .jts-kpi.is-tint.is-up .jts-kpi-value { color: var(--up-text); }
.jts .jts-kpi.is-tint.is-down .jts-kpi-value { color: var(--down-text); }

/* ---------------------------------------------------------------- filter bar */
.jts .jts-filterbar { position: static; margin: 0 0 var(--s4); padding: 8px 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.jts .jts-filterform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.jts .jts-seg { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.jts .jts-seg legend { float: left; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin-right: 8px; padding: 0; }
.jts .jts-seg-opts { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.jts .jts-seg-opt { position: relative; }
.jts .jts-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.jts .jts-seg-opt span { display: block; padding: 5px 11px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; border-left: 1px solid var(--line-soft); }
.jts .jts-seg-opt:first-child span { border-left: 0; }
.jts .jts-seg-opt input:checked + span { background: var(--text); color: var(--card); }
.jts .jts-seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.jts .jts-seg-opt span:hover { background: var(--raised); }
.jts .jts-seg-opt input:checked + span:hover { background: var(--text); }
.jts .jts-sel { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); min-width: 0; }
.jts .jts-sel select, .jts .jts-axes select { height: 32px; max-width: 170px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.jts .jts-apply, .jts .jts-btn { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: var(--fs-sm); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.jts .jts-btn:hover, .jts .jts-apply:hover { filter: brightness(1.08); }
.jobtrends.jts-js .jts .jts-apply { display: none; }

/* ---------------------------------------------------------------- cards and chart frames */
.jts .jts-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px; min-width: 0; margin: 0; }
.jts .jts-card-head { margin-bottom: var(--s3); display: grid; gap: 2px; }
.jts .jts-card-head--row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s2) var(--s4); }
.jts .jts-card-head h2, .jts .jts-chart-title { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; color: var(--text); max-width: 70ch; }
.jts .jts-card-head p { font-size: var(--fs-sm); color: var(--text-3); }
.jts .jts-fig-note { color: var(--text-3); font-size: var(--fs-sm); margin-top: var(--s2); max-width: 90ch; line-height: 1.4; }
.jts .jts-empty-note { color: var(--text-2); font-size: var(--fs-md); }
.jts .jts-cbox { position: relative; width: 100%; margin-top: var(--s2); }
.jts .jts-cbox canvas { display: block; }
.jts .jts-cbox.is-failed::after { content: "This chart could not be drawn; the numbers are in the table below."; color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-cbox--main { height: 340px; }
.jts .jts-cbox--story { height: 380px; }
.jts .jts-cbox--panel { height: 112px; }
.jts .jts-cbox--panel.has-ticks { height: 134px; }
.jts .jts-cbox--second { height: 280px; }
.jts .jts-cbox--hbar { height: 560px; }
.jts .jts-cbox--hbar-sm { height: 280px; }
.jts .jts-cbox--hbar-sm.jts-h1, .jts .jts-cbox--hbar-sm.jts-h2, .jts .jts-cbox--hbar-sm.jts-h3 { height: 140px; }
.jts .jts-cbox--hbar-sm.jts-h4, .jts .jts-cbox--hbar-sm.jts-h5, .jts .jts-cbox--hbar-sm.jts-h6 { height: 210px; }
.jts .jts-cbox--hbar-sm.jts-h10, .jts .jts-cbox--hbar-sm.jts-h11, .jts .jts-cbox--hbar-sm.jts-h12 { height: 360px; }
.jts .jts-cbox--hbar-sm.jts-h14, .jts .jts-cbox--hbar-sm.jts-h15, .jts .jts-cbox--hbar-sm.jts-h16 { height: 460px; }
.jts .jts-cbox--hist { height: 240px; }
.jts .jts-cbox--scatter { height: 340px; }
.jts .jts-cbox--mini { height: 140px; }
.jts .jts-numbers { margin-top: var(--s2); }
.jts .jts-numbers > summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-sm); font-weight: 650; min-height: 28px; display: inline-flex; align-items: center; }
.jts .jts-numbers-body { max-height: 420px; overflow: auto; display: grid; gap: var(--s4); margin-top: var(--s2); }
.jts .jts-numbers caption { text-align: left; font-weight: 650; padding: 4px 0; }
.jts .jts-range { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.jts .jts-segbtn { border: 0; border-left: 1px solid var(--line-soft); background: var(--card); color: var(--text-2); font-size: var(--fs-sm); font-weight: 650; padding: 5px 11px; cursor: pointer; }
.jts .jts-segbtn:first-child { border-left: 0; }
.jts .jts-segbtn[aria-pressed="true"] { background: var(--text); color: var(--card); }
.jts .jts-sec { margin-top: var(--s6); }
.jts .jts-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--s4); padding-bottom: var(--s2); margin-bottom: var(--s3); border-bottom: 2px solid var(--text); }
.jts .jts-sec-head h2 { font-size: var(--fs-xl); font-weight: 750; font-stretch: 92%; }
.jts .jts-sec-head p { color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-sec-say { color: var(--text-2); font-size: var(--fs-md); max-width: 80ch; margin-bottom: var(--s3); }

/* ---------------------------------------------------------------- front page */
.jts .jts-front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: start; }
.jts .jts-front-side { display: grid; gap: var(--s4); }
.jts .jts-short-card { padding-bottom: 6px; }
.jts .jts-row { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr) minmax(0, 150px) minmax(0, 120px); gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.jts .jts-short .jts-row:first-child { border-top: 0; padding-top: 4px; }
.jts .jts-row-who .nm { font-size: var(--fs-body); line-height: 1.3; }
.jts .jts-row-who .meta { color: var(--text-3); font-size: var(--fs-xs); margin-top: 2px; }
.jts .jts-row-who .meta b { color: var(--text-2); font-weight: 700; }
.jts .jts-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.jts .jts-kinds li { font-size: 11.5px; font-weight: 650; color: var(--text-2); background: var(--raised); border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px; }
.jts .jts-row-text { font-size: var(--fs-md); line-height: 1.45; color: var(--text); }
.jts .jts-row-meta { color: var(--text-3); font-size: var(--fs-xs); margin-top: 6px; }
.jts .jts-dirtag { display: inline-block; font-weight: 700; font-size: 11.5px; padding: 0 7px; border-radius: 999px; margin-right: 4px; }
.jts .jts-dirtag.is-up { background: var(--up-soft); color: var(--up-text); }
.jts .jts-dirtag.is-down { background: var(--down-soft); color: var(--down-text); }
.jts .jts-row-price, .jts .jts-row-metric { min-width: 0; }
.jts .jts-row-price figcaption, .jts .jts-row-metric figcaption { color: var(--text-3); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.jts .jts-row-num { font-size: var(--fs-lg); font-weight: 750; line-height: 1.1; }
.jts .jts-row-num small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.jts .jts-row-num.is-up { color: var(--up-text); }
.jts .jts-row-num.is-down { color: var(--down-text); }
.jts .jts-pricespark { display: block; width: 100%; height: auto; margin-top: 4px; }
.jts .jts-pline { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; }
.jts .jts-dot { fill: var(--accent); stroke: var(--card); stroke-width: 1.5; }
.jts .jts-row-metric .jts-chart { height: 54px; }
.jts .jts-minifacts { display: grid; gap: 4px; }
.jts .jts-minifacts dt { color: var(--text-3); font-size: 11.5px; }
.jts .jts-minifacts dd { margin: 0; font-size: var(--fs-lg); font-weight: 750; }
.jts .jts-heat-wrap { overflow-x: auto; }
.jts .jts-heat { border-collapse: separate; border-spacing: 3px; font-size: var(--fs-xs); width: 100%; }
.jts .jts-heat th { font-weight: 600; color: var(--text-2); text-align: left; padding: 2px 4px; white-space: nowrap; }
.jts .jts-heat thead th { font-size: 11.5px; vertical-align: bottom; text-align: center; white-space: normal; line-height: 1.15; }
.jts .jts-heat tbody th { color: var(--text); }
.jts .jts-heat tbody th small { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.jts .jts-heat td { padding: 0; }
.jts .jts-cell { display: block; min-width: 36px; height: 26px; line-height: 26px; text-align: center; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 11.5px; color: var(--heat-ink-light); }
.jts .jts-cell.lvl-0 { background: var(--raised); }
.jts .jts-cell.lvl-1 { background: var(--heat-1); }
.jts .jts-cell.lvl-2 { background: var(--heat-2); }
.jts .jts-cell.lvl-3 { background: var(--heat-3); }
.jts .jts-cell.lvl-4 { background: var(--heat-4); color: var(--heat-ink-dark); }
.jts .jts-cell.lvl-5 { background: var(--heat-5); color: var(--heat-ink-dark); }
.jts a.jts-cell:hover, .jts a.jts-cell:focus-visible, .jts .jts-cell.is-on { outline: 2px solid var(--text); outline-offset: 1px; }
.jts .jts-week { display: grid; }
.jts .jts-week li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 82px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.jts .jts-week li:first-child { border-top: 0; }
.jts .jts-week .lab { font-weight: 650; }
.jts .jts-week .val { text-align: right; color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-week .val b { color: var(--text); font-size: var(--fs-md); }
.jts .jts-week li.is-hot .val b { color: var(--up-text); }
.jts .jts-weekbars { display: block; width: 110px; height: 26px; }
.jts .jts-weekbars .jts-bar { fill: var(--neutral-soft); }
.jts .jts-weekbars .jts-bar.is-focus { fill: var(--up); }

/* ---------------------------------------------------------------- tab anatomy */
.jts .jts-tabtop { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s4); align-items: start; }
.jts .jts-tabtop > :only-child { grid-column: 1 / -1; }
.jts .jts-findings-h { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--s2); }
.jts .jts-findings ul { display: grid; gap: 10px; }
.jts .jts-findings li { position: relative; padding-left: 16px; font-size: var(--fs-md); line-height: 1.45; color: var(--text); }
.jts .jts-findings li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.jts .jts-findings li small { color: var(--text-3); }
.jts .jts-find-link { font-weight: 650; }
.jts .jts-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.jts .jts-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.jts .jts-mini { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px 8px; min-width: 0; margin: 0; }
.jts .jts-mini figcaption { font-size: var(--fs-sm); color: var(--text-2); min-height: 2.9em; }
.jts .jts-mini figcaption b { color: var(--text); }
.jts .jts-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s3); }
.jts .jts-cards .jts-sig { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.jts .jts-sig { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.jts .jts-cards .jts-sig { border-top: 1px solid var(--line-soft); }
.jts .jts-sig-text { font-size: var(--fs-md); line-height: 1.45; }
.jts .jts-sig-meta { color: var(--text-3); font-size: var(--fs-xs); margin-top: 3px; }
.jts .jts-f-note { margin-top: 8px; color: var(--text-2); font-size: var(--fs-sm); padding-left: 10px; border-left: 3px solid var(--line); }

/* ---------------------------------------------------------------- company page */
.jts .jts-story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s2) var(--s4); }
.jts .jts-story-head .jts-chart-title { font-size: var(--fs-lg); }
.jts .jts-mkey { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-mkey li { display: inline-flex; align-items: center; gap: 6px; }
.jts .mk { display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--text); background: var(--card); }
.jts .mk-signal { border-radius: 50%; background: var(--accent); border-color: var(--accent); width: 12px; height: 12px; }
.jts .mk-insiders, .jts .mk-hiring { width: 0; height: 0; border: 0; background: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--text); }
.jts .mk-layoffs { transform: rotate(45deg); }
.jts .mk-government { transform: rotate(45deg) scale(.85); background: var(--text-3); }
.jts .mk-lobbying { border-radius: 50%; border-style: dashed; }
.jts .mk-institutions { border-radius: 3px; }
.jts .jts-pnl { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.jts .jts-pnl-title { font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-pnl-title b { color: var(--text); font-weight: 650; }
.jts li.is-flash { background: var(--accent-soft); }
.jts .jts-tl { margin-top: var(--s3); position: relative; }
.jts .jts-tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line-soft); }
.jts .jts-tl > li { position: relative; padding: 0 0 16px 28px; }
.jts .jts-tl > li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--neutral); }
.jts .jts-tl > li.is-signal::before { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.jts .jts-tl > li.is-composite::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.jts .jts-tl-date { font-weight: 700; font-size: var(--fs-sm); }
.jts .jts-tl-date span { color: var(--text-3); font-weight: 500; margin-left: 6px; }
.jts .jts-tl-what { margin-top: 2px; font-size: var(--fs-md); overflow-wrap: anywhere; }
.jts .jts-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s6); }
.jts .jts-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: var(--fs-md); }
.jts .jts-dl dt { color: var(--text-3); }
.jts .jts-dl dd { overflow-wrap: anywhere; }

/* evidence drawers and finding cards (company episodes, products/developers pages) */
.jts .jts-ev { margin-top: 8px; }
.jts .jts-ev > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent-text); font-weight: 650; font-size: var(--fs-xs); }
.jts .jts-ev > summary::-webkit-details-marker { display: none; }
.jts .jts-ev > summary::marker { content: ""; }
.jts .jts-ev > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
.jts .jts-ev[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.jts .jts-ev-body { margin-top: 10px; background: var(--raised); border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 14px; display: grid; gap: 12px; }
.jts .jts-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 20px; }
.jts .jts-facts dt { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-facts dd { font-weight: 650; font-size: var(--fs-md); overflow-wrap: anywhere; }
.jts .jts-rule { color: var(--text-2); font-size: var(--fs-sm); max-width: 90ch; }
.jts .jts-items li { padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
.jts .jts-items li:first-child { border-top: 0; }
.jts .jts-items .t { overflow-wrap: anywhere; }
.jts .jts-items .d { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; }
.jts .jts-ev-members { display: grid; gap: 12px; }
.jts .jts-ev-member h4 { font-size: var(--fs-md); }
.jts .jts-ev-member h4 span { color: var(--text-3); font-weight: 500; }
.jts .jts-ev-chart { max-width: 420px; }
.jts .jts-finding { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 240px); gap: 0 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.jts .jts-f-when { grid-row: 1 / span 3; color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-f-when b { display: block; color: var(--text); font-size: var(--fs-sm); }
.jts .jts-f-kind { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 4px; }
.jts .jts-f-kind .fam { font-weight: 700; color: var(--text-2); margin-right: 6px; }
.jts .jts-f-text { font-size: var(--fs-body); line-height: 1.45; }
.jts .jts-f-body { grid-column: 2; min-width: 0; }
.jts .jts-f-chart { grid-column: 3; grid-row: 1 / span 2; min-width: 0; }
.jts .jts-f-chart figcaption { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.jts .jts-finding .jts-ev, .jts .jts-f-links { grid-column: 2 / -1; }
.jts .jts-members { margin-top: 8px; display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-members b { color: var(--text); }

/* ---------------------------------------------------------------- tables */
.jts .jts-table-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 8px; color: var(--text-2); font-size: var(--fs-sm); }
.jts .jts-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-md); background: var(--card); }
.jts .jts-table thead th { position: static; z-index: 2; background: var(--raised); text-align: left; font-weight: 650; color: var(--text-2); font-size: var(--fs-sm); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.jts .jts-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.jts .jts-table tbody tr:hover td { background: var(--raised); }
.jts .jts-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jts .jts-table td.when { white-space: nowrap; color: var(--text-2); }
.jts .jts-table td.meta { color: var(--text-2); }
.jts .jts-pager { display: flex; gap: 16px; align-items: center; margin-top: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-limit { margin-top: 10px; color: var(--text-2); font-size: var(--fs-sm); padding: 8px 12px; background: var(--raised); border-radius: 8px; border: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- explore */
.jts .jts-explore { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: start; }
.jts .jts-ex-side { display: grid; gap: var(--s4); }
.jts .jts-axes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-top: 8px; }
.jts .jts-axes label { display: grid; gap: 2px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); flex: 1 1 180px; min-width: 0; }
.jts .jts-axes select { max-width: 100%; width: 100%; }
.jts .jts-results li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- track record */
.jts .jts-tr { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-top: var(--s3); }
.jts .jts-tr h3 { font-size: var(--fs-lg); font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.jts .jts-tr .badge { font-size: var(--fs-xs); font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--text-2); }
.jts .jts-tr .badge.above { background: var(--up-soft); color: var(--up-text); border-color: transparent; }
.jts .jts-tr .badge.below { background: var(--down-soft); color: var(--down-text); border-color: transparent; }
.jts .jts-tr-n { color: var(--text-3); font-size: var(--fs-sm); margin-top: 2px; }
.jts .jts-tr-say { font-size: var(--fs-md); margin-top: 8px; max-width: 90ch; }
.jts .jts-boxes { margin-top: 10px; }
.jts .jts-boxrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 2px 0; }
.jts .jts-boxrow .h { font-weight: 700; font-size: var(--fs-sm); }
.jts .jts-boxrow small { display: block; color: var(--text-3); font-weight: 500; font-size: 11.5px; }
.jts .jts-boxrow .v { font-weight: 700; font-size: var(--fs-md); }
.jts .jts-box { display: block; width: 100%; height: auto; }
.jts .jts-zero { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; }
.jts .jts-whisker { stroke: var(--text-3); stroke-width: 1.5; }
.jts .jts-iqr { fill: var(--neutral-soft); }
.jts .jts-med { stroke: var(--text); stroke-width: 3; }
.jts .jts-case.is-worst { fill: var(--down); }
.jts .jts-case.is-best { fill: var(--up); }
.jts .jts-cases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) var(--s6); margin-top: var(--s3); }
.jts .jts-cases h4 { font-size: var(--fs-md); }
.jts .jts-cases li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.jts .jts-note { color: var(--text-3); font-size: var(--fs-sm); margin-top: 10px; max-width: 90ch; }

/* ---------------------------------------------------------------- simple pages: lead, empty, coverage, quiet */
.jts .jts-lead { margin-bottom: var(--s4); }
.jts .jts-lead-say { font-size: var(--fs-lg); line-height: 1.45; max-width: 80ch; }
.jts .jts-lead-sub { color: var(--text-2); font-size: var(--fs-md); margin-top: 6px; max-width: 80ch; }
.jts .jts-read { font-size: var(--fs-body); }
.jts .jts-empty { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin: var(--s3) 0; max-width: 820px; }
.jts .jts-empty h3 { font-size: var(--fs-lg); }
.jts .jts-empty p { color: var(--text-2); margin-top: 4px; font-size: var(--fs-md); }
.jts .jts-empty ul { margin-top: 10px; }
.jts .jts-empty li { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-md); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.jts .jts-empty li span { color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-cov li { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr) auto; gap: 2px 20px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-md); }
.jts .jts-cov .s { font-weight: 650; }
.jts .jts-cov .s small { display: block; color: var(--text-3); font-weight: 500; font-size: var(--fs-xs); }
.jts .jts-cov .w { color: var(--text-2); }
.jts .jts-cov .r { color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; }
.jts .jts-cov .muted { color: var(--text-3); }
.jts .jts-cov-more { color: var(--text-3); font-size: var(--fs-sm); margin-top: 8px; }
.jts .jts-rulebox { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 16px; font-size: var(--fs-md); color: var(--text-2); max-width: 90ch; }
.jts .jts-rulebox b { color: var(--text); }
.jts .jts-meter { display: block; width: 100%; height: 10px; }
.jts .jts-meter .bg { fill: var(--raised); }
.jts .jts-meter .fg { fill: var(--up); }

/* ---------------------------------------------------------------- inline SVG charts */
.jts .jts-chart { display: block; width: 100%; height: 92px; overflow: visible; }
.jts .jts-chart .jts-bar { fill: var(--neutral-soft); }
.jts .jts-chart .jts-bar.is-focus { fill: var(--up); }
.jts .jts-median { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 4 3; }
.jts .jts-spark { display: block; width: 100%; height: 44px; overflow: visible; }
.jts .jts-spark .jts-line { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.jts .jts-spark .jts-last { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.jts .jts-spark .jts-median { stroke: var(--text-3); stroke-width: 1; }
.jts .jts-spark-empty { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.jts .jts-key span { display: inline-flex; align-items: center; gap: 5px; }
.jts .jts-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--neutral-soft); }
.jts .jts-key i.f { background: var(--up); }
.jts .jts-key i.m { width: 14px; height: 0; border-top: 1.5px dashed var(--text); border-radius: 0; }

/* ---------------------------------------------------------------- ticker block (host pages) */
.jts.jts-block { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--card); }
.jts-block h3 { font-size: var(--fs-md); display: flex; justify-content: space-between; gap: 12px; }
.jts-block ul { margin-top: 8px; }
.jts-block li { padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-md); }
.jts-block li small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.jts-block .foot { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: var(--fs-xs); color: var(--text-3); }

/* ---------------------------------------------------------------- the core portal inside the demo base: same app */
.jts-host .jobtrends .jt-header { display: none; }
.jts-host .jobtrends:not(.jts) {
  --jt-font: var(--font, "JTS Instrument Sans", system-ui, sans-serif);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .jts .jts-front, .jts .jts-tabtop, .jts .jts-explore { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-front-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jts .jts-menu-btn { padding: 0 9px; }
}
@media (max-width: 980px) {
  /* phones and narrow windows: brand | search, user icon, Menu (the sheet); the search box takes the whole bar */
  .jts .jts-menu { display: none; }
  .jts .jts-burger { display: block; }
  .jts .jts-appbar-in { grid-template-columns: minmax(0, 1fr) 0 auto; column-gap: 0; }
  .jts .jts-mid { position: static; }
  .jts .jts-searchbox { left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); width: auto; transform: translateY(-50%); background: var(--bar); box-shadow: 0 0 0 9px var(--bar); }
  .jts .jts-user { position: static; }
  .jts .jts-user-panel { right: clamp(12px, 3vw, 40px); top: calc(100% + 4px); }
  .jts .jts-support { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .jts .jts-row-who, .jts .jts-row-what { grid-column: 1 / -1; }
  .jts .jts-front-side { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-two, .jts .jts-cases { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-cov li { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-finding { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-f-when { grid-row: auto; }
  .jts .jts-f-body, .jts .jts-f-chart, .jts .jts-finding .jts-ev, .jts .jts-f-links { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .jts { font-size: var(--fs-md); }
  .jts .jts-brand { font-size: 18px; }
  .jts .jts-tools { gap: 2px; }
  .jts .jts-searchbox .jts-search-go { display: none; }
  .jts .jts-head { padding-top: var(--s4); }
  .jts .jts-head-side { justify-items: start; }
  .jts .jts-title { font-size: 22px; }
  .jts .jts-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jts .jts-kpi { padding: 10px 12px 8px; }
  .jts .jts-kpi-value { font-size: 24px; }
  .jts .jts-filterbar { position: static; }
  .jts .jts-filterform { gap: 8px 10px; }
  .jts .jts-seg { flex-wrap: wrap; }
  .jts .jts-seg-opts { flex-wrap: wrap; }
  .jts .jts-sel { flex: 1 1 140px; min-width: 0; max-width: 100%; }
  .jts .jts-sel select { max-width: 100%; min-width: 0; width: 100%; flex: 1; }
  .jts .jts-card { padding: 12px 12px 10px; }
  .jts .jts-row { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-row-price, .jts .jts-row-metric { max-width: 320px; }
  .jts .jts-week li { grid-template-columns: minmax(0, 1fr) 90px 70px; }
  .jts .jts-weekbars { width: 90px; }
  .jts .jts-cbox--main { height: 260px; }
  .jts .jts-cbox--story { height: 280px; }
  .jts .jts-cbox--hbar { height: 480px; }
  .jts .jts-table thead { display: none; }
  .jts .jts-table, .jts .jts-table tbody, .jts .jts-table tr, .jts .jts-table td { display: block; width: 100%; }
  .jts .jts-table tr { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .jts .jts-table td { border: 0; padding: 1px 0; }
  .jts .jts-table .num { text-align: left; }
  .jts .jts-table td.opt { display: none; }
  .jts .jts-boxrow { grid-template-columns: 56px minmax(0, 1fr); }
  .jts .jts-boxrow .v { grid-column: 2; }
  .jts .jts-items li { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .jts * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .jts .jts-cell, .jts .jts-chart .jts-bar.is-focus, .jts .jts-case, .jts .jts-meter .fg { forced-color-adjust: none; } }

/* ======================================================= Overview (round 5): numbers, not prose */
.jts .jts-ov { display: grid; gap: var(--s5); }
.jts .jts-ov-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: start; }
.jts .jts-ov .jts-card { padding: 18px 20px 16px; }
.jts .jts-ov .jts-card-head h2 { font-size: var(--fs-lg); }
.jts .jts-ov .jts-card-head p { font-size: var(--fs-sm); color: var(--text-3); }

/* weekly small multiples */
.jts .jts-sm { display: grid; gap: 6px; }
.jts .jts-sm li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.jts .jts-sm-name { font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.jts .jts-weekrow { display: block; width: 100%; height: 30px; }
.jts .jts-wb { fill: var(--neutral-soft); }
.jts .jts-wb.is-on { fill: var(--up); }
.jts .jts-wb.is-zero { fill: var(--line-soft); }
.jts .jts-wb:hover { fill: var(--text); }
.jts .jts-sm-num { text-align: right; font-size: var(--fs-lg); font-weight: 750; line-height: 1.05; }
.jts .jts-sm-num small { display: block; font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); }
.jts .jts-sm-num small.is-up { color: var(--up-text); }
.jts .jts-sm-num small.is-down { color: var(--down-text); }
.jts .jts-sm-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.jts .jts-sm-key span { display: inline-flex; align-items: center; gap: 6px; }
.jts .jts-sm-key i { width: 10px; height: 10px; border-radius: 2px; background: var(--neutral-soft); display: inline-block; }
.jts .jts-sm-key i.on { background: var(--up); }

/* compact sector map: colour only, numbers on hover */
.jts .jts-sectors .jts-heat { border-spacing: 3px; }
.jts .jts-sectors .jts-heat thead th { font-size: 11.5px; font-weight: 650; color: var(--text-2); white-space: normal; line-height: 1.15; text-align: center; padding-bottom: 4px; }
.jts .jts-sectors .jts-heat tbody th { font-size: var(--fs-sm); font-weight: 600; padding-right: 8px; }
.jts .jts-sectors .jts-cell { height: 24px; min-width: 30px; }
.jts .jts-more-rows > summary { cursor: pointer; color: var(--accent-text); font-size: var(--fs-sm); font-weight: 650; margin-top: 6px; display: inline-block; list-style: none; }
.jts .jts-more-rows > summary::-webkit-details-marker { display: none; }
.jts .jts-more-rows > summary::before, .jts .jts-more-rows[open] > summary::before { content: none; }

/* the ranked list */
.jts .jts-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--text-2); margin-bottom: 8px; }
.jts .jts-legend span { display: inline-flex; align-items: center; gap: 5px; }
.jts .jts-kind { display: inline-grid; place-items: center; width: 22px; height: 20px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line); font-style: normal; font-size: 10.5px; font-weight: 750; color: var(--text-2); letter-spacing: .02em; }
.jts .jts-howto { margin-bottom: 8px; }
.jts .jts-howto > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent-text); list-style: none; }
.jts .jts-howto > summary::-webkit-details-marker { display: none; }
.jts .jts-howto > summary::before, .jts .jts-howto[open] > summary::before { content: none; }
.jts .jts-howto ul { margin: 8px 0 4px; padding: 10px 14px; background: var(--raised); border: 1px solid var(--line-soft); border-radius: 8px; display: grid; gap: 6px; max-width: 90ch; }
.jts .jts-howto li { font-size: var(--fs-sm); color: var(--text-2); padding-left: 12px; position: relative; }
.jts .jts-howto li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 1px; background: var(--text-3); }
.jts .jts-lrows { border-top: 1px solid var(--line); }
.jts .jts-lrows > li { border-bottom: 1px solid var(--line-soft); }
.jts .jts-lrow > summary { position: relative; display: grid; grid-template-columns: 28px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 2.6fr) 108px 150px 44px; gap: 12px; align-items: center; min-height: 52px; padding: 6px 4px; cursor: pointer; list-style: none; }
.jts .jts-lrow > summary::-webkit-details-marker { display: none; }
.jts .jts-lrow > summary::before, .jts .jts-lrow[open] > summary::before { content: none; display: none; }
.jts .jts-lrow > summary:hover { background: var(--raised); }
.jts .jts-l-rank { font-size: var(--fs-sm); font-weight: 700; color: var(--text-3); text-align: right; }
.jts .jts-l-co { min-width: 0; }
.jts .jts-l-link { color: var(--text); text-decoration: none; }
.jts .jts-l-link::after { content: ""; position: absolute; inset: 0 52px 0 0; z-index: 1; }
.jts .jts-l-link:hover .nm { text-decoration: underline; }
.jts .jts-l-co b { font-weight: 750; font-size: var(--fs-body); margin-right: 6px; }
.jts .jts-l-co .nm { color: var(--text-2); font-size: var(--fs-md); }
.jts .jts-l-sector { color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-l-head, .jts .jts-l-more li { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.jts .jts-l-head .lab, .jts .jts-l-more .lab { color: var(--text-2); font-size: var(--fs-sm); }
.jts .jts-l-head b, .jts .jts-l-more b { font-size: var(--fs-lg); font-weight: 750; color: var(--text); }
.jts .jts-l-head b.is-up, .jts .jts-l-more b.is-up, .jts .jts-l-price b.is-up { color: var(--up-text); }
.jts .jts-l-head b.is-down, .jts .jts-l-more b.is-down, .jts .jts-l-price b.is-down { color: var(--down-text); }
.jts .jts-l-head .mult, .jts .jts-l-more .mult { font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); }
.jts .jts-l-kinds { display: flex; gap: 3px; position: relative; z-index: 2; }
.jts .jts-l-price { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.jts .jts-l-price b { font-size: var(--fs-sm); font-weight: 700; min-width: 48px; text-align: right; }
.jts .jts-minispark { display: block; width: 96px; height: 28px; }
.jts .jts-minispark polyline { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; }
.jts .jts-l-exp { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; height: 36px; padding: 0 6px; border-radius: 8px; color: var(--text-2); }
.jts .jts-l-exp small { font-size: var(--fs-xs); font-weight: 700; }
.jts .jts-lrow > summary:focus-visible .jts-l-exp, .jts .jts-l-exp:hover { background: var(--line-soft); color: var(--text); }
.jts .jts-lrow[open] .jts-l-exp .jts-caret { transform: rotate(225deg) translateY(-1px); }
.jts .jts-l-more { padding: 4px 4px 12px 40px; display: grid; gap: 4px; }
.jts .jts-l-more .when { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-l-more .go { margin-top: 4px; font-size: var(--fs-sm); font-weight: 650; }

/* filter popover, data line, footer */
.jts .jts-morefilters { position: relative; }
.jts .jts-morebtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); font-weight: 650; color: var(--text-2); list-style: none; }
.jts .jts-morebtn::-webkit-details-marker { display: none; }
.jts .jts-morebtn::before, .jts .jts-morefilters[open] > .jts-morebtn::before { content: none; }
.jts .jts-morefilters[open] > .jts-morebtn { background: var(--raised); color: var(--text); }
.jts .jts-morepanel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 12px; padding: 14px; min-width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.jts .jts-dataline { margin-top: var(--s5); color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-foot { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-foot span { margin-right: auto; }

@media (max-width: 1180px) {
  .jts .jts-ov-top { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-lrow > summary { grid-template-columns: 24px minmax(0, 2fr) minmax(0, 2.6fr) 100px 140px 40px; }
  .jts .jts-l-sector { display: none; }
}
@media (max-width: 760px) {
  .jts .jts-lrow > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 96px 30px; gap: 8px; min-height: 48px; }
  .jts .jts-l-rank, .jts .jts-l-kinds, .jts .jts-l-co .nm, .jts .jts-l-head .lab { display: none; }
  .jts .jts-l-head { flex-wrap: wrap; gap: 0 6px; }
  .jts .jts-l-price b { display: none; }
  .jts .jts-minispark { width: 80px; }
  .jts .jts-l-link::after { inset: 0 34px 0 0; }
  .jts .jts-l-more { padding-left: 4px; }
  .jts .jts-sm li { grid-template-columns: 92px minmax(0, 1fr) 56px; gap: 8px; }
  .jts .jts-morepanel { left: 0; right: auto; }
}
.jts .jts-sectors .jts-heat { width: 100%; table-layout: fixed; }
.jts .jts-sectors .jts-heat th:first-child { width: 34%; }
.jts .jts-sectors .jts-cell { min-width: 0; }
.jts .jts-morepanel { max-width: calc(100vw - 32px); }
@media (max-width: 760px) {
  .jts .jts-sectors .jts-heat thead th { font-size: 10px; }
  .jts .jts-sectors .jts-heat tbody th { font-size: var(--fs-xs); }
}
.jts .jts-sectors .jts-heat thead th { font-size: 10.5px; letter-spacing: -0.01em; }
.jts .jts-sectors .jts-heat th:first-child { width: 27%; }
.jts .jts-morepanel { min-width: 360px; }

.jts .jts-active-filter { margin: 0 0 var(--s3); padding: 8px 12px; border-radius: 8px; background: var(--accent-soft, rgba(13,148,136,.12)); border: 1px solid var(--accent, #0d9488); font-size: 14px; }
.jts .jts-active-filter a { margin-left: 12px; font-weight: 600; }
.jts .jts-heat .jts-cell.is-on { outline: 3px solid var(--accent, #0d9488); outline-offset: 1px; }

.jts .jts-lhead { display: grid; grid-template-columns: 28px minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, 2.6fr) 108px 150px 44px; gap: 12px; align-items: end; padding: 10px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.jts .jts-lhead small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); font-size: 11.5px; }
.jts .jts-lhead .jts-l-rank { font-size: 12px; }
@media (max-width: 1180px) { .jts .jts-lhead { grid-template-columns: 24px minmax(0, 2fr) minmax(0, 2.6fr) 100px 140px 40px; } }
@media (max-width: 760px) { .jts .jts-lhead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 96px 30px; gap: 8px; } }

/* ---------------------------------------------------------------- round 6: screener, compare, glossary */
/* the Topics dropdown: one column per group */
.jts .jts-dd-panel.jts-dd-wide { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 4px 8px; width: min(1080px, calc(100vw - 48px)); left: 50%; transform: translateX(-30%); padding: 10px; }
.jts .jts-dd-group { min-width: 0; }
.jts .jts-dd-h { font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); padding: 6px 12px 2px; }
@media (max-width: 1100px) { .jts .jts-dd-panel.jts-dd-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); transform: translateX(-20%); } }

/* buttons: quiet by default (ink outline), one primary (blue) */
.jts .jts-btn { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; gap: 6px; }
.jts .jts-btn:hover { filter: none; border-color: var(--text-3); background: var(--raised); }
.jts .jts-btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.jts .jts-btn-primary:hover { background: var(--primary); border-color: var(--primary); filter: brightness(1.08); }
.jts .jts-btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }

/* ready-made questions */
.jts .jts-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.jts .jts-preset { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.jts .jts-preset:hover { border-color: var(--text-3); text-decoration: none; }
.jts .jts-preset.is-on { background: var(--text); border-color: var(--text); color: var(--card); }

/* the filter row */
.jts .jts-sbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--line-soft); }
.jts .jts-sfield input, .jts .jts-sfield select { height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 0 10px; font-size: var(--fs-sm); min-width: 0; max-width: 100%; }
.jts .jts-sfield-q input { width: 240px; }
.jts .jts-sfield select { max-width: 220px; }
.jts .jts-flabel { display: block; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; margin-bottom: 2px; }
.jts .jts-cmpedit { align-items: flex-end; }
.jts .jts-cmpedit .jts-sfield-q input { width: 300px; }
.jobtrends.jts-js .jts .jts-sbar-go { display: none; }
.jts .jts-pop { position: relative; }
.jts .jts-popbtn { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; white-space: nowrap; }
.jts .jts-popbtn::-webkit-details-marker { display: none; }
.jts .jts-popbtn::before { content: none; display: none; }
.jts .jts-pop[open] > .jts-popbtn { border-color: var(--text); }
.jts .jts-poppanel { position: absolute; z-index: 45; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-pop); display: grid; gap: 10px; }
.jts .jts-poppanel-wide { width: min(560px, calc(100vw - 32px)); }
.jts .jts-pophead { font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); padding: 0; border: 0; margin: 0; }
.jts .jts-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.jts .jts-quick a { display: inline-flex; height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--raised); color: var(--text); font-size: var(--fs-sm); text-decoration: none; }
.jts .jts-quick a:hover { background: var(--accent-soft); }
.jts .jts-bounds { display: grid; gap: 4px; max-height: 340px; overflow-y: auto; }
.jts .jts-bound { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 120px; gap: 6px; align-items: center; font-size: var(--fs-sm); }
.jts .jts-bound input { width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; background: var(--card); text-align: right; }
.jts .jts-bound-hint { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-colpick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.jts .jts-colpick label { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); white-space: nowrap; }

/* active filters and the result count */
.jts .jts-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 30px; }
.jts .jts-count { font-size: var(--fs-md); color: var(--text-2); margin-right: 6px; }
.jts .jts-count b { color: var(--text); font-size: var(--fs-lg); font-weight: 700; }
.jts .jts-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 6px; background: var(--accent-soft); color: var(--text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.jts .jts-pill:hover { text-decoration: none; background: var(--line-soft); }
.jts .jts-pill-x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--text-2); font-size: 15px; line-height: 1; }
.jts .jts-pill:hover .jts-pill-x { background: var(--card); color: var(--text); }
.jts .jts-clear { font-size: var(--fs-sm); color: var(--text-2); }

/* the table */
.jts .jts-ttools { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; }
.jts .jts-showing { color: var(--text-3); font-size: var(--fs-sm); margin-right: auto; }
.jts .jts-twrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.jts .jts-screener { width: 100%; min-width: 1180px; table-layout: fixed; border-collapse: collapse; font-size: var(--fs-sm); }
.jts .jts-col-pick { width: 34px; }
.jts .jts-col-co { width: 186px; }
.jts .jts-col-sector { width: 108px; }
.jts .jts-col-price { width: 104px; }
.jts .jts-col-unusual { width: 92px; }
.jts .jts-screener td { }
.jts .jts-screener th, .jts .jts-screener td { padding: 0 5px; height: 40px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; vertical-align: middle; }
.jts .jts-screener thead th { height: auto; padding: 8px 10px; vertical-align: bottom; background: var(--raised); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); white-space: normal; line-height: 1.25; }
.jts .jts-screener thead th.is-num { text-align: right; }
.jts .jts-screener thead th.is-sorted { color: var(--text); }
.jts .jts-screener tbody tr:nth-child(even) { background: var(--zebra); }
.jts .jts-screener tbody tr:hover { background: var(--row-hover); }
.jts .jts-screener tbody tr:last-child > * { border-bottom: 0; }
.jts .jts-screener td.is-num { text-align: right; }
.jts .jts-screener .is-none { color: var(--text-3); }
.jts .jts-th { display: grid; gap: 2px; justify-items: start; }
.jts .is-num > .jts-th { justify-items: end; text-align: right; }
.jts .jts-thtop { display: inline-flex; align-items: flex-start; gap: 4px; }
.jts .jts-th > small { font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.2; }
.jts .jts-sort b { font-weight: 650; color: var(--text); }
.jts .jts-sort { color: inherit; text-decoration: none; display: inline-flex; align-items: flex-start; gap: 3px; min-width: 0; }
.jts .jts-thl { display: grid; gap: 1px; }
.jts .is-num .jts-thl { justify-items: end; text-align: right; }
.jts .jts-thl b { font-weight: 650; color: var(--text); }
.jts .jts-thl small { font-size: 11px; font-weight: 500; color: var(--text-3); line-height: 1.2; }
.jts .jts-c-co .jts-thl b { max-width: none; }
.jts .jts-c-co .jts-sort { max-width: none; }
.jts .jts-sort:hover { color: var(--text); text-decoration: underline; }
.jts .jts-arrow { flex: none; width: 8px; height: 10px; margin-top: 3px; opacity: .35; background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; position: relative; }
.jts .jts-arrow::after { content: ""; position: absolute; left: 1px; width: 4px; height: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; bottom: 0; transform: rotate(45deg); }
.jts .jts-arrow.is-asc::after { bottom: auto; top: 1px; transform: rotate(225deg); }
.jts .jts-arrow.is-desc, .jts .jts-arrow.is-asc { opacity: 1; }
.jts .jts-screener .jts-c-pick { width: 30px; padding-right: 0; }
.jts .jts-c-pick input { width: 16px; height: 16px; accent-color: var(--primary); }
.jts .jts-screener .jts-c-co { font-weight: 400; }
.jts .jts-c-co a { display: flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; }
.jts .jts-c-co a b { font-weight: 700; min-width: 48px; }
.jts .jts-screener thead th:first-child, .jts .jts-screener tbody td:first-child { padding-left: 10px; }
.jts .jts-c-co a span { color: var(--text-2); }
.jts .jts-c-co a:hover span { text-decoration: underline; color: var(--text); }
.jts .jts-screener td.jts-c-sector { color: var(--text-2); }
.jts .jts-screener td.is-num { position: relative; }
.jts .jts-v { position: relative; font-weight: 500; }
.jts .jts-cbar { position: absolute; right: 4px; top: 7px; width: calc(100% - 8px); height: calc(100% - 14px); transform: scaleX(-1); }
.jts .jts-cbar rect { fill: var(--line-soft); height: 100%; }
.jts .jts-cbar.is-up rect { fill: var(--up-soft); }
.jts .jts-cbar.is-down rect { fill: var(--down-soft); }
.jts .jts-pcell { display: inline-flex; align-items: center; gap: 6px; }
.jts .jts-sparkcell .jts-minispark { width: 42px; height: 18px; display: block; }
.jts .jts-sparkcell polyline { fill: none; stroke: var(--neutral); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.jts .jts-sparkcell.is-up polyline { stroke: var(--up); }
.jts .jts-sparkcell.is-down polyline { stroke: var(--down); }
.jts .jts-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--text); color: var(--card); font-weight: 700; font-size: var(--fs-xs); cursor: help; }
.jts .jts-none { color: var(--text-3); }
.jts .jts-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0; color: var(--text-2); font-size: var(--fs-sm); }

/* the (i) tooltip: hover or keyboard focus */
.jts .jts-tip { position: relative; display: inline-flex; flex: none; }
.jts .jts-tip-i { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; font-size: 9.5px; font-weight: 700; font-style: normal; color: var(--text-3); cursor: help; line-height: 1; margin-top: 1px; }
.jts .jts-tip-box { position: absolute; z-index: 30; top: calc(100% + 6px); left: -8px; width: 260px; padding: 8px 10px; border-radius: 6px; background: var(--text); color: var(--card); font-size: var(--fs-xs); font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; display: none; box-shadow: var(--shadow-pop); }
.jts .jts-tip.is-end .jts-tip-box { left: auto; right: -8px; }
.jts .jts-tip:hover .jts-tip-box, .jts .jts-tip:focus .jts-tip-box, .jts .jts-tip:focus-within .jts-tip-box { display: grid; gap: 3px; }
.jts .jts-tip-box b { font-weight: 650; }

/* compare */
.jts .jts-sect { margin-top: var(--s5); }
.jts .jts-h2 { font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.jts .jts-answer { color: var(--text-2); font-size: var(--fs-md); margin-top: 2px; }
.jts .jts-cmptable { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.jts .jts-cmptable th, .jts .jts-cmptable td { padding: 0 12px; height: 38px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.jts .jts-cmptable thead th { background: var(--raised); border-bottom: 1px solid var(--line); height: 48px; }
.jts .jts-cmptable thead a { display: grid; color: var(--text); text-decoration: none; justify-items: end; line-height: 1.25; }
.jts .jts-cmptable thead a span { color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }
.jts .jts-cmptable tbody th { font-weight: 500; color: var(--text-2); }
.jts .jts-cmptable td.is-num, .jts .jts-cmptable th.is-num { text-align: right; }
.jts .jts-cmptable td.is-best { font-weight: 750; }
.jts .jts-cmptable td.is-up { color: var(--up-text); }
.jts .jts-cmptable td.is-down { color: var(--down-text); }
.jts .jts-cmptable tbody tr:last-child > * { border-bottom: 0; }
.jts .jts-cmphead { margin-bottom: 8px; }
.jts .jts-cmpgrid { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.jts .jts-cols-1 { --cols: 1; } .jts .jts-cols-2 { --cols: 2; } .jts .jts-cols-3 { --cols: 3; } .jts .jts-cols-4 { --cols: 4; } .jts .jts-cols-5 { --cols: 5; }
.jts .jts-cmpcell { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 10px 12px 8px; min-width: 0; }
.jts .jts-cmpcell figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); }
.jts .jts-cmpcell figcaption span { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-cbox-sm { height: 150px; }
.jts .jts-none-box { height: 150px; display: grid; place-items: center; color: var(--text-3); font-size: var(--fs-sm); }
.jts .jts-warn { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--down); background: var(--down-soft); font-size: var(--fs-sm); }
@media (max-width: 900px) { .jts .jts-cmpgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .jts .jts-cmpgrid { grid-template-columns: minmax(0, 1fr); } .jts .jts-sfield-q input, .jts .jts-cmpedit .jts-sfield-q input { width: 100%; } .jts .jts-sfield-q { flex: 1 1 100%; } .jts .jts-bound { grid-template-columns: minmax(0, 1fr) 64px 64px; } .jts .jts-bound-hint { display: none; } .jts .jts-ttools { flex-wrap: wrap; } }

/* glossary */
.jts .jts-gloss { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); margin-bottom: var(--s5); }
.jts .jts-gloss-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.jts .jts-gloss dt { font-weight: 700; }
.jts .jts-gloss dd p + p { margin-top: 4px; }
.jts .jts-gloss-ex { color: var(--text-3); font-size: var(--fs-sm); }
@media (max-width: 640px) { .jts .jts-gloss-item { grid-template-columns: minmax(0, 1fr); } }
.jts .jts-rowlab { display: inline-flex; align-items: center; gap: 6px; }
.jts .jts-cmpedit .jts-sfield-q { min-width: 0; max-width: 100%; }
.jts .jts-rowlab small { color: var(--text-3); font-size: var(--fs-xs); }
.jts .jts-twrap { position: relative; }
.jts .jts-headprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 4px; font-size: var(--fs-lg); }
.jts .jts-headprice b { font-size: var(--fs-xl); font-weight: 700; }
.jts .jts-headprice .is-up { color: var(--up-text); font-weight: 600; }
.jts .jts-headprice .is-down { color: var(--down-text); font-weight: 600; }
.jts .jts-headcap { color: var(--text-2); font-size: var(--fs-md); }
.jts .jts-unow { margin: 10px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--text); border-radius: 6px; background: var(--card); }
.jts .jts-unow h2 { font-size: var(--fs-md); font-weight: 700; }
.jts .jts-unow h2 small { font-weight: 400; color: var(--text-3); font-size: var(--fs-sm); margin-left: 6px; }
.jts .jts-unow ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: var(--fs-sm); }
.jts .jts-unow li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text); margin-right: 7px; vertical-align: middle; }
/* the short written read of a company (partials/company_verdict.html): one sentence, up to three tagged points */
.jts .jts-verdict { margin: 10px 0 6px; max-width: 110ch; }
.jts .jts-verdict-h { font-size: var(--fs-lg); font-weight: 400; line-height: 1.35; color: var(--text); }
.jts .jts-verdict ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; font-size: var(--fs-md); color: var(--text-2); }
.jts .jts-verdict li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.jts .jts-vtag { flex: none; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; color: var(--text-2); }
.jts .jts-vtag.is-good { color: var(--up-text); border-color: var(--up-text); background: var(--up-soft); }
.jts .jts-vtag.is-bad { color: var(--down-text); border-color: var(--down-text); background: var(--down-soft); }
.jts .jts-verdict-by { margin-top: 5px; font-size: var(--fs-xs); color: var(--text-3); }
.jts .jts-kind.jts-kind-word { width: auto; padding: 0 6px; font-style: normal; font-size: 11px; white-space: nowrap; }
/* the "Unusual now" reasons and column notes must not be clipped by the table frame: on screens where the table
   fits, the frame does not scroll; below that it scrolls and the last rows open their notes upwards */
.jts .jts-screener td.jts-c-unusual { overflow: visible; }
.jts .jts-badge .jts-tip-box { width: 300px; top: calc(100% + 6px); }
.jts .jts-screener tbody tr:nth-last-child(-n+3):not(:nth-child(-n+3)) .jts-badge .jts-tip-box { top: auto; bottom: calc(100% + 6px); }
@media (min-width: 1240px) { .jts .jts-twrap { overflow: visible; } }

/* findings */
.jts .jts-fcounts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-sm); color: var(--text-2); margin: 4px 0 12px; }
.jts .jts-vtag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: var(--fs-xs); font-weight: 650; border: 1px solid var(--line); background: var(--card); color: var(--text-2); }
.jts .jts-vtag.is-clear { background: var(--text); border-color: var(--text); color: var(--card); }
.jts .jts-vtag.is-weak { border-color: var(--text-3); color: var(--text); }
.jts .jts-vtag.is-none { border-style: dashed; }
.jts .jts-vtag.is-insufficient { color: var(--text-3); }
.jts .jts-notsupported { margin: 8px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--text); border-radius: 6px; background: var(--card); max-width: 980px; }
.jts .jts-notsupported h2 { font-size: var(--fs-lg); font-weight: 700; }
.jts .jts-notsupported .jts-note { margin-top: 2px; }
.jts .jts-notsupported ul { margin-top: 8px; display: grid; gap: 4px; font-size: var(--fs-md); }
.jts .jts-notsupported li { padding-left: 14px; position: relative; }
.jts .jts-notsupported li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 1.5px; background: var(--text-3); }
.jts .jts-flead { margin: 2px 0 10px; }
.jts .jts-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.jts .jts-fcard { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.jts .jts-fcard.is-none, .jts .jts-fcard.is-insufficient { background: var(--raised); }
.jts .jts-fcard-top { display: flex; justify-content: space-between; align-items: center; }
.jts .jts-fcard h3 { font-size: var(--fs-md); font-weight: 650; line-height: 1.35; }
.jts .jts-fdetail { font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-fcaveat { font-size: var(--fs-xs); color: var(--text-3); }
.jts .jts-cbox--lag { height: 190px; }
.jts .jts-rheat { border-collapse: collapse; font-size: var(--fs-xs); margin-bottom: 12px; }
.jts .jts-rheat caption { text-align: left; color: var(--text-3); font-size: var(--fs-sm); padding: 8px 10px; caption-side: top; }
.jts .jts-rheat th, .jts .jts-rheat td { border: 1px solid var(--card); padding: 0 6px; height: 30px; }
.jts .jts-rheat thead th { vertical-align: bottom; height: auto; padding: 6px 4px; font-weight: 600; color: var(--text-2); width: 64px; line-height: 1.2; }
.jts .jts-rheat tbody th { text-align: left; font-weight: 600; color: var(--text-2); white-space: nowrap; padding-right: 10px; }
.jts .jts-rheat td { text-align: center; font-variant-numeric: tabular-nums; color: var(--text); min-width: 52px; }
.jts .jts-rheat td.is-pos1 { background: var(--heat-1); } .jts .jts-rheat td.is-pos2 { background: var(--heat-3); } .jts .jts-rheat td.is-pos3 { background: var(--heat-5); color: var(--heat-ink-dark); }
.jts .jts-rheat td.is-neg1 { background: var(--down-soft); } .jts .jts-rheat td.is-neg2 { background: #f2b48f; color: #1a0f08; } .jts .jts-rheat td.is-neg3 { background: var(--down); color: #fff; }
.jts .jts-rheat td.is-self { background: var(--line-soft); }
.jts .jts-rheat td.is-zero, .jts .jts-rheat td.is-na { background: var(--raised); color: var(--text-3); }
@media (max-width: 560px) { .jts .jts-fgrid { grid-template-columns: minmax(0, 1fr); } }
.jts .jts-follows { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.jts .jts-divbars { display: grid; gap: 3px; margin: 4px 0 2px; }
.jts .jts-divhead { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.jts .jts-divrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 70px; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.jts .jts-divlab small { color: var(--text-3); font-size: 11px; }
.jts .jts-divrow svg { width: 100%; height: 16px; display: block; }
.jts .jts-divrow rect.is-up { fill: var(--up); }
.jts .jts-divrow rect.is-down { fill: var(--down); }
.jts .jts-divrow line { stroke: var(--text); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.jts .jts-divval { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.jts .jts-frest { margin-top: 10px; }
.jts .jts-frest > summary { cursor: pointer; font-weight: 650; font-size: var(--fs-sm); padding: 6px 0; }
.jts .jts-frest > .jts-fgrid { margin-top: 8px; }
.jts .jts-lagnames { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: 11px; font-weight: 600; color: var(--text-2); margin-top: -2px; }
.jts .jts-lagnames span:nth-child(2) { color: var(--text-3); font-weight: 500; text-align: center; }
.jts .jts-lagnames span:last-child { text-align: right; }

/* ---------------------------------------------------------------- density: compact by default
   (12.5 px numbers, ~30 px rows, fixed numeric widths so 18 columns fit at 1440 px); "Comfortable" restores the
   roomier sizes. Text is never cut: names and sectors wrap, numbers stay on one line. */
.jts .jts-head { padding: 14px 0 10px; }
.jts .jts-presets { margin-bottom: 6px; gap: 5px; }
.jts .jts-preset { height: 28px; padding: 0 10px; }
.jts .jts-presetwrap { display: inline-flex; align-items: center; gap: 3px; }
.jts .jts-presetwrap .jts-tip-box { left: auto; right: -8px; }
.jts .jts-presetnote { font-size: var(--fs-sm); color: var(--text-2); margin: 0 0 6px; max-width: 110ch; }
.jts .jts-presetnote.is-warn { border-left: 3px solid var(--down); padding-left: 8px; }
.jts .jts-sbar { padding: 6px 0 8px; gap: 6px; }
.jts .jts-sline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 6px; }
.jts .jts-sline .jts-ttools { margin: 0; }
.jts .jts-sline .jts-showing { margin-right: 4px; }
.jts .jts-density { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; }
.jts .jts-density a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); text-decoration: none; }
.jts .jts-density a[aria-current="true"] { background: var(--text); color: var(--card); border-radius: 5px; }
.jts .jts-screener { min-width: 1316px; font-size: 12.5px; }
.jts .jts-screener th, .jts .jts-screener td { height: 29px; padding: 0 4px; }
.jts .jts-screener thead th { padding: 4px 4px; font-size: 11.5px; }
.jts .jts-screener thead tr.jts-groups th, .jts .jts-screener thead tr.jts-groups td { height: auto; padding: 4px 4px 2px; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--card); border-bottom: 0; text-align: center; }
.jts .jts-screener thead tr.jts-groups th.is-group { box-shadow: inset 0 -2px 0 var(--text-3); }
.jts .jts-screener thead tr.jts-groups th + th.is-group { border-left: 6px solid var(--card); }
.jts .jts-th > small { font-size: 10.5px; }
.jts .jts-col-pick { width: 26px; }
.jts .jts-col-co { width: 150px; }
.jts .jts-col-sector { width: 84px; }
.jts .jts-col-price { width: 82px; }
.jts .jts-col-jobs_chg { width: 84px; }
.jts .jts-col-unusual { width: 56px; }
.jts .jts-screener .jts-c-co, .jts .jts-screener td.jts-c-sector { white-space: normal; line-height: 1.2; padding-top: 3px; padding-bottom: 3px; }
.jts .jts-c-co a { flex-wrap: wrap; gap: 0 6px; }
.jts .jts-c-co a b { min-width: 0; }
.jts .jts-sparkcell .jts-minispark { width: 34px; height: 14px; }
.jts .jts-pcell { gap: 4px; }
.jts .jts-cbar { top: 5px; height: calc(100% - 10px); }
.jts .jts-badge { min-width: 18px; height: 18px; font-size: 11px; }
.jts .jts-tip-i { width: 12px; height: 12px; font-size: 8.5px; }
.jts .jts-c-pick input { width: 14px; height: 14px; }
.jts .is-comfortable .jts-screener { font-size: 13px; }
.jts .is-comfortable .jts-screener th, .jts .is-comfortable .jts-screener td { height: 40px; padding: 0 6px; }
.jts .is-comfortable .jts-screener thead th { font-size: 12px; padding: 8px 6px; }
.jts .is-comfortable .jts-sparkcell .jts-minispark { width: 42px; height: 18px; }
/* compare and topic record tables: the same compact density */
.jts .jts-cmptable { font-size: 12.5px; }
.jts .jts-cmptable th, .jts .jts-cmptable td { height: 30px; padding: 0 8px; }
.jts .jts-table { font-size: 12.5px; }
.jts .jts-table th, .jts .jts-table td { padding-top: 5px; padding-bottom: 5px; }
/* phones: roomier rows and tap targets */
@media (max-width: 700px) {
  .jts .jts-screener { min-width: 1240px; font-size: 13px; }
  .jts .jts-screener th, .jts .jts-screener td { height: 40px; padding: 0 6px; }
  .jts .jts-c-pick input { width: 20px; height: 20px; }
}
.jts .jts-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.jts .jts-headline .jts-sub { margin: 0; font-size: var(--fs-md); }
.jts .jts-screener .jts-th { justify-items: stretch; }
.jts .jts-screener .is-num > .jts-th { text-align: right; }
.jts .jts-screener .is-num .jts-thtop { justify-content: flex-end; }
.jts .jts-screener .jts-th > small { display: block; }
.jts .jts-screener th, .jts .jts-screener td { height: 28px; }
.jts .jts-col-co { width: 178px; }
.jts .jts-col-visa { width: 82px; }
@media (max-width: 700px) { .jts .jts-headline { display: block; } }
/* explicit widths (sum 1318 px, the table at a 1440 px window): numbers stay on one line, names wrap */
.jts .jts-screener .jts-col-pick { width: 24px; }
.jts .jts-screener .jts-col-co { width: 148px; }
.jts .jts-screener .jts-col-sector { width: 74px; }
.jts .jts-screener .jts-col-cap { width: 58px; }
.jts .jts-screener .jts-col-price { width: 80px; }
.jts .jts-screener .jts-col-insider { width: 64px; }
.jts .jts-screener .jts-col-holders { width: 76px; }
.jts .jts-screener .jts-col-inst_pct { width: 76px; }
.jts .jts-screener .jts-col-pe { width: 52px; }
.jts .jts-screener .jts-col-ps { width: 52px; }
.jts .jts-screener .jts-col-net_margin { width: 60px; }
.jts .jts-screener .jts-col-net_income { width: 68px; }
.jts .jts-screener .jts-col-net_debt { width: 72px; }
.jts .jts-screener .jts-col-short_pct { width: 58px; }
.jts .jts-screener .jts-col-short_dtc { width: 54px; }
.jts .jts-screener .jts-col-short_chg { width: 58px; }
.jts .jts-screener .jts-col-summary { width: 330px; }
.jts .jts-screener td.jts-c-summary { white-space: normal; line-height: 1.25; padding-top: 3px; padding-bottom: 3px; color: var(--text-2); }
.jts .jts-twrap.is-wide { overflow-x: auto; } /* optional columns: wider than the page, scrolls in its frame */
.jts .jts-screener .jts-col-jobs { width: 50px; }
.jts .jts-screener .jts-col-jobs_chg { width: 76px; }
.jts .jts-screener .jts-col-employees { width: 66px; }
.jts .jts-screener .jts-col-visa { width: 72px; }
.jts .jts-screener .jts-col-revenue { width: 60px; }
.jts .jts-screener .jts-col-capex { width: 62px; }
.jts .jts-screener .jts-col-contracts { width: 60px; }
.jts .jts-screener .jts-col-lobbying { width: 60px; }
.jts .jts-screener .jts-col-layoffs { width: 54px; }
.jts .jts-screener .jts-col-news { width: 48px; }
.jts .jts-screener .jts-col-news_x { width: 56px; }
.jts .jts-screener .jts-col-unusual { width: 54px; }
.jts .jts-screener thead th .jts-th { display: grid; gap: 1px; }
.jts .jts-screener .jts-sort { display: block; }
.jts .jts-screener .jts-sort b { display: block; line-height: 1.15; }
.jts .jts-thsub { display: flex; align-items: flex-end; gap: 3px; }
.jts .is-num .jts-thsub { justify-content: flex-end; }
.jts .jts-thsub small { font-size: 10.5px; font-weight: 500; color: var(--text-3); line-height: 1.15; }
.jts .jts-thsub .jts-arrow { margin: 0 0 2px; }
.jts .jts-sbar .jts-ttools { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.jts .jts-sbar .jts-showing { font-size: var(--fs-sm); color: var(--text-3); margin-right: 2px; }
.jts .jts-sbar .jts-showing b { color: var(--text); }
.jts .jts-pills { margin-bottom: 6px; }
.jts .jts-screener .jts-th2 { display: block; line-height: 1.15; }
.jts .jts-screener .is-num > .jts-th2 { text-align: right; }
.jts .jts-screener .jts-th2 .jts-sort { display: inline; }
.jts .jts-screener .jts-th2 .jts-sort b { display: inline; font-weight: 650; color: var(--text); }
.jts .jts-screener .jts-th2 .jts-tip { display: inline-flex; vertical-align: -2px; }
.jts .jts-screener .jts-th2 .jts-arrow { display: inline-block; vertical-align: -1px; margin: 0 0 0 2px; }
.jts .jts-screener .jts-th2 small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); margin-top: 1px; }
.jts .jts-sbar .jts-sfield-q input { width: 180px; }
.jts .jts-sbar .jts-sfield select { max-width: 170px; }

/* company page: articles that name the company (the articles app, when installed) */
.jts .jts-artlist { list-style: none; margin: 0; padding: 0; }
.jts .jts-artlist li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s4); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.jts .jts-artlist a { font-weight: 650; color: var(--text); text-decoration: none; }
.jts .jts-artlist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jts .jts-artlist span { color: var(--text-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Compact mode
   <html data-jt-density="compact"> (the "Compact" switch in the user menu, core prefs.js). tokens.css takes
   type, space and radius one step down; here: the blocks whose sizes are not tokens. More fits on the
   screen; text still wraps and is never cut. Phones keep their tap-target sizes for table rows. */
html[data-jt-density="compact"] .jts .jts-menu-btn { height: 32px; padding: 0 10px; }
html[data-jt-density="compact"] .jts .jts-iconbtn { width: 32px; height: 32px; }
html[data-jt-density="compact"] .jts .jts-user-btn .jts-ico { width: 23px; height: 23px; }
html[data-jt-density="compact"] .jts .jts-brand { font-size: 18px; }
html[data-jt-density="compact"] .jts .jts-searchbox-row { height: 34px; }
html[data-jt-density="compact"] .jts .jts-searchbox input[type="search"] { height: 30px; }
html[data-jt-density="compact"] .jts .jts-searchbox .jts-search-go { height: 24px; }
html[data-jt-density="compact"] .jts .jts-searchbox .jts-search-close { width: 26px; height: 26px; }
html[data-jt-density="compact"] .jts .jts-dd-panel a, html[data-jt-density="compact"] .jts .jts-sheet a { padding: 6px 10px; gap: 1px; }
html[data-jt-density="compact"] .jts .jts-suggest a { padding: 5px 10px; }
html[data-jt-density="compact"] .jts .jts-pref { padding: 7px 4px 5px; }
html[data-jt-density="compact"] .jts.jts-page { padding-bottom: var(--s6); }
html[data-jt-density="compact"] .jts .jts-head { padding: 8px 0 6px; }
html[data-jt-density="compact"] .jts .jts-sub { margin-top: 2px; }
html[data-jt-density="compact"] .jts .jts-kpi { padding: 8px 10px 6px; gap: 1px; }
html[data-jt-density="compact"] .jts .jts-card { padding: 10px 12px 8px; }
html[data-jt-density="compact"] .jts .jts-filterbar { padding: 4px 8px; }
html[data-jt-density="compact"] .jts .jts-apply, html[data-jt-density="compact"] .jts .jts-btn, html[data-jt-density="compact"] .jts .jts-popbtn, html[data-jt-density="compact"] .jts .jts-morebtn,
html[data-jt-density="compact"] .jts .jts-sel select, html[data-jt-density="compact"] .jts .jts-axes select, html[data-jt-density="compact"] .jts .jts-sfield input, html[data-jt-density="compact"] .jts .jts-sfield select,
html[data-jt-density="compact"] .jts .jts-search input, html[data-jt-density="compact"] .jts .jts-search-go { height: 27px; }
html[data-jt-density="compact"] .jts .jts-preset, html[data-jt-density="compact"] .jts .jts-pill, html[data-jt-density="compact"] .jts .jts-quick a, html[data-jt-density="compact"] .jts .jts-density a, html[data-jt-density="compact"] .jts .jts-bound input { height: 24px; }
html[data-jt-density="compact"] .jts .jts-l-exp { height: 30px; }
html[data-jt-density="compact"] .jts .jts-table { font-size: 12px; }
html[data-jt-density="compact"] .jts .jts-lhead { padding: 6px 4px 5px; font-size: 11px; }
html[data-jt-density="compact"] .jts .jts-cbox--main { height: 280px; }
html[data-jt-density="compact"] .jts .jts-cbox--story { height: 310px; }
html[data-jt-density="compact"] .jts .jts-cbox--second { height: 230px; }
html[data-jt-density="compact"] .jts .jts-cbox--hist { height: 200px; }
html[data-jt-density="compact"] .jts .jts-cbox--scatter { height: 290px; }
html[data-jt-density="compact"] .jts .jts-cbox--mini { height: 120px; }
@media (min-width: 701px) {
  html[data-jt-density="compact"] .jts .jts-table th, html[data-jt-density="compact"] .jts .jts-table td { padding: 3px 8px; }
  html[data-jt-density="compact"] .jts .jts-screener { font-size: 12px; }
  html[data-jt-density="compact"] .jts .jts-screener th, html[data-jt-density="compact"] .jts .jts-screener td { height: 24px; }
  html[data-jt-density="compact"] .jts .jts-screener thead th { padding: 3px 4px; font-size: 11px; }
  html[data-jt-density="compact"] .jts .is-comfortable .jts-screener th, html[data-jt-density="compact"] .jts .is-comfortable .jts-screener td { height: 32px; }
  html[data-jt-density="compact"] .jts .jts-cmptable { font-size: 12px; }
  html[data-jt-density="compact"] .jts .jts-cmptable th, html[data-jt-density="compact"] .jts .jts-cmptable td { height: 25px; padding: 0 6px; }
  html[data-jt-density="compact"] .jts .jts-cmptable thead th { height: 38px; }
  html[data-jt-density="compact"] .jts .jts-rheat th, html[data-jt-density="compact"] .jts .jts-rheat td { height: 25px; }
}
/* company Overview, "Latest records": compact tables of names and amounts (services/records.py). Text wraps,
   nothing is cut; on a narrow screen a table scrolls sideways inside its own frame. */
.jts .jts-recgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: start; }
.jts .jts-rec { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3) var(--s3) var(--s2); }
.jts .jts-rec.is-wide { grid-column: 1 / -1; }
.jts .jts-rec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s3); }
.jts .jts-rec-head h3 { font-size: var(--fs-body); font-weight: 700; }
.jts .jts-rec-head a { font-size: var(--fs-sm); font-weight: 600; }
.jts .jts-rec-line { margin: 2px 0 var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.jts .jts-rec-frame { overflow-x: auto; border-top: 1px solid var(--line); }
.jts .jts-rectable { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.35; }
.jts .jts-rectable th { text-align: left; font-weight: 650; font-size: var(--fs-xs); color: var(--text-3); padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.jts .jts-rectable td { padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: break-word; }
.jts .jts-rectable tr:last-child td { border-bottom: 0; }
.jts .jts-rectable th:last-child, .jts .jts-rectable td:last-child { padding-right: 0; }
.jts .jts-rectable td.when { white-space: nowrap; color: var(--text-2); }
.jts .jts-rectable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.jts .jts-rectable td.is-up { color: var(--up-text); font-weight: 650; }
.jts .jts-rectable td.is-down { color: var(--down-text); font-weight: 650; }
.jts .jts-rectable td:last-child a { white-space: nowrap; }
.jts .jts-rectable small { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 400; white-space: normal; }
@media (max-width: 1000px) { .jts .jts-recgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .jts .jts-rectable td, .jts .jts-rectable th { padding-right: 6px; } .jts .jts-rectable td.when { white-space: normal; } }

/* ---- company page: profile and fundamentals (partials/company_profile.html) ---- */
.jts .jts-prof { margin: var(--s3) 0 var(--s4); padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.jts .jts-prof-fund, .jts .jts-prof > div { min-width: 0; }
.jts .jts-prof-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px var(--s4); }
.jts .jts-prof-head h2 { font-size: var(--fs-lg); font-weight: 750; }
.jts .jts-prof-head p { font-size: var(--fs-sm); color: var(--text-3); }
.jts .jts-prof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s3) var(--s6); align-items: start; }
.jts .jts-prof-about { display: grid; gap: var(--s3); min-width: 0; }
.jts .jts-prof-desc { font-size: var(--fs-md); line-height: 1.45; overflow-wrap: anywhere; }
.jts .jts-prof-desc.is-long { font-size: var(--fs-xs); line-height: 1.4; color: var(--text-2); }
.jts .jts-prof-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; font-size: var(--fs-sm); }
.jts .jts-prof-facts dt { color: var(--text-3); }
.jts .jts-prof-facts dd { overflow-wrap: anywhere; }
.jts .jts-prof-facts dd small { color: var(--text-3); font-size: inherit; }
.jts .jts-ftable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.jts .jts-ftable caption { text-align: left; font-size: var(--fs-sm); color: var(--text-3); padding-bottom: 4px; }
.jts .jts-ftable th, .jts .jts-ftable td { padding: 3px 0 3px 12px; border-bottom: 1px solid var(--line-soft); text-align: right; vertical-align: baseline; }
.jts .jts-ftable td { white-space: nowrap; } /* figures stay whole; names and headers wrap */
.jts .jts-ftable tbody th { overflow-wrap: anywhere; }
.jts .jts-ftable thead th { font-weight: 650; color: var(--text-2); border-bottom-color: var(--line); }
.jts .jts-ftable th:first-child, .jts .jts-ftable td:first-child { text-align: left; padding-left: 0; }
.jts .jts-ftable tbody th { font-weight: 500; color: var(--text); }
.jts .jts-ftable tbody th .jts-tip { vertical-align: -1px; margin-left: 3px; }
.jts .jts-ftable td.now { font-weight: 700; }
.jts .jts-ftable td.now.is-neg { color: var(--down-text); }
.jts .jts-ftable td.ago, .jts .jts-ftable td.med { color: var(--text-2); }
.jts .jts-ftable td.is-unknown { color: var(--text-3); font-weight: 400; }
.jts .jts-ftable tr.is-self th, .jts .jts-ftable tr.is-self td { font-weight: 700; background: var(--accent-soft); }
.jts .jts-ftable tr.is-self th:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }
.jts .jts-ftable .tk { color: var(--text-3); font-weight: 500; margin-left: 5px; }
.jts .jts-prof-note { font-size: var(--fs-xs); color: var(--text-3); }
.jts .jts-prof-sub { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.jts .jts-prof-sub small { font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: inherit; }
.jts .jts-qfig { margin: 0; display: grid; gap: 3px; }
.jts .jts-qfig figcaption { font-size: var(--fs-sm); }
.jts .jts-qfig figcaption b { font-weight: 700; }
.jts .jts-qbars { display: block; width: 100%; height: 84px; overflow: visible; }
.jts .jts-qbars rect.is-rev { fill: var(--neutral-soft); }
.jts .jts-qbars rect.is-inc { fill: var(--up); }
.jts .jts-qbars rect.is-loss { fill: var(--down); }
.jts .jts-qbars rect:hover { opacity: 0.75; }
.jts .jts-qzero { stroke: var(--text-3); stroke-width: 1; }
.jts .jts-qaxis { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: var(--fs-xs); color: var(--text-3); }
.jts .jts-qkey { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.jts .jts-qkey i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.jts .jts-qkey i.rev { background: var(--neutral-soft); }
.jts .jts-qkey i.inc { background: var(--up); }
.jts .jts-qkey i.loss { background: var(--down); }
@media (max-width: 860px) {
  .jts .jts-prof-grid { grid-template-columns: minmax(0, 1fr); }
  .jts .jts-prof { padding: 10px 12px; }
  .jts .jts-ftable th, .jts .jts-ftable td { padding-left: 8px; }
}
