/* ///////////////////////// START public/css/modules/canvas.css (MODIFIED) ///////////////////////// */
/* MODIFIED (version 2.26): Info bio in the Header text style (Figma 349:105765) */
/* MODIFIED (version 2.25): mobile heading band 15px in, 104px tall (Figma mobile frames) */
/* MODIFIED (version 2.9): Info bio never wider than the window (max-width 100%) */
/* MODIFIED (version 2): Info heading + bio paragraph (.rws-board__intro) */
/* MODIFIED (v9): tokens only — heading = Figma text style "Header" (75/70) + count "Title(M)"
   (43/70), band = --size-heading with --spacer05 padding (all divided by the board scale) */
/* MODIFIED (v8): board scales itself (transform-origin 0 0); the heading keeps its size on
   every screen (sizes divided by --rws-board-scale); mobile uses the same heading size */
/* MODIFIED (v7): heading band hugs its text (Figma 647:25589) */
/* MODIFIED (v3): board starts under the top nav (--content-top) and holds the page heading */
/* NEW FILE: public/css/modules/canvas.css — styles for js/modules/rwsCanvas.js */

.rws-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;          /* panning is handled in rwsCanvas.js */
}

.rws-viewport.is-dragging { cursor: grabbing; }
.rws-viewport.is-dragging .rws-card { pointer-events: none; }

.rws-board {
  position: absolute;
  left: 0;
  top: var(--content-top);
  background: var(--color-bcg-e01);
  transform-origin: 0 0;       /* rwsCanvas.js adds scale() */
  will-change: transform;      /* width/height set by the grid layout */
}
/* ///////////////////////// START heading (MODIFIED v9) ///////////////////////// */
.rws-board__heading {
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;          /* band hugs "Work 32" */
  height: calc(var(--size-heading) / var(--rws-board-scale));
  padding: calc(var(--spacer05) / var(--rws-board-scale));
  background: var(--color-bse-e00);
}

/* Figma text style "Header" */
.rws-board__title {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--spacer-xs) / var(--rws-board-scale));
  margin: 0;
  color: var(--color-black);
  font-family: var(--header-font-family);
  font-size: calc(var(--header-font-size) / var(--rws-board-scale));          /* MODIFIED (v9): 75px (was 105px) */
  font-weight: var(--header-font-weight);
  font-style: var(--header-font-style-reg);
  line-height: calc(var(--header-line-height) / var(--rws-board-scale));
  letter-spacing: calc(var(--header-letter-spacing) / var(--rws-board-scale));
  white-space: nowrap;
}

/* Figma text style "Title(M)" */
.rws-board__count {
  font-family: var(--titleM-font-family);
  font-size: calc(var(--titleM-font-size) / var(--rws-board-scale));          /* MODIFIED (v9): 43px (was 70px) */
  font-weight: var(--titleM-font-weight);
  line-height: calc(var(--paragraph-line-height) * 3 / var(--rws-board-scale));  /* sits at the cap height */
  letter-spacing: calc(var(--titleM-letter-spacing) / var(--rws-board-scale));
  vertical-align: top;
  top: 0;
}
/* ///////////////////////// END heading (MODIFIED v9) ///////////////////////// */
/* ///////////////////////// START mobile (NEW v6) ///////////////////////// */
.rws-is-mobile .rws-board { top: var(--content-top-mobile); }
/* REMOVED (v8): mobile heading overrides — headings are the same size everywhere */
.rws-is-mobile .rws-viewport { cursor: default; }
/* ///////////////////////// START mobile heading (NEW version 2.25) ///////////////////////// */
/* Figma 359:56830: "Work 32" band 15px in from the left, 25px above / below the text, no side padding */
.rws-is-mobile .rws-board__heading:not(.rws-board__heading--intro) {   /* Info keeps its auto-height heading + bio */
  left: var(--mobile-gutter);
  height: calc(var(--size-heading-mobile) / var(--rws-board-scale));
  padding: calc(var(--spacer05) / var(--rws-board-scale)) 0;
}
/* ///////////////////////// END mobile heading (NEW version 2.25) ///////////////////////// */
/* ///////////////////////// END mobile (NEW v6) ///////////////////////// */
/* ///////////////////////// START intro (NEW version 2) ///////////////////////// */
/* Info page (Figma 295:59832): "Info" heading + bio paragraph in the Title style */
.rws-board__heading--intro {
  width: calc((var(--size-bio-max) + var(--spacer05) * 2) / var(--rws-board-scale));
  height: auto;
  background: transparent;     /* NEW (version 2.2): no band behind the Info heading + bio */
  /* ///////////////////////// START bio width (NEW version 2.9) ///////////////////////// */
  max-width: 100%;             /* Info is locked to the window width: the bio wraps inside it */
  box-sizing: border-box;
  /* ///////////////////////// END bio width (NEW version 2.9) ///////////////////////// */
}
.rws-board__intro {
  margin: 0;                   /* MODIFIED (version 2.2): bio sits right under 'Info' (Figma: one text block) */
  color: var(--color-black);
  font-family: var(--title-font-family);
  font-size: calc(var(--title-font-size) / var(--rws-board-scale));
  font-weight: var(--title-font-weight);
  font-style: var(--title-font-style);
  line-height: calc(var(--title-line-height) / var(--rws-board-scale));
  letter-spacing: calc(var(--bio-letter-spacing) / var(--rws-board-scale));   /* MODIFIED (version 2.2): -3 (Figma) */
  white-space: normal;
}
.rws-is-mobile .rws-board__heading--intro { width: calc(var(--size-bio-max-mobile) / var(--rws-board-scale)); }
/* ///////////////////////// START bio = header style (NEW version 2.26) ///////////////////////// */
/* Figma Info 349:105765: "Info" + the bio are ONE text block in the same style (Helvetica Neue 75/70,
   -1.5%) — the bio now uses the Header text style instead of the Title style */
.rws-board__intro {
  font-family: var(--header-font-family);
  font-size: calc(var(--header-font-size) / var(--rws-board-scale));
  font-weight: var(--header-font-weight);
  font-style: var(--header-font-style-reg);
  line-height: calc(var(--header-line-height) / var(--rws-board-scale));
  letter-spacing: calc(var(--header-letter-spacing) / var(--rws-board-scale));
}
/* ///////////////////////// END bio = header style (NEW version 2.26) ///////////////////////// */
/* ///////////////////////// END intro (NEW version 2) ///////////////////////// */
/* ///////////////////////// END public/css/modules/canvas.css (MODIFIED) ///////////////////////// */
