/* ---------- 3. Whiteboard scrumban: "Sprint 228" ---------- */
.scene-board {
  --m-blue: #1f4f86;   /* whiteboard markers */
  --m-red: #b3302a;
  --m-black: #2a2c2f;
  display: flex; flex-direction: column; align-items: center;
  padding: 12vh calc(var(--side) + 16px) 2vh;
}
@media (max-width: 520px) {
  .scene-board { padding: 8vh calc(var(--side) + 2px) 2vh; }
  .wb-frame { border-width: 8px !important; box-shadow: 6px 8px 0 rgba(70, 60, 40, 0.13) !important; }
}

/* Aluminum frame and the white surface, with a glare stripe and a few ghosts of erased marker */
.wb-frame {
  container: wb / inline-size;
  position: relative;
  width: min(1180px, 100%);
  border: 12px solid;
  border-color: #e4e2da #b0ada3 #a29f95 #d2cfc6;
  border-radius: 3px;
  box-shadow: 12px 14px 0 rgba(70, 60, 40, 0.13);
}
.wb {
  position: relative;
  padding: 18px 14px 26px;
  background-color: #f7f8f4;
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.85) 46%, rgba(255, 255, 255, 0) 54%),
    radial-gradient(ellipse 22% 9% at 24% 38%, rgba(100, 120, 145, 0.08), transparent 70%),
    radial-gradient(ellipse 18% 7% at 70% 76%, rgba(100, 120, 145, 0.07), transparent 70%),
    radial-gradient(ellipse 14% 6% at 86% 22%, rgba(150, 90, 80, 0.05), transparent 70%);
}

/* Marker tray and eraser along the bottom edge */
.wb-tray {
  position: absolute; left: 6%; right: 6%; bottom: -24px; height: 14px;
  display: flex; align-items: flex-end; gap: 14px; padding: 0 18px;
  background: linear-gradient(180deg, #c9c6bd 0 40%, #a9a69c 40% 100%);
  border-radius: 0 0 4px 4px;
  box-shadow: 4px 5px 0 rgba(70, 60, 40, 0.13);
}
.wb-marker {
  position: relative; bottom: 6px;
  width: 58px; height: 10px; border-radius: 5px 2px 2px 5px;
  background: linear-gradient(90deg, var(--cap) 0 30%, #ecebe5 30% 100%);
}
.marker-blue { --cap: var(--m-blue); }
.marker-red { --cap: var(--m-red); transform: translateX(6px); }
.marker-black { --cap: var(--m-black); }
.wb-eraser {
  position: relative; bottom: 6px; margin-left: auto;
  width: 64px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #3b3e44 0 55%, #d8d4c6 55% 100%);
}
@media (max-width: 520px) { .wb-marker:nth-child(3), .wb-eraser { display: none; } }

/* Header: sprint title, subtitle, goal, and a burndown doodle */
.wb-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 22px; margin: 0 4px 20px; }
.wb-title {
  flex-basis: 100%;
  margin: 0;
  font-family: var(--f-hand); font-weight: 700; font-size: clamp(2rem, 7vw, 3rem); line-height: 1;
  color: var(--m-blue);
  transform: rotate(-1deg); transform-origin: left bottom;
}
.wb-sub, .wb-goal { margin: 0; font-family: var(--f-hand); font-size: 1.08rem; line-height: 1.3; }
.wb-sub { color: var(--m-black); }
.wb-goal { color: var(--m-red); }
.wb-burndown { display: none; width: 150px; height: 75px; margin-left: auto; }
@container wb (min-width: 760px) {
  .wb-head { flex-wrap: nowrap; }
  .wb-title { flex-basis: auto; }
  .wb-burndown { display: block; }
}

/* Narrow layout: one column of the board at a time, top to bottom */
.wb-cols { display: grid; gap: 22px; }
.wb-col-head {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 4px; padding-bottom: 2px;
  border-bottom: 3px solid currentColor;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.3rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--m-black);
}
.col-blocked .wb-col-head { color: var(--m-red); }
.wb-count {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em; padding: 0 0.2em;
  border: 2px solid currentColor; border-radius: 50%;
  font-size: 0.72em; letter-spacing: 0;
}
.wb-cell.is-empty, .wb-corner, .wb-lane-label { display: none; }
.wb-lane {
  margin: 12px 0 8px;
  font-family: var(--f-device); font-size: 0.72rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.wb-notes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; align-items: start;
}
@container wb (min-width: 520px) {
  .wb-notes { grid-template-columns: repeat(auto-fill, 10rem); gap: 18px 16px; }
}

/* Wide layout: the real board. Lanes are rows, columns are columns, DONE gets the most room. */
@container wb (min-width: 900px) {
  .wb { padding: 22px 18px 30px; }
  .wb-cols {
    grid-template-columns: 7.4rem repeat(4, minmax(0, 1fr)) minmax(0, 1.9fr);
    gap: 0;
  }
  .wb-col { display: contents; }
  .wb-corner { display: block; grid-row: 1; grid-column: 1; border-bottom: 3px solid var(--m-black); }
  .wb-col-head {
    grid-row: 1; grid-column: var(--col);
    margin: 0; padding: 0 10px 6px;
    border-bottom-color: var(--m-black);
    border-left: 2px solid rgba(42, 44, 47, 0.7);
    font-size: clamp(0.95rem, 1.5cqw, 1.2rem); letter-spacing: 0.02em; white-space: nowrap;
  }
  .wb-cell, .wb-cell.is-empty {
    display: block;
    grid-row: var(--row); grid-column: var(--col);
    min-height: 8.5rem; padding: 16px 10px 18px;
    border-left: 2px solid rgba(42, 44, 47, 0.7);
    border-top: 2px dashed rgba(31, 79, 134, 0.4);
  }
  .wb-lane-label {
    display: block;
    grid-row: var(--row); grid-column: 1;
    padding: 18px 10px 12px 4px;
    border-top: 2px dashed rgba(31, 79, 134, 0.4);
    font-family: var(--f-hand); font-weight: 700; font-size: clamp(1rem, 1.45cqw, 1.2rem); line-height: 1.15;
    color: var(--m-blue);
  }
  .lane-first { border-top: 0 !important; }
  /* The lane name stays for screen readers; sighted users read it from the row label. */
  .wb-lane {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .wb-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 12px; }
  .wb-slot { width: min(100%, 10.2rem); }
  .col-done .wb-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 10.2rem)); }
  .col-done .wb-slot { width: auto; }
  .wb-note { font-size: clamp(12px, 1.12cqw, 14.5px); }
}

/* Sticky notes on the board (colors come from the shared skin-sticky in cork.css) */
.sticky-orange { --sticky: #f6c58f; }
.wb-note {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  margin: 0; border: 0; border-radius: 0;
  padding: 0.95em 0.7em 0.6em;
  font-family: var(--f-hand); font-size: 0.86rem; line-height: 1.22; text-align: left;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 3px 5px 0 rgba(60, 58, 50, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wb-note:hover { transform: rotate(calc(var(--tilt, 0deg) * -0.5)) translateY(-2px); box-shadow: 6px 9px 0 rgba(60, 58, 50, 0.16); }
.wb-note:focus-visible { outline-offset: 4px; }
.wb-note.is-lifted { visibility: hidden; }
.wb-org { font-weight: 700; font-size: 1.1em; line-height: 1.12; }
.wb-role { margin-top: 0.25em; }
.wb-front { margin-top: 0.3em; }
.wb-dates { margin-top: 0.35em; font-family: var(--f-device); font-size: 0.72em; line-height: 1.3; color: var(--ink-soft); }
.wb-who {
  align-self: flex-end; margin-top: auto;
  display: inline-grid; place-items: center;
  min-width: 2.1em; height: 2.1em; padding: 0 0.4em; border-radius: 1.05em;
  background: var(--ink); color: #f3f0e6;
  font-family: var(--f-device); font-size: 0.66em; letter-spacing: 0.04em;
}
.wb-front, .wb-dates { margin-bottom: 0.4em; }

/* The call to action: circled twice in red marker */
.wb-note.is-cta .wb-org { font-size: 1.22em; }
.wb-note.is-cta .wb-front { font-weight: 700; color: var(--go); }
.wb-note.is-cta .wb-who { background: var(--m-red); }
.wb-note.is-cta::after {
  content: ""; position: absolute; inset: -9px -11px -10px -9px;
  border: 3px solid var(--m-red); border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Inspect: a big sticky note, sized to its text */
.inspect-note { width: min(90vw, 32rem); }
.inspect-note .face.skin-sticky { aspect-ratio: auto; min-height: min(64vw, 17rem); padding: 1.3em 1.3em 1.2em; }
.wb-i-tag {
  margin-bottom: 0.7em !important;
  font-family: var(--f-device); font-size: 0.66em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.wb-i-role { margin-top: 0.4em !important; font-weight: 700; }
.wb-i-meta { margin-top: 0.4em !important; font-family: var(--f-device); font-size: 0.72em; line-height: 1.4; color: var(--ink-soft); }
.face-back .wb-i-meta { margin: -0.2em 0 0.6em !important; }
.wb-i-sub { margin-top: 0.4em !important; font-weight: 700; }
.wb-steps { margin-bottom: 0.5em !important; }
.wb-i-empty { margin-top: 0.4em !important; }
.wb-contact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1em !important; }
.wb-contact .inspect-btn {
  display: inline-flex; align-items: center;
  font-family: var(--f-slide); font-size: 0.8em; text-decoration: none;
}
