/* Deep company pages. Same family as MuskHQ: neumorphic pills, lane timelines, chart chrome. */

body.jw-deep #coSheet{display:none !important}
body.jw-deep:not(.jw-show-pack) #nvdaPack{display:none !important}
#jwLegacyPark{display:none !important}
#jwDeep{display:block;max-width:100%;min-width:0;margin-top:6px}
#jwDeep[hidden]{display:none !important}
#jwDeep,#jwDeep *{box-sizing:border-box}

.jw-qstrip{
  font-size:0.78rem;line-height:1.45;color:var(--text2);margin:0 0 12px;
  display:flex;flex-wrap:wrap;gap:4px 14px;
}
.jw-qstrip .jw-qintro{flex:1 1 100%;color:var(--text);font-size:0.92rem;line-height:1.4;margin-bottom:2px}
.jw-qstrip .jw-qitem b{color:var(--text);font-weight:700}
.jw-qstrip a{color:var(--text2);text-decoration:none}
.jw-qstrip a:hover{text-decoration:underline}
.jw-intro{
  padding:16px 18px;border-radius:18px;margin:0 0 12px;max-width:100%;
}
body.jw-fisher-business .fisher-cat:not([data-fisher="business"]),
body.jw-fisher-financial .fisher-cat:not([data-fisher="financial"]),
body.jw-fisher-management .fisher-cat:not([data-fisher="management"]){display:none}
#jwDeep .hero-stats{margin-top:4px}
#jwDeep .stat-value{color:var(--accent)}
.jw-intro p{font-size:0.95rem;line-height:1.45;margin:0 0 6px}
.jw-ceo{font-size:0.78rem;color:var(--text2);font-weight:600}

.jw-facts{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px;
}
.jw-fact{padding:12px 12px 10px;border-radius:16px;min-width:0}
.jw-fact-l{font-size:0.68rem;font-weight:700;letter-spacing:0.04em;text-transform:uppercase;color:var(--text2);margin-bottom:4px}
.jw-fact-v{font-size:0.98rem;font-weight:800;letter-spacing:-0.02em;line-height:1.25;overflow-wrap:anywhere}
.jw-fact-src{display:inline-block;margin-top:6px;font-size:0.68rem;color:var(--text2);text-decoration:none}
.jw-fact-src:hover{text-decoration:underline}

.jw-tabbar,.jw-subbar,.jw-sub2bar{margin:0 0 8px;max-width:100%;min-width:0}
.jw-rail{
  display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;
  max-width:100%;padding:5px;border-radius:16px;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;scrollbar-width:none;
}
.jw-rail::-webkit-scrollbar{display:none}
.jw-rail .subtab,.jw-rail .inner-chip{flex:0 0 auto;white-space:nowrap}
.subtab{padding:8px 14px;font-size:0.84rem;font-weight:650;border-radius:12px;min-height:36px}
.inner-chip{padding:6px 12px;font-size:0.78rem;font-weight:600;border-radius:999px;min-height:32px}
.jw-sub2bar .jw-rail{background:transparent;box-shadow:none;padding:2px 0 6px}

.jw-block{margin:0 0 14px;max-width:100%;min-width:0}
.jw-card{padding:16px 16px 12px;border-radius:20px;max-width:100%;min-width:0;overflow:hidden}
.jw-card .chart-title{font-size:1rem;font-weight:700;letter-spacing:-0.02em}
.jw-card-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.jw-note{font-size:0.75rem;color:var(--text2);line-height:1.4;margin:6px 0 0}
.jw-src{margin-top:8px;font-size:0.72rem;color:var(--text2);display:flex;flex-wrap:wrap;gap:4px 10px}
.jw-src a{color:var(--text2);text-decoration:none}
.jw-src a:hover{text-decoration:underline}

.jw-kpi{display:flex;flex-direction:column;align-items:flex-end;gap:1px;min-width:0}
.jw-kpi b{font-size:1.15rem;font-weight:800;color:var(--accent);letter-spacing:-0.03em}
.jw-kpi span{font-size:0.68rem;color:var(--text2);font-weight:600}

.jw-leg{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:0.7rem;color:var(--text2);margin:0 0 6px}
.jw-leg span{display:inline-flex;align-items:center}
.jw-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;box-shadow:2px 2px 4px var(--sd),-2px -2px 4px var(--sl)}
.jw-dot.jw-k-claim{background:transparent;box-shadow:inset 0 0 0 2px var(--text2)}
.jw-dot.st-hit{background:var(--green)}
.jw-dot.st-missed{background:var(--red)}
.jw-dot.st-pending{background:var(--text2);box-shadow:none}

.jw-lane{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:center;margin-bottom:6px}
.jw-lane-name{font-size:0.72rem;font-weight:800;color:var(--text2);letter-spacing:0.02em}

.jw-tl{
  display:block;overflow-x:auto;overflow-y:hidden;width:100%;min-width:0;max-width:100%;
  height:236px;padding:8px 0 10px;position:relative;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;touch-action:pan-x;
  scrollbar-color:color-mix(in srgb, var(--text2) 55%, transparent) transparent;
}
.jw-tl::-webkit-scrollbar{height:8px;background:transparent}
.jw-tl::-webkit-scrollbar-thumb{background:color-mix(in srgb, var(--text2) 45%, transparent);border-radius:999px}
#jwDeep .timeline-track-inner{position:relative;height:200px;min-height:200px}
#jwDeep .timeline-axis-line{position:absolute;top:50%;height:2px;background:var(--sd);transform:translateY(-50%);pointer-events:none;z-index:0}
#jwDeep .tl-year-tick{position:absolute;top:50%;left:0;width:0;height:0;z-index:2;pointer-events:none}
#jwDeep .tl-year-mark{position:absolute;left:0;top:0;width:9px;height:9px;border-radius:50%;background:var(--text);transform:translate(-50%,-50%);box-shadow:0 0 0 2px var(--bg)}
#jwDeep .tl-year-lab{position:absolute;left:0;top:12px;transform:translateX(-50%);font-size:0.64rem;font-weight:700;color:var(--text);white-space:nowrap}
#jwDeep .tl-now-tick{position:absolute;top:50%;left:0;width:0;height:0;z-index:4;pointer-events:none}
#jwDeep .tl-now-mark{position:absolute;left:0;top:-12px;width:8px;height:8px;background:#C4A35A;transform:translate(-50%,-50%) rotate(45deg);border-radius:1px}
#jwDeep .tl-now-lab{position:absolute;left:0;bottom:20px;transform:translateX(-50%);font-size:0.52rem;font-weight:700;color:#C4A35A;white-space:nowrap;line-height:1}
#jwDeep .jw-tl .milestone{position:absolute;top:50%;left:0;width:0;height:0;min-width:0;margin:0;padding:0;display:block;z-index:2;pointer-events:none}
#jwDeep .jw-tl .milestone-dot{
  position:absolute;left:0;top:0;margin:0;width:18px;height:18px;border-radius:50%;background:var(--accent);
  transform:translate(-50%,-50%);z-index:5;pointer-events:auto;cursor:pointer;
  box-shadow:3px 3px 6px var(--sd),-3px -3px 6px var(--sl);
}
#jwDeep .jw-tl .milestone-lab{position:absolute;left:0;text-align:center;box-sizing:border-box;pointer-events:none}
#jwDeep .jw-tl .milestone.tl-beside .milestone-lab{display:flex;flex-direction:row;align-items:center;gap:6px;white-space:nowrap;bottom:auto;padding:0}
#jwDeep .jw-tl .milestone.tl-beside-left .milestone-lab{justify-content:flex-end;text-align:right}
#jwDeep .jw-tl .milestone.tl-beside-right .milestone-lab{justify-content:flex-start;text-align:left}
#jwDeep .jw-tl .milestone.tl-beside .milestone-year,
#jwDeep .jw-tl .milestone.tl-beside .milestone-name{display:inline;margin:0;max-width:none;white-space:nowrap;overflow:visible;line-height:1.15}
#jwDeep .jw-tl .milestone-name{pointer-events:auto;cursor:pointer}
#jwDeep .jw-tl .milestone.tl-up .milestone-lab{bottom:13px}
#jwDeep .jw-tl .milestone.tl-down .milestone-lab{top:15px}
#jwDeep .jw-tl .milestone-year{white-space:nowrap;font-size:0.62rem;line-height:1.15;font-weight:600;color:inherit}
#jwDeep .jw-tl .milestone-name{
  max-width:100%;font-size:0.64rem;line-height:1.25;overflow:visible;white-space:normal;
  text-align:center;display:block;color:inherit;text-decoration:none;
}
#jwDeep .jw-tl .milestone.jw-k-launch .milestone-dot{background:var(--teal)}
#jwDeep .jw-tl .milestone.jw-k-launch,
#jwDeep .jw-tl .milestone.jw-k-launch .milestone-year,
#jwDeep .jw-tl .milestone.jw-k-launch .milestone-name{color:var(--teal)}
#jwDeep .jw-tl .milestone.jw-k-product .milestone-dot{background:var(--accent)}
#jwDeep .jw-tl .milestone.jw-k-deal .milestone-dot{background:var(--purple)}
#jwDeep .jw-tl .milestone.jw-k-deal,
#jwDeep .jw-tl .milestone.jw-k-deal .milestone-year,
#jwDeep .jw-tl .milestone.jw-k-deal .milestone-name{color:var(--purple)}
#jwDeep .jw-tl .milestone.jw-k-money .milestone-dot{background:var(--green)}
#jwDeep .jw-tl .milestone.jw-k-money,
#jwDeep .jw-tl .milestone.jw-k-money .milestone-year,
#jwDeep .jw-tl .milestone.jw-k-money .milestone-name{color:var(--green)}
#jwDeep .jw-tl .milestone.tl-claim .milestone-dot{width:12px;height:12px;background:color-mix(in srgb, var(--text2) 55%, transparent);box-shadow:none}
#jwDeep .jw-tl .milestone.tl-claim,
#jwDeep .jw-tl .milestone.tl-claim .milestone-year,
#jwDeep .jw-tl .milestone.tl-claim .milestone-name{color:var(--text2);font-weight:600}
#jwDeep .jw-tl .milestone.tl-claim-met .milestone-dot{background:var(--green)}
#jwDeep .jw-tl .milestone.tl-claim-met,
#jwDeep .jw-tl .milestone.tl-claim-met .milestone-year,
#jwDeep .jw-tl .milestone.tl-claim-met .milestone-name{color:var(--green)}
#jwDeep .jw-tl .milestone.tl-claim-missed .milestone-dot{background:var(--red)}
#jwDeep .jw-tl .milestone.tl-claim-missed,
#jwDeep .jw-tl .milestone.tl-claim-missed .milestone-year,
#jwDeep .jw-tl .milestone.tl-claim-missed .milestone-name{color:var(--red)}

.jw-charts{display:grid;grid-template-columns:1fr;gap:14px}
.jw-chart .chart-canvas{width:100%;height:240px;display:block;border-radius:14px;touch-action:pan-y}
.jw-chart .canvas-wrap{position:relative}
.chart-legend-pills{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:10px}
.chart-leg-pill{
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--line);cursor:pointer;
  font-family:inherit;font-size:0.78rem;line-height:1.2;padding:6px 10px;border-radius:999px;
  background:var(--card);color:var(--text2);font-weight:500;
  box-shadow:none;
}
.chart-leg-pill:hover{color:var(--text)}
.chart-leg-pill.is-on{color:var(--text);font-weight:800;border-color:color-mix(in srgb, var(--accent) 45%, var(--line));box-shadow:none}
.chart-leg-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.chart-leg-val{font-variant-numeric:tabular-nums;font-weight:700}
.range-btns{display:flex;gap:6px;flex-wrap:wrap}
.range-btn{padding:6px 12px;font-size:0.75rem;font-weight:600;border-radius:10px}
.range-btn.active{color:var(--accent);font-weight:800}
.jw-tip{
  position:fixed;z-index:70;pointer-events:none;padding:6px 10px;border-radius:10px;
  background:var(--text);color:var(--bg);font-size:0.75rem;font-weight:650;line-height:1.35;
  box-shadow:0 2px 8px rgba(0,0,0,0.2);max-width:min(280px,calc(100vw - 16px));
}
.jw-tip .tt-k{font-weight:500;opacity:0.75;font-size:0.68rem}

.jw-map{height:320px;border-radius:16px;overflow:hidden;background:var(--bg);z-index:1}
.jw-map .leaflet-container{height:100%;width:100%;background:var(--bg);font-family:inherit}
.jw-pop{
  position:fixed;z-index:80;max-width:min(360px,calc(100vw - 20px));padding:12px 14px;border-radius:16px;
  background:var(--bg);color:var(--text);
  box-shadow:8px 8px 16px var(--sd),-8px -8px 16px var(--sl);
}
.jw-pop-date{font-size:0.68rem;font-weight:800;color:var(--text2);letter-spacing:0.03em}
.jw-pop-label{font-size:0.95rem;font-weight:800;margin:4px 0}
.jw-pop-detail{font-size:0.8rem;line-height:1.4;margin:0 0 8px}
.jw-pop a{color:var(--teal);font-size:0.78rem;font-weight:700}
.jw-pop-x{
  position:absolute;top:6px;right:6px;width:28px;height:28px;border:none;border-radius:8px;
  background:transparent;color:var(--text2);cursor:pointer;font-size:1rem;
}

@media(min-width:980px){
  .jw-charts{grid-template-columns:1fr 1fr}
  .jw-charts .jw-span{grid-column:1 / -1}
}
@media(max-width:800px){
  .jw-facts{grid-template-columns:1fr 1fr}
  .jw-lane{grid-template-columns:minmax(0,1fr)}
  .jw-chart .chart-canvas{height:210px}
  .jw-map{height:260px}
  .jw-kpi{align-items:flex-start}
}
@media(max-width:480px){
  .jw-facts{grid-template-columns:1fr 1fr;gap:8px}
  .jw-fact{padding:10px}
  .jw-fact-v{font-size:0.88rem}
  .subtab{padding:8px 12px;font-size:0.78rem}
}
