/* ============================================================
   Workshops: /workshops/ (the list) and /workshops/<slug>/ (one page
   per workshop), with their /zh/ twins. 2026-11-19.

   Reads the site tokens (tokens.css). The few values below are the ones
   the palette had no token for:
   - a field border dark enough for 3:1 against the card (WCAG for
     interactive borders; --line-strong is about 2:1);
   - a deeper wheat for "Fully booked" text, so it clears 4.5:1;
   - a display stack that hands Chinese glyphs to Noto Serif SC instead of
     a system font when a title mixes Latin and Chinese.
   Four type sizes: display (the workshop title), heading (section titles,
   card titles, the date and the price), body, and small (labels in mono
   capitals, notes in sans).
   ============================================================ */
:root {
  --ws-field-border: oklch(60% 0.022 60);   /* 3.6:1 on --bg-elev */
  --ws-full: oklch(45% 0.075 70);           /* about 7:1 on --bg-elev */
  --ws-display: 'Fraunces', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --ws-fs-display: clamp(2.125rem, 4.6vw, 3.25rem);
  --ws-fs-heading: clamp(1.375rem, 2.4vw, 1.75rem);
  --ws-fs-body: 1rem;
  --ws-fs-small: 0.8125rem;
  --ws-press: scale(0.98);
}
html[lang^="zh"] { --ws-fs-small: 0.875rem; }

/* ---------- Shared bits ---------- */
.ws-label, .wsd-label {
  font-family: var(--font-mono);
  font-size: var(--ws-fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
html[lang^="zh"] .ws-label, html[lang^="zh"] .wsd-label { font-family: var(--font-sc); letter-spacing: 0.04em; text-transform: none; }
.ws-cur { font-family: var(--font-mono); font-size: 0.42em; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); vertical-align: 0.35em; }
.ws-h2 {
  font-family: var(--ws-display);
  font-weight: 400;
  font-size: var(--ws-fs-heading);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  color: var(--ink);
  margin: 0;
}
/* Every pressable thing answers the press. */
.wsl-card, .wsd-btn, .wsd-copy, .wsl-private-cta, .wsl-notify .btn, .wsd-back {
  touch-action: manipulation;
  transition: transform var(--dur-1) var(--ease), border-color var(--dur-1) ease, background-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.wsl-card:active, .wsd-btn:not(:disabled):active, .wsd-copy:active, .wsl-private-cta:active, .wsl-notify .btn:not(:disabled):active { transform: var(--ws-press); }
.wsd-copy, .wsl-private-cta { -webkit-user-select: none; user-select: none; }

/* ============================================================
   /workshops/
   ============================================================ */
.wsl-section { padding-block: clamp(var(--s-6), 6vw, var(--s-8)); }
.wsl-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }

.wsl-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); max-width: 60rem; }
.wsl-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.wsl-card:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
@media (min-width: 640px) {
  .wsl-card { grid-template-columns: minmax(11rem, 36%) minmax(0, 1fr); }
}
.wsl-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-sunk); }
.wsl-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.wsl-card-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--ws-display); font-style: italic; font-size: var(--ws-fs-heading); color: var(--ink-soft);
}
.wsl-card-body { display: flex; flex-direction: column; gap: var(--s-2); padding: clamp(var(--s-5), 3vw, var(--s-6)); min-width: 0; }
.wsl-card-when { font-family: var(--font-mono); font-size: var(--ws-fs-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-deep); }
html[lang^="zh"] .wsl-card-when { font-family: var(--font-sc); letter-spacing: 0.02em; }
.wsl-card-title {
  font-family: var(--ws-display); font-weight: 400; font-size: var(--ws-fs-heading); line-height: 1.15;
  letter-spacing: -0.012em; font-variation-settings: 'opsz' 144, 'SOFT' 30; color: var(--ink); margin: 0;
  overflow-wrap: anywhere;
}
.wsl-card-meta { font-size: var(--ws-fs-small); color: var(--ink-soft); line-height: 1.5; }
.wsl-card-desc {
  margin-top: var(--s-1); font-size: var(--ws-fs-body); line-height: 1.55; color: var(--ink-soft);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.wsl-card-foot { margin-top: auto; padding-top: var(--s-4); display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.wsl-card-price { font-family: var(--ws-display); font-size: var(--ws-fs-heading); line-height: 1; color: var(--ink); font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.wsl-card-status { font-family: var(--font-mono); font-size: var(--ws-fs-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-deep); white-space: nowrap; }
.wsl-card-status.is-full { color: var(--ws-full); }
html[lang^="zh"] .wsl-card-status { font-family: var(--font-sc); letter-spacing: 0.02em; }
.wsl-card-cta {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); background: var(--sage-deep); color: var(--ink-on-deep);
  font-size: var(--ws-fs-small); font-weight: 500; letter-spacing: var(--tracking-label); white-space: nowrap;
  transition: background-color var(--dur-1) ease;
}
.wsl-card-arrow { display: inline-block; margin-left: var(--s-2); transition: transform var(--dur-1) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .wsl-card:hover { border-color: var(--sage-soft); box-shadow: var(--shadow-1); }
  .wsl-card:hover .wsl-card-cta { background: var(--bg-deep); }
  .wsl-card:hover .wsl-card-arrow { transform: translateX(3px); }
}
.wsl-none {
  margin: 0; max-width: 40rem; padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-4);
  font-size: var(--ws-fs-body); line-height: 1.6; color: var(--ink-soft);
}

/* The two that always show: private one-to-one, and the sign-up. */
.wsl-more { padding-bottom: clamp(var(--s-6), 5vw, var(--s-8)); }
.wsl-more-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
@media (min-width: 880px) { .wsl-more-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); } }
.wsl-private, .wsl-notify { border-radius: var(--r-4); padding: clamp(var(--s-5), 4vw, var(--s-7)); display: flex; flex-direction: column; gap: var(--s-3); }
.wsl-private { background: var(--sage-wash); border: 1px solid var(--sage-soft); }
.wsl-private p, .wsl-notify > p { margin: 0; font-size: var(--ws-fs-body); line-height: 1.6; color: var(--ink-soft); max-width: 36rem; }
.wsl-private-cta {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 var(--s-5); border: 1px solid var(--sage-deep); border-radius: var(--r-pill);
  color: var(--sage-deep); font-size: var(--fs-sm); font-weight: 500; letter-spacing: var(--tracking-label);
  text-decoration: none; text-align: center;
}
.wsl-private-cta:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .wsl-private-cta:hover { background: var(--sage-deep); color: var(--ink-on-deep); }
}
.wsl-private .ws-h2 + p { margin-bottom: var(--s-3); }

.wsl-notify { background: var(--bg-elev); border: 1px solid var(--line); }
.wsl-notify-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-2); }
@media (min-width: 560px) { .wsl-notify-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ws-field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.ws-input {
  width: 100%; height: 48px; padding: 0 var(--s-4);
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--ws-field-border); border-radius: var(--r-2);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.ws-input:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px var(--sage-wash); }
.ws-input[aria-invalid="true"] { border-color: var(--ws-full); }
.ws-err { margin: 0; font-size: var(--ws-fs-small); line-height: 1.45; color: var(--ws-full); }
.ws-err[hidden] { display: none; }
.wsl-notify-actions { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.wsl-notify .btn[aria-busy="true"]::after { content: '…'; }
.wsl-notify .btn:disabled { cursor: progress; }
.ws-status { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); font-size: var(--ws-fs-body); line-height: 1.5; }
.ws-status:empty { padding: 0; border: 0; }
.ws-status.is-ok { background: var(--sage-wash); color: var(--sage-deep); border: 1px solid var(--sage-soft); }
.ws-status.is-err { background: var(--rose-soft); color: var(--ws-full); border: 1px solid var(--rose); }
.ws-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============================================================
   /workshops/<slug>/: one picture, the text, the details, then Book
   ============================================================ */
/* The nav is in the flow and .main still pads by --header-h (for the photo
   heroes, which pull up under the nav). This page has no hero, so it takes
   most of that band back. */
.wsd { margin-top: calc(var(--s-5) - var(--header-h)); padding-block: 0 clamp(var(--s-7), 7vw, var(--s-9)); }
.wsd-back {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-bottom: var(--s-4);
  font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none;
}
.wsd-back::before { content: '←'; transition: transform var(--dur-1) var(--ease); }
.wsd-back:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; border-radius: var(--r-1); }
@media (hover: hover) and (pointer: fine) {
  .wsd-back:hover { color: var(--ink); }
  .wsd-back:hover::before { transform: translateX(-3px); }
}

.wsd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(var(--s-5), 4vw, var(--s-8)); align-items: start; }
@media (min-width: 900px) {
  .wsd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .wsd.no-media .wsd-grid { grid-template-columns: minmax(0, 46rem); }
}
.wsd.no-media .wsd-media { display: none; }

/* The picture keeps its own shape, portrait or landscape: never cropped,
   never stretched, only capped in height. On a phone the cap is 56svh, so a
   portrait poster under the nav still leaves the kicker and the title on the
   first screen (at 78svh a 2:3 poster filled it, measured 20 Nov). On a wide
   screen it fits one screen under the nav. (A sticky picture column was tried
   and does not stick: body's overflow-x: hidden makes body the scroll
   container, the same reason the site's sticky nav never sticks.) */
.wsd-media { margin: 0; }
.wsd-media img {
  display: block; width: auto; max-width: 100%; height: auto;
  max-height: min(56svh, 46rem);
  border-radius: var(--r-4);
  background: var(--bg-sunk);
  box-shadow: var(--shadow-2);
}
@media (max-width: 899px) { .wsd-media img { margin-inline: auto; } }
@media (min-width: 900px) { .wsd-media img { max-height: min(calc(100svh - var(--header-h, 72px) - 2 * var(--s-5)), 46rem); } }

.wsd-body { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.wsd-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.wsd-kicker { margin: 0; font-family: var(--font-mono); font-size: var(--ws-fs-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); }
html[lang^="zh"] .wsd-kicker { font-family: var(--font-sc); letter-spacing: 0.04em; }
.wsd-kicker:empty { display: none; }
.wsd-chip {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px var(--s-3);
  border-radius: var(--r-pill); font-size: var(--ws-fs-small); font-weight: 500; line-height: 1.4;
}
.wsd-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.wsd-chip.is-full { background: var(--clay-soft); color: var(--ws-full); }
.wsd-chip.is-ended { background: var(--bg-sunk); color: var(--ink-soft); }
.wsd-title {
  margin: 0; font-family: var(--ws-display); font-weight: 400; font-size: var(--ws-fs-display); line-height: 1.06;
  letter-spacing: -0.022em; font-variation-settings: 'opsz' 144, 'SOFT' 30; color: var(--ink);
  overflow-wrap: anywhere; text-wrap: balance;
}
.wsd-title:lang(zh) { line-height: 1.2; letter-spacing: 0; }
/* Her long titles (see isLongTitle in workshop-page.js) a step down. */
.wsd-title.is-long { font-size: clamp(1.625rem, 3.2vw, 2.375rem); line-height: 1.15; }
.wsd-title.is-long:lang(zh) { line-height: 1.3; }

/* Ended, with a later intake of the same workshop open: the way there. */
.wsd-next {
  align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5);
  background: var(--sage-wash); border: 1px solid var(--sage-soft); border-radius: var(--r-3);
}
.wsd-next-text { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--ws-fs-body); line-height: 1.4; color: var(--ink); }
.wsd-next-text strong { font-weight: 600; color: var(--sage-deep); }
.wsd-next-text span { font-size: var(--ws-fs-small); color: var(--ink-soft); }
.wsd-next .wsd-next-btn { width: auto; height: 48px; padding-inline: var(--s-5); }
@media (max-width: 479px) { .wsd-next .wsd-next-btn { width: 100%; } }
.wsd-desc { max-width: 62ch; font-size: 1.0625rem; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.wsd-desc p { margin: 0; }
.wsd-desc p + p { margin-top: var(--s-4); }
.wsd-desc:empty { display: none; }
/* Her tick lines, as one "what you get" list. */
.wsd-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.wsd-desc p + .wsd-list, .wsd-list + p { margin-top: var(--s-3); }
.wsd-desc .wsd-list:first-child { margin-top: 0; }
.wsd-list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; }
.wsd-list li::before {
  content: ''; width: 1.125rem; height: 1.125rem; border-radius: 50%; align-self: start; margin-top: max(0px, calc((1lh - 1.125rem) / 2));
  background: var(--sage-wash) url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 6L5 8L9 4' stroke='%23375e4d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--sage);
}

/* The ticket: dates, facts, price and Book in one card. Dotted rules part
   the stub from the details, as on the site's price tables. */
.wsd-ticket {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-4);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  display: flex; flex-direction: column; gap: var(--s-5);
}
.wsd-ticket > * + * { padding-top: var(--s-5); border-top: 1px dotted var(--line-strong); }
.wsd-label-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-bottom: var(--s-3); }
.wsd-tz { font-size: var(--ws-fs-small); color: var(--ink-soft); }
.wsd-when { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wsd-when-date { font-family: var(--ws-display); font-size: var(--ws-fs-heading); line-height: 1.2; color: var(--ink); font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.wsd-when-time { font-size: var(--ws-fs-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* A course: every session on one rail, the next one marked. */
.wsd-rail { list-style: none; margin: 0; padding: 0; }
.wsd-rail li { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: 0 var(--s-3); align-items: baseline; padding-block: var(--s-2); }
.wsd-rail li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(0.625rem - 0.5px); top: calc(var(--s-2) + 1.05rem); bottom: calc(-1 * var(--s-2) + 0.35rem);
  width: 1px; background: var(--line-strong);
}
.wsd-rail-dot { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; border: 1.5px solid var(--sage); background: var(--bg-elev); justify-self: center; align-self: center; }
.wsd-rail-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); min-width: 0; }
.wsd-rail-date { font-size: var(--ws-fs-body); font-weight: 600; color: var(--ink); }
.wsd-rail-time { font-size: var(--ws-fs-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.wsd-rail-n { font-family: var(--font-mono); font-size: var(--ws-fs-small); letter-spacing: 0.04em; color: var(--ink-soft); white-space: nowrap; }
html[lang^="zh"] .wsd-rail-n { font-family: var(--font-sc); letter-spacing: 0; }
.wsd-rail li.is-past .wsd-rail-dot { border-color: var(--line-strong); background: var(--line); }
.wsd-rail li.is-past .wsd-rail-date { font-weight: 400; color: var(--ink-soft); }
.wsd-rail li.is-next .wsd-rail-dot { border-color: var(--sage-deep); background: var(--sage-deep); box-shadow: 0 0 0 4px var(--sage-wash); }
@media (max-width: 420px) {
  .wsd-rail li { grid-template-columns: 1.25rem minmax(0, 1fr); }
  .wsd-rail-n { grid-column: 2; }
  .wsd-rail li:not(:last-child)::after { bottom: calc(-1 * var(--s-2) + 0.35rem); }
}

.wsd-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--s-4) var(--s-5); }
.wsd-facts div { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.wsd-facts dd { margin: 0; font-size: var(--ws-fs-body); color: var(--ink); line-height: 1.45; }
.wsd-where { display: block; margin-top: 2px; font-size: var(--ws-fs-small); color: var(--ink-soft); overflow-wrap: anywhere; }

.wsd-book { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: end; }
@media (min-width: 560px) { .wsd-book { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); } }
.wsd-price { display: flex; flex-direction: column; gap: var(--s-1); }
.wsd-price-amt { font-family: var(--ws-display); font-size: var(--ws-fs-display); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: 'opsz' 144, 'SOFT' 40; white-space: nowrap; }
.wsd-left { font-size: var(--ws-fs-small); font-weight: 500; color: var(--sage-deep); }
.wsd-cta { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.wsd-btn { width: 100%; height: 56px; font-size: var(--ws-fs-body); white-space: normal; text-align: center; line-height: 1.2; }
.wsd-btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.wsd-btn-full { background: var(--bg-sunk); color: var(--ink-soft); border: 1px solid var(--line-strong); cursor: not-allowed; }
/* Countdown to a real date only (see countdownOf in workshop-page.js). */
.wsd-countdown {
  margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start;
  font-size: var(--ws-fs-small); font-weight: 600; color: var(--sage-deep); font-variant-numeric: tabular-nums;
}
.wsd-countdown::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.wsd-countdown[hidden] { display: none; }
.wsd-note { margin: 0; font-size: var(--ws-fs-small); line-height: 1.5; color: var(--ink-soft); }
.wsd-book.is-ended { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.wsd-book.is-ended .wsd-btn { width: auto; justify-self: start; padding-inline: var(--s-6); }

.wsd-after { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.wsd-copy {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--ws-field-border); border-radius: var(--r-pill); background: transparent;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink);
}
.wsd-copy svg { flex-shrink: 0; }
.wsd-copy.is-copied { border-color: var(--sage-deep); color: var(--sage-deep); background: var(--sage-wash); }
.wsd-copy:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .wsd-copy:hover { background: var(--bg-sunk); }
  .wsd-copy.is-copied:hover { background: var(--sage-wash); }
}
.wsd-ask { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
/* Inline padding gives the link a 44px tap height without moving the line. */
.wsd-ask a { padding-block: 0.95rem; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; touch-action: manipulation; }
.wsd-ask a:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; border-radius: var(--r-1); }
/* "Link copied" for screen readers; shown only when copying failed and the
   address has to be copied by hand. */
.wsd-share-status:not(.is-visible) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wsd-share-status.is-visible { flex-basis: 100%; margin: 0; font-size: var(--ws-fs-small); line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
@media (hover: hover) and (pointer: fine) { .wsd-ask a:hover { color: var(--ink); } }

/* The phone Book bar. Hidden on wide screens, where the ticket sits beside
   the picture and its button is always near. Slides up from below the screen
   edge (transform only), and keeps clear of the home indicator. */
.wsd-bar { display: none; }
@media (max-width: 899px) {
  .wsd-bar:not(:empty) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-elev); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px oklch(22% 0.02 270 / 0.06);
    transform: translateY(110%); visibility: hidden;
    transition: transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
  }
  .wsd-bar.is-shown { transform: translateY(0); visibility: visible; transition: transform var(--dur-2) var(--ease), visibility 0s; }
  html.has-wsd-bar body { padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px)); }
}
/* Reduced motion: the bar fades in place instead of sliding (fewer and gentler,
   not none; the site tokens drop to 0.01ms here, so the time is written out). */
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .wsd-bar:not(:empty) { transform: none; opacity: 0; transition: opacity 180ms ease, visibility 0s linear 180ms; }
  .wsd-bar.is-shown { transform: none; opacity: 1; transition: opacity 180ms ease, visibility 0s; }
}
/* Countdown on its own line (when there is one), then price beside Book. */
.wsd-bar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-4); max-width: 40rem; margin-inline: auto; }
.wsd-bar-inner .wsd-countdown { grid-column: 1 / -1; }
.wsd-bar-price { font-family: var(--ws-display); font-size: var(--ws-fs-heading); line-height: 1; color: var(--ink); white-space: nowrap; }
.wsd-bar-btn { height: 48px; padding: 0 var(--s-5); font-size: var(--ws-fs-body); touch-action: manipulation; transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) ease; }
.wsd-bar-btn:active { transform: var(--ws-press); }
.wsd-bar-btn:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
@media (max-width: 359px) { .wsd-bar-btn { padding: 0 var(--s-4); } }

/* The shell before it has matched the address, and a link that no longer
   matches anything. */
.wsd[data-ws-state="loading"] .wsd-ticket, .wsd[data-ws-state="loading"] .wsd-after { display: none; }
.wsd[data-ws-state="loading"] .wsd-media { display: none; }
.wsd-loading { margin: 0; color: var(--ink-soft); }
.wsd:not([data-ws-state="loading"]) .wsd-loading { display: none; }
.wsd-missing { display: none; max-width: 32rem; }
.wsd-missing h1 { margin: 0; font-family: var(--ws-display); font-weight: 400; font-size: var(--ws-fs-heading); line-height: 1.35; letter-spacing: 0; }
.wsd-missing a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wsd[data-ws-state="missing"] .wsd-missing { display: block; }
.wsd[data-ws-state="missing"] .wsd-grid, .wsd[data-ws-state="missing"] .wsd-loading { display: none; }

/* ============================================================
   19 Nov, after Chia's review: the 1-on-1 card under the workshop list,
   the sign-up on its own, and the questions moved from /classes/.
   ============================================================ */
.wsl-cards-more { margin-top: var(--s-4); }
.wsl-card-oneone .wsl-card-media img { object-position: 50% 30%; }
.wsl-card-oneone .wsl-card-title em { font-style: normal; }
.wsl-card-oneone .wsl-card-desc { -webkit-line-clamp: 3; }
.wsl-card-oneone .wsl-card-foot { gap: var(--s-3); }
.wsl-card-oneone .wsl-card-cta { margin-left: 0; text-decoration: none; }
.wsl-card-oneone .wsl-card-cta.is-alt { background: transparent; color: var(--sage-deep); box-shadow: inset 0 0 0 1.5px var(--sage-deep); }
.wsl-card-oneone .wsl-card-cta:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.wsl-card-oneone .wsl-card-cta:active { transform: var(--ws-press); }
@media (hover: hover) and (pointer: fine) {
  .wsl-card-oneone:hover { border-color: var(--line); box-shadow: none; }
  .wsl-card-oneone .wsl-card-cta:hover { background: var(--bg-deep); color: var(--ink-on-deep); }
}
@media (max-width: 479px) { .wsl-card-oneone .wsl-card-cta { width: 100%; justify-content: center; } }

.wsl-more .wsl-notify { max-width: 60rem; }

.wsl-faq { padding-bottom: clamp(var(--s-7), 6vw, var(--s-9)); }
.wsl-faq .container > .ws-h2 { margin-top: var(--s-3); }
.wsl-faq .faq-list { display: flex; flex-direction: column; margin-top: var(--s-5); max-width: 60rem; }
.wsl-faq .faq-item { border-top: 1px solid var(--line); }
.wsl-faq .faq-item[open] { padding-bottom: var(--s-5); }
.wsl-faq .faq-item:last-child { border-bottom: 1px solid var(--line); }
.wsl-faq .faq-q {
  font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 40; letter-spacing: -0.012em;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  list-style: none; min-height: 44px;
  /* The row's height lives on the summary, so the whole row is the tap target. */
  padding-block: var(--s-5);
}
.wsl-faq .faq-q::-webkit-details-marker { display: none; }
.wsl-faq .faq-q::after { content: '+'; font-family: var(--font-mono); font-size: var(--fs-2xl); color: var(--ink-mute); transition: transform var(--dur-2) var(--ease); flex-shrink: 0; }
.wsl-faq .faq-item[open] .faq-q::after { transform: rotate(45deg); }
.wsl-faq .faq-q:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: var(--r-1, 4px); }
.wsl-faq .faq-item p { margin: 0; font-size: var(--ws-fs-body); color: var(--ink-soft); line-height: 1.6; max-width: 44rem; }
html[lang^="zh"] .wsl-faq .faq-q { font-family: var(--font-sc); font-size: var(--fs-lg); }
.wsl-card-oneone:active { transform: none; }
