/* Month by month, year by year cards: option c (19 Nov 2026). Every selector starts with #what-if. */
/* Idea, chart first: each year is a wide card with a tall column chart of its months (total left, facts right); its months follow as slim ledger rows (name and trades, a strip of the trades, then % and $); on phones a row stacks. */

/* ── the head: a small Nexus pink mark before the title ── */
#what-if #wi-more>.nc-sub h3::before{content:'';display:inline-block;width:3px;height:13px;margin-right:9px;border-radius:2px;background:#ff4fd8;vertical-align:-1px}

/* ── layout: the year card on top, its months below as a list ── */
#what-if #nc-cal{gap:18px}
#what-if #nc-cal .nc-row{grid-template-columns:minmax(0,1fr);gap:8px}
/* the rows of a year share one set of columns (subgrid), so names, strips, % and $ line up from row to row */
#what-if #nc-cal .nc-mos{grid-template-columns:minmax(144px,max-content) minmax(190px,max-content) minmax(0,1fr) max-content minmax(184px,max-content);gap:6px 24px}

/* ── the year card: total left, the chart in the middle, facts right ── */
#what-if #nc-cal .nc-yr{position:relative;top:auto;align-self:stretch;
  grid-template-columns:300px minmax(0,1fr) 196px;grid-template-rows:auto auto auto minmax(0,1fr) auto;
  grid-template-areas:"h c f" "s c f" "p c f" ". c f" ". l f";gap:0 36px;align-content:stretch;
  padding:22px 26px 20px;border-color:#25252a;border-radius:16px;background:#0f0f11;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
#what-if #nc-cal .nc-yr::before{left:26px;width:44px}
#what-if #nc-cal .nc-yr .h{grid-area:h}
#what-if #nc-cal .nc-yr .h b{font-size:14px;color:#f5f5f7}
#what-if #nc-cal .nc-yr .h em{position:relative;padding:2px 8px 2px 18px;color:var(--k2);background:rgba(255,79,216,.07);box-shadow:inset 0 0 0 1px rgba(255,79,216,.32)}
#what-if #nc-cal .nc-yr .h em::before{content:'';position:absolute;left:8px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#ff4fd8;box-shadow:0 0 6px #ff4fd8}
#what-if #nc-cal .nc-yr strong{grid-area:s;margin-top:14px;font-size:38px}
#what-if #nc-cal .nc-yr .p{grid-area:p;margin-top:8px}
/* the facts: a full-height column behind a hairline */
#what-if #nc-cal .nc-yr dl{grid-area:f;align-self:stretch;align-content:start;grid-template-columns:minmax(0,1fr);gap:18px;margin:0;padding:2px 0 0 26px;border-top:0;border-left:1px solid var(--nl)}

/* the chart: a dashed top line, a solid zero line, thick bars; one column per month, labels share the columns */
#what-if #nc-cal .nc-yr :is(.nc-bars,.nc-bl){display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,124px);justify-content:center;column-gap:0;padding:0 6px}
#what-if #nc-cal .nc-yr .nc-bars{grid-area:c;align-self:end;height:172px;margin:0;border-block:1px dashed #26262b}
#what-if #nc-cal .nc-yr .nc-bars::after{height:1px;background:#45454c}
#what-if #nc-cal .nc-yr .nc-bars::before{content:'';position:absolute;left:0;right:0;top:calc(var(--z) / 2);border-top:1px dashed #1f1f24}
#what-if #nc-cal .nc-yr .nc-bars i{justify-self:center;width:62%;max-width:60px;min-width:8px;border-radius:5px 5px 2px 2px}
#what-if #nc-cal .nc-yr .nc-bars i[data-dir="down"]{border-radius:2px 2px 5px 5px}
#what-if #nc-cal .nc-yr .nc-bars i[data-k="pos"]{box-shadow:0 0 20px -6px rgba(62,207,110,.6),inset 0 1px 0 rgba(255,255,255,.25)}
#what-if #nc-cal .nc-yr .nc-bars i[data-k="neg"]{box-shadow:0 0 20px -6px rgba(255,90,82,.6),inset 0 -1px 0 rgba(255,255,255,.2)}
#what-if #nc-cal .nc-yr .nc-bl{grid-area:l;margin:0;padding-top:10px}
#what-if #nc-cal .nc-yr .nc-bl small{max-width:none;gap:2px;color:var(--k3);font:500 12px/1.4 var(--nm)}
#what-if #nc-cal .nc-yr .nc-bl small span{font-size:12.5px}
/* the month so far (last month of the last year) in Nexus pink */
#what-if #nc-cal .nc-row:last-child .nc-yr .nc-bl small:last-child{color:#ff4fd8}

/* ── the months: slim ledger rows (one line on wide screens) ── */
#what-if #nc-cal .nc-mo{grid-column:1/-1;grid-template-columns:subgrid;grid-template-rows:auto;
  grid-template-areas:"h m t p s";align-items:center;gap:4px 24px;
  padding:12px 22px 12px 24px;border-color:#1f1f24;border-radius:12px;background:#0d0d0f}
#what-if #nc-cal .nc-mo::before{top:13px;left:-1px;width:3px;height:auto;bottom:13px;border-radius:0 3px 3px 0}
#what-if #nc-cal .nc-mo[data-sign="neg"]{border-color:rgba(255,90,82,.28)}
#what-if #nc-cal .nc-mo .h{grid-area:h;min-height:0}
#what-if #nc-cal .nc-mo .h b{margin-right:0;color:#f5f5f7;font-size:14px}
#what-if #nc-cal .nc-mo strong{grid-area:s;justify-self:end;line-height:1.05}
#what-if #nc-cal .nc-mo .p{grid-area:p;justify-self:end;text-align:right;white-space:nowrap}
#what-if #nc-cal .nc-mo .nc-mf{grid-area:m}
/* the strip: each trade of the month, in order, on a dark track */
#what-if #nc-cal .nc-mo .nc-tr{grid-area:t;align-self:center;justify-self:stretch;width:auto;box-sizing:border-box;gap:3px;height:48px;min-height:0;margin:0;padding:0 12px;
  justify-content:center;border-block:5px solid transparent;border-radius:8px;background:#09090b;outline:1px solid #19191e;outline-offset:-1px}
#what-if #nc-cal .nc-mo .nc-tr::after{background:#303036}
#what-if #nc-cal .nc-mo .nc-tr i{flex:0 1 13px;max-width:none;min-width:2px}

/* ── sizes ── */
/* below the widest page: a row takes two lines (name over trades, the strip, $ over %) */
@media (max-width:1299px){
  #what-if #nc-cal .nc-mos{grid-template-columns:minmax(212px,max-content) minmax(0,1fr) minmax(222px,max-content)}
  #what-if #nc-cal .nc-mo{grid-template-areas:"h t s" "m t p";padding:12px 20px 12px 22px}
  #what-if #nc-cal .nc-mo .nc-tr{justify-self:center;width:min(100%,380px);height:52px}
}
@media (max-width:1100px){
  #what-if #nc-cal .nc-yr{grid-template-columns:272px minmax(0,1fr) 184px;gap:0 28px;padding:22px 22px 20px}
  #what-if #nc-cal .nc-yr dl{padding-left:22px}
  #what-if #nc-cal .nc-yr strong{font-size:34px}
}
@media (max-width:900px){
  #what-if #nc-cal .nc-yr{grid-template-columns:minmax(0,1fr) minmax(0,max-content);grid-template-rows:auto auto auto minmax(0,1fr) auto auto;
    grid-template-areas:"h f" "s f" "p f" ". f" "c c" "l l";gap:0 24px}
  #what-if #nc-cal .nc-yr .h b{margin-right:4px}
  #what-if #nc-cal .nc-yr dl{align-self:start;grid-template-columns:minmax(0,max-content);gap:12px;margin:4px 0 0;padding:0 0 0 22px}
  #what-if #nc-cal .nc-yr .nc-bars{margin-top:24px}
  /* a tablet row: name and $ on top, the strip full width, trades and % below */
  #what-if #nc-cal .nc-mos{grid-template-columns:minmax(0,1fr) max-content}
  #what-if #nc-cal .nc-mo{grid-template-areas:"h s" "t t" "m p";gap:8px 24px;padding:14px 20px 13px 22px}
  #what-if #nc-cal .nc-mo .nc-tr{justify-self:stretch;width:auto;margin:2px 0}
}
/* a small tablet: the year card stacks (facts under the chart), so a 7-figure total keeps its room */
@media (max-width:760px){
  #what-if #nc-cal .nc-yr{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"h" "s" "p" "c" "l" "f"}
  #what-if #nc-cal .nc-yr dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 0;padding:14px 0 0;border-left:0;border-top:1px solid var(--nl)}
}
@media (max-width:620px){
  #what-if #nc-cal .nc-mos{grid-template-columns:minmax(0,1fr)}
  #what-if #nc-cal .nc-yr{grid-template-columns:minmax(0,1fr);grid-template-areas:"h" "s" "p" "c" "l" "f";padding:18px 14px 16px}
  #what-if #nc-cal .nc-yr::before{left:14px}
  #what-if #nc-cal .nc-yr .h b{margin-right:auto}
  #what-if #nc-cal .nc-yr strong{margin-top:10px;font-size:28px}
  #what-if #nc-cal .nc-yr .nc-bars{height:150px;margin-top:20px}
  #what-if #nc-cal .nc-yr :is(.nc-bars,.nc-bl){padding-inline:2px}
  #what-if #nc-cal .nc-yr dl{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px;margin:18px 0 0;padding:14px 0 0;border-left:0;border-top:1px solid var(--nl)}
  #what-if #nc-cal .nc-mo{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:14px 16px 13px 18px}
  #what-if #nc-cal .nc-mo .h{flex:1 1 auto}
  #what-if #nc-cal .nc-mo strong{flex:0 0 auto;margin-left:auto}
  #what-if #nc-cal .nc-mo .p{flex:1 0 100%;text-align:left;white-space:normal}
  #what-if #nc-cal .nc-mo .nc-tr{flex:1 0 100%;width:auto;margin-top:6px;height:72px;padding:0 10px;border-block-width:6px}
  #what-if #nc-cal .nc-mo .nc-tr i{flex:0 1 14px}
  #what-if #nc-cal .nc-mo .nc-mf{flex:1 0 100%}
}
