/* ===== v10: content first ===== */
/* Loaded last. Removes the spreadsheet wallpaper; table styling stays only where content is a table. */

:root {
  --ink-soft: #474e4b;
  --ink-faint: #6b736f;
}

/* 1. No background grid, no row-number gutter */
body { background-image: none; }
.rows { display: none !important; }
@media (min-width: 960px) { .page { padding-left: 0; } }

/* 2. Hero: positioning line directly under the name, in ink */
.intro { display: block; }
.intro h1 { margin: 0; }
.intro p {
  margin: .9rem 0 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  max-width: 40rem;
}
.builds-intro p, .recipe .intro p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; letter-spacing: 0; }

/* 3. Section labels: small caps-style wayfinding */
.pagelabel, .from {
  font-family: var(--serif);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pagelabel { margin: 0 0 .9rem; }

/* 4. Sans with tabular figures outside real tables */
.line .yrs, .line .tog, .roles dt span, .ticks, .fig b {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
}
.line .yrs { color: var(--ink-soft); }
.line .tog { font-weight: 500; }
.fig b { font-weight: 600; letter-spacing: -.03em; }

/* 5. Career bar: labels that do not fit are hidden by sheet.js, name shown on hover/focus */
.seg { position: relative; }
.seg.clip { overflow: visible; }
.seg.clip span { display: none; }
.seg.clip:hover::after, .seg.clip:focus-visible::after {
  content: attr(data-name);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  font-size: .8rem; line-height: 1; padding: .45rem .6rem;
  white-space: nowrap; z-index: 6; pointer-events: none;
}
.seg { padding: 0 .55rem; }
.track { height: 44px; }
/* The current role is open-ended: size it to its name so it is always labelled */
.seg.now { flex: 0 0 auto !important; padding: 0 .8rem; overflow: visible; }

/* 6. Company marks: one size, one color. Glyph logos in ink; wordmarks knocked out of an ink tile */
.line .org { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: .9rem; align-items: start; }
.line .org > .lg { grid-row: 1 / span 2; }
.lg { display: block; width: 2.5rem; height: 2.5rem; position: relative; }
.lg-img { border-radius: 4px; }
.lg-glyph::before, .lg-tile::before {
  content: ""; position: absolute; background: var(--ink);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.lg-glyph::before { inset: .2rem; }
.lg-tile { background: var(--ink); border-radius: 4px; }
.lg-tile::before { inset: .3rem; background: #fff; }
@media (max-width: 860px) { .lg { width: 2.1rem; height: 2.1rem; } .line .org { grid-template-columns: 2.1rem minmax(0, 1fr); } }
.lg-nip { --m: url(logos/nip.svg); }
.lg-oneplus { --m: url(logos/oneplus.svg); }
.lg-sse { --m: url(logos/sse.svg); }
.lg-seventy { --m: url(logos/seventy.png); }
.lg-nomura { --m: url(logos/nomura.png); }
.lg-r1 { --m: url(logos/r1.svg); }
.lg-sse::before { inset: 0; }
.lg-nomura::before, .lg-seventy::before { inset: .3rem .2rem; }

/* Single-sheet exhibits (no tabs) size to their content; only the tabbed tracker keeps a fixed height */
.workbook:not(:has(.tabs)) .sheet { min-height: 0; }
