/* ============================================================
   VividCharts — Platform deep-dive pages (Build / Automate / Present)
   Shared layout on top of styles.css tokens & components.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.crumb {
  display: flex; width: fit-content; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  margin-bottom: 22px;
}
.crumb a { color: var(--ink-3); transition: color .18s var(--ease); }
.crumb a:hover { color: var(--brand-strong); }
.crumb svg { width: 14px; height: 14px; color: var(--line-strong); }
.crumb .here { color: var(--ink); }

/* ---------- Detail hero ---------- */
.dt-hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.dt-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dt-hero .wrap { position: relative; z-index: 1; }
.dt-hero h1 { font-size: clamp(40px, 5.4vw, 64px); max-width: 15ch; margin: 16px 0 0; }
.dt-hero h1 .accent { color: var(--brand); }
.dt-hero .lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; margin: 22px 0 0; line-height: 1.55; }
.dt-hero .hero-actions { margin-top: 30px; }

/* ---------- Editor showcase ---------- */
.dt-stage { margin: 56px auto 0; max-width: 1080px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden; }
.ed-toolbar { display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  background: var(--light-cream); border-bottom: 1px solid var(--line); }
.ed-toolbar .view-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 8px; }
.ed-toolbar .live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); }
.ed-toolbar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ed-toolbar .tb-spacer { flex: 1; }
.ed-toolbar .tb-btn { font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-2); }
.ed-toolbar .tb-btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.ed-toolbar .tb-zoom { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ed-shell { display: grid; grid-template-columns: 84px 1fr; }
.dt-rail { background: var(--dark-blue); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.dt-tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px;
  color: rgba(245,243,239,.62); cursor: default; transition: background .16s var(--ease), color .16s var(--ease); }
.dt-tool svg { width: 22px; height: 22px; }
.dt-tool span { font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.dt-tool.active { color: #fff; }
.dt-tool.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 38px; background: var(--brand); border-radius: 0 2px 2px 0; }
.dt-tool { position: relative; }
.dt-tool:hover { color: #fff; background: rgba(255,255,255,.05); }

.ed-canvas-area { background: var(--vc-gray-01, #EEEEEE); padding: 30px; display: grid; place-items: center; min-height: 340px; }
.ed-slide { width: 100%; max-width: 620px; aspect-ratio: 16/9; background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-md);
  padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; }
.ed-slide .es-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.ed-slide .es-row { flex: 1; display: flex; gap: 28px; align-items: center; min-height: 0; }
.es-stats { display: flex; flex-direction: column; gap: 18px; padding-right: 26px; border-right: 1px solid var(--line); }
.es-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--brand-strong); }
.es-stat .v.ink { color: var(--ink); }
.es-stat .l { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.es-cols { flex: 1; display: flex; align-items: flex-end; gap: 14px; height: 100%; padding-top: 6px; }
.es-cols .c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.es-cols .c .bar { width: 100%; max-width: 30px; border-radius: 3px 3px 0 0; background: var(--brand-tint-2); }
.es-cols .c .bar.on { background: var(--brand); }
.es-cols .c .cl { font-size: 10px; color: var(--ink-3); font-weight: 600; }

.ed-thumbs { display: flex; gap: 10px; padding: 14px 18px; background: var(--light-cream); border-top: 1px solid var(--line); overflow-x: auto; }
.ed-thumb { width: 78px; height: 46px; flex: none; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--white);
  display: grid; place-items: center; font-size: 10px; color: var(--ink-3); position: relative; }
.ed-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint); }
.ed-thumb .n { position: absolute; top: 3px; left: 5px; font-size: 8.5px; font-weight: 700; color: var(--ink-3); }
.ed-thumb .mini { width: 70%; height: 50%; }
@media (max-width: 720px) { .ed-shell { grid-template-columns: 64px 1fr; } .dt-tool span { display: none; } .ed-canvas-area { padding: 18px; } }

/* ---------- Detail capability rows ---------- */
.dt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 60px 0; border-top: 1px solid var(--line); }
.dt-row.flip .dt-row-copy { order: 2; }
.dt-row-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.dt-row-copy > p { color: var(--ink-2); margin-top: 16px; font-size: 16px; line-height: 1.6; max-width: 48ch; }
.dt-row-copy .eyebrow { margin-bottom: 14px; }
.dt-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.dt-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.dt-list li b { font-weight: 600; }
.dt-list li .ck { width: 22px; height: 22px; border-radius: var(--r-sm); flex: none; margin-top: 1px;
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.dt-list li .ck svg { width: 13px; height: 13px; }
@media (max-width: 860px) {
  .dt-row { grid-template-columns: 1fr; gap: 32px; }
  .dt-row.flip .dt-row-copy { order: 0; }
}

/* generic visual frame for detail rows */
.dt-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white);
  box-shadow: var(--shadow-md); overflow: hidden; }
.dt-card-top { display: flex; align-items: center; gap: 9px; padding: 11px 15px;
  background: var(--light-cream); border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.dt-card-top .dots { display: flex; gap: 6px; }
.dt-card-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dt-card-top .dots i:nth-child(1){ background:#e9b8b0; } .dt-card-top .dots i:nth-child(2){ background:#f0dca6; } .dt-card-top .dots i:nth-child(3){ background:#a9dcae; }
.dt-card-body { padding: 20px; }

/* ---------- Chart gallery (Build) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.gchip { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 16px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.gchip:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gchip .gv { height: 72px; display: grid; place-items: center; }
.gchip .gv svg { width: 100%; height: 100%; }
.gchip .gl { font-size: 13px; font-weight: 600; color: var(--ink); }
.gallery-foot { margin-top: 22px; font-size: 14px; color: var(--ink-3); text-align: center; }
.gallery-foot b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* gallery svg helpers (use currentColor = teal) */
.gv .accent { color: var(--brand); }

/* ---------- Mapping fan-out (Automate) ---------- */
.fan { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 18px; align-items: center; }
.fan-src { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--light-cream); padding: 16px; }
.fan-src .fs-h { font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.fan-src .fs-row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); padding: 5px 0; }
.fan-src .fs-row .dc { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fan-arrows { display: grid; place-items: center; color: var(--brand); }
.fan-arrows svg { width: 30px; height: 44px; }
.fan-out { display: grid; gap: 10px; }
.fan-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.fan-card:hover { border-color: var(--brand); transform: translateX(3px); }
.fan-card .fc-l { font-size: 13px; font-weight: 600; color: var(--ink); }
.fan-card .fc-v { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand-strong); }
.fan-card.lead-card { border-color: var(--brand); background: var(--brand-tint); }

/* spreadsheet (VividSheets) */
.sheet { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font-variant-numeric: tabular-nums; }
.sheet-row { display: grid; grid-template-columns: 34px 1fr 70px 70px; }
.sheet-row > div { padding: 9px 11px; font-size: 12.5px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink-2); }
.sheet-row > div:last-child { border-right: none; }
.sheet-row.head > div { background: var(--light-cream); font-weight: 700; color: var(--ink-3); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.sheet-row .rownum { background: var(--light-cream); color: var(--ink-3); font-weight: 600; text-align: center; }
.sheet-row .calc { color: var(--brand-strong); font-weight: 700; background: var(--brand-tint); }
.sheet-row:last-child > div { border-bottom: none; }

/* ---------- Viewer / Collections (Present) ---------- */
.viewer { background: var(--dark-blue); border-radius: var(--r-md); padding: 22px; }
.viewer-slide { background: var(--white); border-radius: var(--r-sm); aspect-ratio: 16/9; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 16px; }
.viewer-slide .vs-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.viewer-slide .vs-row { flex: 1; display: flex; align-items: flex-end; gap: 12px; }
.viewer-slide .vs-row .b { flex: 1; border-radius: 3px 3px 0 0; background: var(--brand-tint-2); }
.viewer-slide .vs-row .b.on { background: var(--brand); }
.viewer-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: rgba(255,255,255,.7); font-size: 12px; }
.viewer-foot .dotnav { display: flex; gap: 6px; }
.viewer-foot .dotnav i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.viewer-foot .dotnav i.on { background: var(--brand); }

.coll { display: grid; gap: 12px; }
.coll-link { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); padding: 14px 16px; box-shadow: var(--shadow-sm); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.coll-link:hover { border-color: var(--brand); transform: translateX(3px); }
.coll-link .cl-ic { width: 36px; height: 36px; border-radius: var(--r-sm); flex: none; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.coll-link .cl-ic svg { width: 19px; height: 19px; }
.coll-link b { font-size: 14.5px; font-weight: 600; color: var(--ink); display: block; }
.coll-link span { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 2px; }
.coll-link .cl-go { margin-left: auto; color: var(--line-strong); }
.coll-link:hover .cl-go { color: var(--brand); }

/* ---------- Pillar pager ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pager-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); display: block; }
.pager-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pager-card .pk { font-size: 11.5px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-3); }
.pager-card .pt { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 8px; color: var(--ink);
  display: flex; align-items: center; gap: 10px; }
.pager-card .pt svg { width: 18px; height: 18px; color: var(--brand); }
.pager-card.prev { text-align: left; }
.pager-card.next { text-align: right; }
.pager-card.next .pt { justify-content: flex-end; }
.pager-card p { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-card.next { text-align: left; } .pager-card.next .pt { justify-content: flex-start; } }

/* ---------- Proof points (copy spec VIV-3185) ---------- */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proofs .proof {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-md);
  padding: 26px 24px;
}
.proofs .proof h3 { font-size: 18px; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.proofs .proof > p { color: var(--ink-2); margin-top: 10px; font-size: 14.5px; line-height: 1.55; }
.proofs .proof .proof-pf { color: var(--ink-3); margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
.proofs .proof .proof-pf span { color: var(--ink); font-weight: 650; }
@media (max-width: 860px) { .proofs { grid-template-columns: 1fr; } }
