/* "Run workshops": what this hub adds to /assets/hub.css and /assets/product/replay.css.
   Load after both. Nothing here changes a shared rule for other hubs: every selector starts at
   the workshops pages (body[data-hub="workshops"]) or at a class that begins with ws-. */

/* A replay in a card sits where a figure.stage would: square corners match the card's own. */
[data-hub="workshops"] .hub-card-media > .replay,
[data-hub="workshops"] .hub-tabpanel > .replay,
[data-hub="workshops"] .hub-split > .replay { box-shadow: 0 18px 34px -24px #17281f8c }
[data-hub="workshops"] .hub-hero-stage > .replay { box-shadow: 0 22px 40px -26px #17281fa6 }
/* The engine paints a new canvas white until a saved slate gives it a colour. Here every canvas shows the stage behind it. */
[data-hub="workshops"] :is(.rp-canvas, .stage-body [data-board]) { background-color: transparent !important }
/* A card whose heading is a link is covered by that link. The replay's own buttons stay on top of it. */
[data-hub="workshops"] .hub-card:has(h3 a) .replay { z-index: 1 }
/* Words above the canvas in a card that leads with its sentence. */
[data-hub="workshops"] .hub-card.lead-copy .hub-card-media { order: 2; border-bottom: 0; border-top: 1px solid var(--s-line); flex: 1; display: grid; align-items: end }
[data-hub="workshops"] .hub-card:not(.wide) > .hub-card-media { flex: 1; display: grid; align-items: center }
/* The hero keeps its stage and its steps in one column, the stage first. */
[data-hub="workshops"] .hub-hero-stage { align-content: center }
/* Proportions: a three-lane board is about twice as wide as it is tall, and wraps to two rows on a phone. */
.ws-lanes { --rp-ratio: 2 / 1; --rp-ratio-narrow: 2 / 1 }
.ws-lanes-chat { --rp-ratio: 16 / 9; --rp-ratio-narrow: 2 / 1 }
.ws-four { --rp-ratio: 5 / 2; --rp-ratio-narrow: 5 / 2 }
.hub-tabpanel > .ws-lanes-chat { --rp-ratio: 2 / 1 }
.ws-map { --rp-ratio: 5 / 4; --rp-ratio-narrow: 5 / 4 }
@media (min-width: 801px) { .hub-card .ws-map { --rp-ratio-narrow: 3 / 2 } }
.ws-pair { --rp-ratio: 5 / 3; --rp-ratio-narrow: 5 / 3 }
.ws-budget { --rp-ratio: 2 / 1; --rp-ratio-narrow: 5 / 2 }
.ws-route, .ws-route-chat { --rp-ratio: 16 / 9; --rp-ratio-narrow: 5 / 4 }
@media (min-width: 801px) { .ws-roomy { --rp-ratio-narrow: 3 / 2 } }
.ws-beside { --rp-ratio: 16 / 7; --rp-ratio-narrow: 16 / 7 }
.ws-one { --rp-controls-tall: calc(4rem + 1px) }
.ws-short { --rp-status-narrow: 2.35rem }
@media (max-width: 800px) {
  .ws-lanes, .ws-lanes-chat, .ws-four, .ws-budget { --rp-ratio: 3 / 4; --rp-ratio-narrow: 3 / 4 }
  .ws-beside { --rp-ratio-narrow: 3 / 5 }
  .ws-hero { --rp-ratio-narrow: 2 / 3 }
}

/* With motion off the runner hides Play and Replay, which leaves a one-scene replay with an empty row. */
@media (prefers-reduced-motion: reduce) {
  .ws-one { --rp-controls-on: 0 }
  .ws-one > .rp-controls { display: none }
}

/* A phone-shaped stage: the same runner at a phone's width, with a phone's corners. */
.ws-handset { width: min(100%, 21.5rem); margin-inline: auto; border-width: 2px; border-color: #55655a; border-radius: 26px; --rp-ratio-narrow: 1 / 1 }
.ws-handset .rp-bar { padding-inline: .9rem }

/* hub.css colours and spaces every paragraph in a split or a tab panel, which reaches into a replay placed there.
   These put the replay's own paragraphs back. */
[data-hub="workshops"] :is(.hub-split, .hub-tabpanel) .replay p:not(.kicker):not(.plan-chip) { max-width: none; margin-top: 0; color: inherit }
[data-hub="workshops"] :is(.hub-split, .hub-tabpanel) .replay p.rp-label:not(.kicker):not(.plan-chip) { color: var(--rp-soft) }
[data-hub="workshops"] :is(.hub-split, .hub-tabpanel) .replay p.rp-note:not(.kicker):not(.plan-chip) { color: #3e5145 }
[data-hub="workshops"] .hub-split > div:last-child > .replay { box-shadow: 0 18px 34px -24px #17281f8c }

/* My Slates: a picture of the dashboard's own cards, each around a real, still workshop. */
.ws-dash { width: 100%; padding: .9rem 1rem 1rem; border: 1px solid #c3cabb; border-radius: 12px; background: #fffdf4; color: var(--ink); font: 500 .86rem/1.4 "Helvetica Neue", Arial, sans-serif; text-align: left }
.ws-dash-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 1px solid #d5dacb; font: 700 1.2rem/1.2 "Archivo Narrow", "Arial Narrow", sans-serif }
.ws-dash-bar i { color: #506356; font: 500 .75rem/1.4 ui-monospace, Menlo, monospace }
.ws-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem }
.ws-dash-card { display: grid; align-content: start; gap: .3rem }
.ws-dash-card .stage-body { margin-bottom: .3rem; border: 1px solid #d5dacb; border-radius: 8px; background: #fff }
.ws-dash-card b { overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap }
.ws-dash-card span { color: #506356 }
.ws-dash-card em { justify-self: start; margin-top: .15rem; padding: .1rem .6rem; border: 1px solid #b9c2b3; border-radius: 99px; font: 500 .75rem/1.5 ui-monospace, Menlo, monospace }
@media (max-width: 560px) { .ws-dash-grid { grid-template-columns: minmax(0, 1fr) } }

/* Tabs on this hub: the stage takes the larger share and the words sit beside it. */
[data-hub="workshops"] .hub-tabpanel { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start }
[data-hub="workshops"] .hub-tabpanel > div { padding-top: .4rem }
[data-hub="workshops"] .hub-tabpanel .plan-chip { margin-bottom: .8rem }
.ws-say { margin-top: 1.1rem; padding: .7rem .9rem; border-left: 3px solid var(--hub-deep); background: color-mix(in srgb, var(--hub) 45%, var(--s-bg)); font: 500 .86rem/1.5 ui-monospace, Menlo, monospace }
.ws-say b { display: block; margin-bottom: .2rem; font: 600 .75rem/1.4 ui-monospace, Menlo, monospace; opacity: .75 }

/* The lane's own sentence, set large in a card's words. */
.ws-quote { align-self: stretch; margin-top: clamp(1rem, 2.4vw, 2.2rem); padding-top: .9rem; border-top: 1px solid var(--s-line); color: #9a3c1b !important; font: 700 clamp(1.7rem, 2.7vw, 2.6rem)/1.02 "Archivo Narrow", "Arial Narrow", sans-serif !important; letter-spacing: -.03em }
.ws-quote small { display: block; margin-bottom: .5rem; color: var(--s-soft); font: 600 .75rem/1.4 ui-monospace, Menlo, monospace; letter-spacing: 0 }

/* The sentences a lane can say, set large. */
.ws-sentences { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(12px, 1.4vw, 22px); margin: 0; padding: 0 }
.ws-sentences li { display: grid; align-content: start; gap: .6rem; padding: clamp(16px, 1.7vw, 26px); border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-card) }
.ws-sentences q { quotes: none; font: 700 clamp(1.35rem, 1.9vw, 1.8rem)/1.1 "Archivo Narrow", "Arial Narrow", sans-serif; letter-spacing: -.02em; color: #9a3c1b }
.hub-section[data-tone="ink"] .ws-sentences q { color: #f4ce84 }
.ws-sentences span { color: var(--s-soft); font-size: .95rem }
.ws-sentences small { font: 600 .75rem/1.4 ui-monospace, Menlo, monospace }

/* Three boards side by side: the same budget, spent three ways. */
.ws-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px) }
.ws-trio figure { margin: 0 }
.ws-trio figcaption { margin-top: .8rem; padding: 0; border: 0; background: none; color: var(--s-ink); font: 500 1rem/1.45 "Helvetica Neue", Arial, sans-serif; letter-spacing: 0 }
.ws-trio figcaption b { display: block; color: var(--s-ink); font: 700 clamp(1.3rem, 1.7vw, 1.6rem)/1.1 "Archivo Narrow", "Arial Narrow", sans-serif; letter-spacing: -.02em }
.ws-trio figcaption span { display: block; margin-top: .25rem; color: var(--s-soft); font: 500 .95rem/1.45 "Helvetica Neue", Arial, sans-serif }
.ws-trio .stage-body { --stage-ratio: 560 / 690 }

/* The dark section's stage is wider than its words. */
[data-hub="workshops"] .hub-section[data-tone="ink"] .hub-points dt { color: #f4ce84 }
.ws-note { margin-top: 1rem; color: var(--s-soft); font-size: .9rem }

@media (max-width: 1000px) {
  [data-hub="workshops"] .hub-tabpanel { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 800px) {
  .ws-trio { grid-template-columns: minmax(0, 1fr) }
  .ws-handset { border-radius: 22px }
}
/* A hero heading breaks into lines of even length, so no short word is left hanging at the end of a line. */
[data-hub="workshops"] .hub-hero h1 { text-wrap: balance }
/* A heading of two sentences starts the second on its own line. */
[data-hub="workshops"] .hub-hero h1 .ws-line { display: block }
