/* IBM Plex Sans, self-hosted (SIL OFL, see fonts/OFL.txt). The CSP allows no
   third-party origins, so nothing may come from a font CDN. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #f4f6f5;
  --ink: #18211e;
  --muted: #56635e;
  --rule: #d3dad6;
  --link: #24694a;
  --surface: #ffffff;
  --shadow: rgba(24, 33, 30, 0.14);

  /* One signal color per kind of work. The chart lanes and the markers in the
     list share them, so the color is the legend. */
  --founder: #2e7a57;
  --employee: #3d5a85;
  --teacher: #8e6210;
  --student: #66716c;
  --bar-ink: #ffffff;

  --label-w: 5.5rem;
  --months: 336; /* 01/1999 to 12/2026, one grid column per month */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121816;
    --ink: #e3e9e6;
    --muted: #9aa7a2;
    --rule: #2c3633;
    --link: #6cc79c;
    --surface: #1b2320;
    --shadow: rgba(0, 0, 0, 0.45);

    --founder: #4cb386;
    --employee: #84a3d4;
    --teacher: #d9a23a;
    --student: #9aa6a1;
    --bar-ink: #0e1412;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0 auto;
  max-width: 64rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  /* Scales the fallback fonts to IBM Plex Sans's x-height (516/1000), so the
     text doesn't jump when Plex finishes loading. A number, not from-font:
     while loading, the "first available font" is the fallback itself. */
  font-size-adjust: 0.516;
}

/* Headings: even line lengths, no lone word on a line of its own. */
.intro h1,
main h2,
.what h3,
.panel-head h2 {
  text-wrap: balance;
}

/* Running text: no single-word last lines. */
.lede,
.what p,
.panel-text p {
  text-wrap: pretty;
}

@media (min-width: 40rem) {
  body {
    padding: 0 2rem;
  }
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Links take the color of the lane they belong to, like the date markers. */
.entry a,
a.kind-founder {
  color: var(--lane);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Intro ------------------------------------------------------------ */

.intro {
  padding: 4rem 0 2.5rem;
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  letter-spacing: -0.025em;
}

.lede {
  max-width: 36em;
  margin: 1rem 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

.where {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

/* ---- Chart -------------------------------------------------------------
   Drawn like a machine-state timeline: one lane per kind of work, one bar
   per role, positioned on a month grid. Positions live below, by id, since
   the CSP rules out inline styles. */

.chart {
  margin: 0 0 3.5rem;
}

.chart-scroll {
  overflow-x: auto;
  /* the electric border reaches 16px past its bar */
  padding-top: 0.5rem;
  /* keep the scrollbar off the bars on touch devices */
  padding-bottom: 0.5rem;
  /* thin, and invisible until the timeline is hovered */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 200ms ease-out;
}

.chart-scroll:hover,
.chart-scroll:focus-within {
  scrollbar-color: var(--rule) transparent;
}

/* With "more contrast" set in the system, the scrollbar is always there and
   full width: hiding it until hover is a style choice, not an accessible one. */
@media (prefers-contrast: more) {
  .chart-scroll {
    scrollbar-width: auto;
    scrollbar-color: var(--muted) transparent;
  }
}

/* Safari still needs the prefixed parts. */
.chart-scroll::-webkit-scrollbar {
  height: 6px;
}

.chart-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: transparent;
}

.chart-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--rule);
}

/* Starts at today (timeline.js); while there's earlier time to scroll back
   to, the bars fade out just right of the pinned lane names, as a hint. */
.chart-scroll.has-earlier {
  /* The hard stop sits 2px inside the pinned column: exactly on its edge,
     that antialiased pixel column let a sliver of the bars shine through.
     Masked parts show the page background, the same color as the pins. */
  mask-image: linear-gradient(
    to right,
    #000 calc(var(--label-w) - 2px),
    transparent calc(var(--label-w) - 2px),
    #000 calc(var(--label-w) + 2.5rem)
  );
}

.chart-body {
  min-width: 46rem;
  /* room for the glow around the last bar, so it adds no scrollbar */
  padding-right: 1rem;
}

.lane {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding: 0.5rem 0;
}

.lane-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lane);
  line-height: 1.75rem;
  /* Pinned while the timeline scrolls sideways: the bars pass underneath. */
  position: sticky;
  left: 0;
  z-index: 2;
  align-self: stretch;
  background: var(--bg);
}

.lane-founder,
.kind-founder {
  --lane: var(--founder);
}
.lane-employee,
.kind-employee {
  --lane: var(--employee);
}
.lane-teacher,
.kind-teacher {
  --lane: var(--teacher);
}
.lane-student,
.kind-student {
  --lane: var(--student);
}

.track {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  grid-auto-rows: 1.75rem;
  row-gap: 0.25rem;
  /* a hairline every five years, starting at 2000 */
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0 1px,
    transparent 1px calc(100% * 60 / var(--months))
  );
  background-position-x: calc(100% * 12 / var(--months));
}

.bar {
  grid-row: 1;
  margin-inline: 1px;
  padding: 0 0.375rem;
  border-radius: 3px;
  background: var(--lane);
  color: var(--bar-ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.75rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar:hover {
  filter: brightness(1.12);
}

/* Bars too short to carry their name keep it for screen readers and the
   tooltip only. */
#bar-siemens,
#bar-barcelona-1,
#bar-barcelona-2,
#bar-hagenberg-software,
#bar-education-highway,
#bar-lagis,
#bar-html-course,
#bar-hak,
#bar-consultant,
#bar-consultant-certification {
  color: transparent;
  padding: 0;
}

/* Still running: squared off at today's edge. */
.ongoing {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---- Electric border (electric.js, vendor/electric-border.js) ----------
   A WebGL canvas around its element: the current company's bar, or the
   tooltip card while it shows that bar's entry. --electric-theme "dark" adds
   light (colored or dark ground), "light" inks it (white ground). */

:root {
  --electric: #ffc21a;
  --electric-theme: dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --electric: #ffc21a;
  }
}

/* On the white tooltip card added light would vanish: ink it instead. */
.tip {
  --electric: #e8a000;
  --electric-theme: light;
}

@media (prefers-color-scheme: dark) {
  .tip {
    --electric: #ffc21a;
    --electric-theme: dark;
  }
}

#bar-bytegold {
  position: relative;
  overflow: visible;
}

.electric-border__canvas {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Grid lines: month m of year y starts at line (y - 1999) * 12 + m. */
#bar-pulpmedia          { grid-column: 92 / 121; }
#bar-sybermon           { grid-column: 121 / 163; }
#bar-linemetrics        { grid-column: 163 / 217; }
#bar-kpibench           { grid-column: 217 / 285; }
#bar-bytegold           { grid-column: 285 / 336; }

#bar-freelance          { grid-column: 20 / 39; }
#bar-siemens            { grid-column: 51 / 58; }
#bar-barcelona-1        { grid-column: 58 / 64; }
#bar-barcelona-2        { grid-column: 68 / 72; }
#bar-hagenberg-software { grid-column: 72 / 79; }
#bar-education-highway  { grid-column: 79 / 82; }
#bar-lagis              { grid-column: 82 / 92; }

#bar-html-course        { grid-column: 1 / 13; }
#bar-tutor              { grid-column: 25 / 49; }
#bar-trainer            { grid-column: 109 / 145; }
#bar-consultant         { grid-column: 327 / 336; }

#bar-hak                { grid-column: 1 / 7; }
#bar-fh                 { grid-column: 13 / 73; }
/* Really just 03/2026; drawn from 12/2025 so a one-month bar stays visible. */
#bar-consultant-certification { grid-column: 324 / 328; }

/* Same two columns as a lane: the years slide under the pinned left cell
   when the timeline scrolls sideways. */
.axis {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
}

.axis-pin {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}

.axis-track {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  padding-top: 0.25rem;
}

.tick {
  grid-row: 1;
  /* one column, overflowing it: a wider span would push the 2025 label past
     the last month and make the grid add columns */
  grid-column-end: span 1;
  font-size: 0.75rem;
  color: var(--muted);
  transform: translateX(-50%);
  width: max-content;
}

.t2000 { grid-column-start: 13; }
.t2005 { grid-column-start: 73; }
.t2010 { grid-column-start: 133; }
.t2015 { grid-column-start: 193; }
.t2020 { grid-column-start: 253; }
.t2025 { grid-column-start: 313; }

/* ---- Company logos -----------------------------------------------------
   Transparent PNGs, shown as they are on the bars and the page. */

.logo {
  flex: none;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* Wide logos (Sybermon, the Bytegold patch) keep their own proportions,
   taken from the width/height attributes, instead of shrinking into a square. */
.logo-wide {
  width: auto;
}

.bar .logo {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: -0.125rem;
}

.bar .logo-wide {
  width: auto;
}

/* In the work list the logo sits under the dates. */
.when-col .logo {
  display: block;
  height: 3rem;
  max-width: 100%;
  margin-top: 0.625rem;
}

.when-col .logo:not(.logo-wide) {
  width: 3rem;
}

/* Certification badges come with their own white background and may not be
   altered, so they get a white card around them instead: padding in the
   badge's own white, rounded corners, a hairline to set it off the page. */
.logo-badge {
  padding: 0.25rem 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ffffff;
}

.when-col .logo-badge {
  height: 2.5rem;
}

.tip .logo-badge {
  height: 2rem;
  padding: 0.1875rem 0.25rem;
  border-radius: 4px;
}

/* ---- Timeline tooltip (timeline.js) ------------------------------------ */

.tip {
  position: fixed;
  z-index: 50;
  /* its natural width up to 22rem, never closer than 16px to the screen
     edges (timeline.js positions it) */
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.625rem 0.875rem 0.625rem 1rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--lane, var(--ink));
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 6px 20px var(--shadow);
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease-out, transform 120ms ease-out;
}

.tip.is-visible {
  opacity: 1;
  transform: none;
}

/* The morph (timeline.js) drives the motion itself; the CSS fade stays out
   of its way, and scaling starts from the top-left corner. */
.tip.is-morphing {
  transition: none;
  transform-origin: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .tip {
    transition: none;
    transform: none;
  }
}

.tip p {
  margin: 0;
}

.tip.has-logo {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip .logo {
  width: 2.25rem;
  height: 2.25rem;
}

.tip .logo-wide {
  width: auto;
}

.tip-kind {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lane);
}

.tip-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.tip-when {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- Entries ----------------------------------------------------------- */

main {
  padding-bottom: 3rem;
}

main section {
  margin-bottom: 3.5rem;
}

main h2 {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
}

/* ---- Work filter (work-filter.js) -------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
}

.section-years {
  margin-left: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filters[hidden] {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
}

/* Same square as the date markers, so the pill names its lane color. */
.pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--lane);
}

.pill:hover {
  border-color: var(--lane);
}

.pill[aria-pressed="true"] {
  border-color: var(--lane);
  background: var(--lane);
  color: var(--bar-ink);
  font-weight: 600;
}

.pill[aria-pressed="true"]::before {
  background: var(--bar-ink);
}

.entry[hidden] {
  display: none;
}

@media print {
  .filters {
    display: none;
  }
}

.entry {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .entry {
    grid-template-columns: 10rem 1fr;
  }
}

.when {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
}

/* The marker ties each entry to its lane in the chart. */
.when::before {
  content: "";
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.5rem;
  border-radius: 2px;
  background: var(--lane);
}

.what {
  max-width: 38em;
}

.what h3 {
  margin: 0 0 0.375rem;
  font-size: 1.0625rem;
}

.what p {
  margin: 0 0 0.75rem;
}

.what p:last-child {
  margin-bottom: 0;
}

.languages {
  margin: 0;
}

.languages div {
  display: grid;
  gap: 0 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .languages div {
    grid-template-columns: 10rem 1fr;
  }
}

.languages dt {
  font-weight: 600;
}

.languages dd {
  margin: 0;
  color: var(--muted);
}

/* ---- Entry panel (timeline.js) -----------------------------------------
   A non-modal <dialog> over a darkened page (the scrim lets clicks through):
   a sidebar on the right on wide screens, a drawer from the bottom on narrow
   ones. */

.panel {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 85vh;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 4px solid var(--lane, var(--ink));
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -8px 32px var(--shadow);
  overflow: hidden;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 380ms var(--ease-out), display 380ms;
  /* Own declaration: inside the shorthand, browsers that don't know
     allow-discrete would drop the whole transition. */
  transition-behavior: allow-discrete;
}

.panel[open] {
  transform: none;
}

@starting-style {
  .panel[open] {
    transform: translateY(100%);
  }
}

.panel-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 14, 12, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms var(--ease-out);
}

.panel-open .panel-scrim {
  opacity: 1;
}

/* The timeline stays bright above the scrim: its bars are what you'd click
   next. */
.panel-open .chart {
  position: relative;
  z-index: 31;
  background: var(--bg);
}

@media (min-width: 60rem) {
  .panel {
    inset: 0 0 0 auto;
    width: min(28rem, 40vw);
    height: 100%;
    max-height: none;
    border-top: 0;
    border-left: 4px solid var(--lane, var(--ink));
    border-radius: 0;
    box-shadow: -8px 0 32px var(--shadow);
    transform: translateX(100%);
  }

  @starting-style {
    .panel[open] {
      transform: translateX(100%);
    }
  }
}

.panel-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  height: 100%;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0 1.5rem;
}

.panel-kind {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lane);
}

.panel-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.panel-close:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 1.5rem 2rem;
  overscroll-behavior: contain;
}

.panel-head .logo {
  display: block;
  height: 3rem;
  margin-bottom: 1rem;
}

.panel-head .logo:not(.logo-wide) {
  width: 3rem;
}

.panel-head .logo-badge {
  height: 2.5rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.panel-head h2 a,
.panel-text a {
  color: var(--lane);
}

.panel-when {
  margin: 0.375rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.panel-text p {
  margin: 0 0 0.875rem;
}

/* Earlier / Later: pinned under the scrolling text, one step each way along
   the timeline. Each names where it goes, marked in that entry's lane color. */
.panel-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--rule);
}

.panel-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.panel-step:hover {
  border-color: var(--rule);
  background: color-mix(in srgb, var(--lane) 8%, transparent);
}

.panel-step[hidden] {
  display: none;
}

.panel-later {
  grid-column: 2;
  justify-content: flex-end;
  text-align: right;
}

.panel-step svg {
  flex: none;
  color: var(--muted);
}

.panel-step-text {
  display: grid;
  min-width: 0;
}

.panel-step-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel-step-name {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-step-name::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.375rem;
  border-radius: 2px;
  background: var(--lane);
  vertical-align: 0.0625rem;
}

/* The bar whose entry is open. */
.bar.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .panel,
  .panel-scrim,
  .panel-step {
    transition: none;
  }
}

@media print {
  .panel {
    display: none;
  }
}

/* ---- Filter animation (View Transitions, see work-filter.js) -----------
   Moves use a critically damped spring sampled into linear(): a soft start,
   no overshoot, a long gentle settle. */

:root {
  --spring: linear(0, 0.049, 0.158, 0.285, 0.412, 0.526, 0.624, 0.706,
    0.772, 0.825, 0.867, 0.899, 0.924, 0.943, 0.957, 0.968, 0.976, 0.983,
    0.987, 0.991, 0.993, 0.995, 0.996, 0.997, 1);
  /* For panels sliding in: quick, then easing out, no overshoot at the edge. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The rest of the page doesn't change, so it swaps without a crossfade. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

::view-transition-group(*) {
  animation-duration: 520ms;
  animation-timing-function: var(--spring);
}

::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 260ms;
  animation-timing-function: ease-in-out;
}

/* Entries that appear rise in slightly; entries that go just fade. */
::view-transition-new(.entry):only-child {
  animation: entry-in 420ms var(--spring) 80ms both;
}

::view-transition-old(.entry):only-child {
  animation: entry-out 220ms ease-out both;
}

@keyframes entry-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
}

@keyframes entry-out {
  to {
    opacity: 0;
  }
}

.pill {
  transition: background-color 150ms ease-out, border-color 150ms ease-out,
    color 150ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .pill {
    transition: none;
  }
}

/* ---- Print ------------------------------------------------------------- */

@media print {
  :root {
    --bg: #ffffff;
    --ink: #000000;
    --muted: #444444;
    --link: #000000;
  }

  body {
    max-width: none;
    padding: 0;
    font-size: 10pt;
  }

  .intro {
    padding-top: 0;
  }

  .chart-body {
    min-width: 0;
  }

  .bar,
  .when::before {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  a {
    text-decoration: none;
  }

  .entry {
    break-inside: avoid;
    grid-template-columns: 9rem 1fr;
  }
}

@media print {
  .tip {
    display: none;
  }
}

/* .tip.has-logo sets display: flex, which would otherwise beat [hidden]. */
.tip[hidden] {
  display: none;
}
