/* work.css: Analytics Work hub. Loads after styles.css and uses its tokens. Every class starts with w- */
.w-chiprow { gap: .45rem !important; }
.w-chip-btn { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--hairline); background: var(--white); color: var(--steel); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.w-chip-btn:hover { transform: translateY(-1px); color: var(--ink); }
.w-chip-btn.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.w-chip-btn i { font-style: normal; opacity: .7; }

.w-meter { padding-top: .9rem; border-top: 1px solid var(--hairline); }
.w-meter-l { display: flex; justify-content: space-between; gap: .8rem; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: .5rem; }
.w-meter-t { height: 8px; border-radius: 999px; background: var(--mist-deep); overflow: hidden; }
.w-meter-t span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 1.2s cubic-bezier(.3,.8,.2,1); }

.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); grid-auto-flow: dense; gap: 1rem; align-items: start; }
.w-card { border: 1px solid var(--hairline); border-top: 4px solid var(--ink); border-radius: 14px; background: var(--white); display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; padding: 1.15rem 1.25rem 1.1rem; transition: border-color .25s, box-shadow .3s, transform .45s cubic-bezier(.34,1.56,.64,1); }
.w-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.w-card.open { grid-column: 1 / -1; box-shadow: 0 24px 50px -28px rgba(30,45,66,.35); transform: none; }
.w-face { flex: 1 1 15rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.w-card.open .w-face { max-width: 17rem; }
.w-meta { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.w-badge { border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; padding: .15rem .5rem; }
.w-big { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.5rem); letter-spacing: -.035em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.w-big-l { display: block; font-size: .8rem; color: var(--steel); margin-top: .25rem; line-height: 1.4; }
.w-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.25; margin-top: .15rem; text-wrap: pretty; }
.w-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.w-chip { font-size: .72rem; background: var(--mist); padding: .18rem .55rem; border-radius: 999px; }
.w-chip.out { background: none; border: 1px solid var(--accent); }
.w-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .35rem; padding-top: .6rem; border-top: 1px solid var(--hairline); }
.w-hint { font-size: .74rem; color: var(--steel); font-style: italic; min-width: 0; }
.w-btn { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .85rem; border-radius: 999px; border: none; font-family: var(--body); font-size: .78rem; font-weight: 700; background: var(--accent); color: #fff; cursor: pointer; transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .25s; }
.w-btn:hover { transform: scale(1.06) rotate(-1.5deg); }
.w-btn i { font-style: normal; display: inline-block; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.w-card.open .w-btn { background: var(--ink); }
.w-card.open .w-btn i { transform: rotate(45deg); }

.w-detail { display: none; flex: 3 1 28rem; min-width: 0; flex-direction: column; gap: 1.3rem; }
.w-card.open .w-detail { display: flex; animation: w-in .5s cubic-bezier(.34,1.3,.5,1); }
@keyframes w-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.w-lead { font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.45; text-wrap: pretty; }
.w-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .7rem; }
.w-block { background: var(--mist); border-radius: 10px; padding: .85rem .95rem; }
.w-block p { font-size: .88rem; line-height: 1.55; }
.w-mono { font-family: var(--mono); font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); display: inline-flex; align-items: center; gap: .45rem; }
.w-block .w-mono { color: var(--ink); margin-bottom: .35rem; }
.w-mono em { font-style: normal; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--ink); color: var(--white); display: inline-grid; place-items: center; font-size: .55rem; letter-spacing: 0; }
.w-row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: flex-start; }
.w-chart, .w-calls { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.w-chart-title { font-family: var(--display); font-weight: 800; font-size: .98rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.w-bar { display: grid; grid-template-columns: minmax(6rem, 36%) minmax(0, 1fr); gap: .7rem; align-items: center; font-size: .8rem; }
.w-bar-w { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.w-bar-t { flex: 1; height: 10px; border-radius: 999px; background: var(--mist-deep); overflow: hidden; min-width: 2rem; }
.w-bar-f { display: block; height: 100%; width: 0; border-radius: 999px; background: color-mix(in oklab, var(--accent) 35%, var(--hairline)); transition: width .9s cubic-bezier(.34,1.56,.64,1); }
.w-bar.hl .w-bar-f { background: var(--accent); }
.w-bar-v { font-family: var(--mono); font-size: .66rem; white-space: nowrap; }
.w-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .6rem; }
.w-side { border: 1px solid var(--hairline); border-radius: 10px; padding: .8rem .9rem; font-size: .84rem; line-height: 1.45; display: flex; flex-direction: column; gap: .35rem; }
.w-side.after { background: var(--ink); border-color: var(--ink); color: var(--white); }
.w-side.after .w-mono { color: var(--white); }
.w-arrow { color: var(--accent); line-height: 1; }
.w-hub { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: .92rem; background: var(--ink); color: var(--white); padding: .55rem .85rem; border-radius: 10px; }
.w-step { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; font-size: .84rem; line-height: 1.4; background: var(--mist); border-radius: 8px; padding: .5rem .65rem; }
.w-step small { display: block; color: var(--steel); font-size: .78rem; }
.w-caption { font-size: .78rem; line-height: 1.5; color: var(--steel); font-style: italic; }
.w-call { display: grid; grid-template-columns: 1rem 1fr; gap: .35rem; font-size: .86rem; line-height: 1.5; }
.w-call::before { content: "→"; color: var(--accent); font-weight: 700; }
.w-lesson { font-size: .92rem; line-height: 1.6; padding-left: 1rem; border-left: 3px solid var(--accent); }
.w-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.w-thumb { height: 6.5rem; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline); background: var(--mist); cursor: zoom-in; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.w-thumb:hover { transform: translateY(-2px) rotate(-1deg); }
.w-thumb img { height: 100%; width: auto; display: block; }
.w-evidence { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.4rem; padding-top: .9rem; border-top: 1px solid var(--hairline); }
.w-pill { font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--mist); border-radius: 999px; padding: .28rem .7rem; text-decoration: none; }
.w-pill:hover { background: var(--mist-deep); }
.w-where { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .8rem; color: var(--steel); text-align: right; }

.w-pipe { margin-top: 1.4rem; border-top: 2px solid var(--ink); padding-top: .9rem; }
.w-pipe summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.w-pipe summary::-webkit-details-marker { display: none; }
.w-pipe-h { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.w-pipe-h::after { content: " +"; color: var(--accent); }
.w-pipe[open] .w-pipe-h::after { content: " −"; }
.w-pipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); column-gap: 2.2rem; margin-top: .5rem; }
.w-pipe-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--hairline); font-size: .92rem; font-weight: 600; line-height: 1.4; }
.w-status { font-size: .55rem; }
.lightbox img { background: #fff; }
@media (prefers-reduced-motion: reduce) { .w-card, .w-btn, .w-bar-f, .w-meter-t span { transition: none; } .w-card.open .w-detail { animation: none; } }

/* ---------- Analytics Work redesign (Oct 2026) ----------
   Design: Analytics_Work__standalone.html. Appended, never rewritten. */

/* Draft badge variant (design: status pill, accent when drafted) */
.w-badge.draft { border-color: var(--accent); color: var(--accent); }

/* Context/Problem/Solution/Result numbered tiles (design: p.csr[]) */
.w-csr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .7rem; }
.w-csr-t { background: var(--mist); border-radius: 10px; padding: .85rem .95rem; }
.w-csr-t .w-mono { color: var(--ink); margin-bottom: .35rem; }
.w-csr-t p { margin: 0; font-size: .88rem; line-height: 1.55; }

/* Review notes (design: p.reviewNotes — dashed, hidden when published) */
.w-review { border: 1.5px dashed var(--hairline); border-radius: 10px; padding: .8rem .95rem; display: flex; flex-direction: column; gap: .3rem; }
.w-review .w-mono { color: var(--ink); margin-bottom: .1rem; }
.w-review p { margin: 0; font-size: .86rem; line-height: 1.5; }
.w-missing { color: var(--steel); font-style: italic; }

@media (prefers-reduced-motion: reduce) { .tb-live, .tb-draft { transition: none; } }
