/* =========================================================
   WORKSHOPS CATALOGUE REFINEMENT - 2026-08-20
   Keep the original Crazy Alpaca workshop section design, but make the
   dedicated page faster and easier to scan.
========================================================= */

.workshops-page .workshops {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 96px) 0 clamp(76px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.65fr);
  grid-template-areas:
    "heading cards"
    "heading status";
  column-gap: clamp(34px, 5vw, 78px);
  row-gap: 18px;
  align-items: start;
  overflow: visible;
}

.workshops-page .workshops > * {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.workshops-page .workshops .section-heading {
  grid-area: heading;
  margin: 0;
  display: block;
  align-self: start;
}

.workshops-page .workshops .section-heading > div {
  max-width: 360px;
}

.workshops-page .workshops .section-heading h2 {
  font-size: clamp(2.9rem, 4.4vw, 4.9rem);
}

.workshops-page .workshops .section-heading__intro {
  max-width: 330px;
  margin: 20px 0 0;
  padding: 0;
}

.workshops-page .workshop-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* The dedicated page owns its catalogue count layouts. Homepage count rules
   are intentionally excluded in style.css so they cannot override this. */
.workshops-page .workshop-grid[data-count="1"] {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.workshops-page .workshop-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshops-page .ca-dynamic-status {
  grid-area: status;
  margin-top: 2px;
}

.workshops-page .workshop-card {
  height: 100%;
  border-radius: 28px;
}

.workshops-page .workshop-card__motion-shell,
.workshops-page .workshop-card__link {
  height: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  color: inherit;
  background: rgba(255,255,255,.96);
  text-decoration: none;
}

/* Keep the posters as the catalogue visual, but don't animate dozens of
   card children forever while the user wheel-scrolls. */
.workshops-page .workshop-card__motion-shell,
.workshops-page .workshop-badge,
.workshops-page .workshop-chip,
.workshops-page .workshop-title-word,
.workshops-page .workshop-detail,
.workshops-page .workshop-arrow__surface,
.workshops-page .workshop-arrow__word {
  animation: none !important;
}

.workshops-page .workshop-card__motion-shell {
  transform: translateY(var(--workshop-lift, 0));
  transition: transform .2s ease, box-shadow .2s ease;
}

.workshops-page .workshop-card:hover .workshop-card__motion-shell,
.workshops-page .workshop-card__link:focus-visible {
  --workshop-lift: -4px;
}

.workshops-page .workshop-card__link:focus-visible {
  outline: 3px solid rgba(138,19,173,.38);
  outline-offset: 4px;
}

.workshops-page .workshop-card__visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.workshops-page .workshop-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--workshop-image-zoom, 1));
}

.workshops-page .workshop-card__content {
  flex: 1;
  padding: 20px 22px 22px;
}

.workshops-page .workshop-card__title {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 2.4vw, 2.65rem);
  line-height: .98;
}

.workshops-page .workshop-card__description {
  margin-top: 11px;
  font-size: .9rem;
  line-height: 1.5;
}

.workshops-page .workshop-details {
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border: 0;
}

.workshops-page .workshop-detail {
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255,247,251,.95);
}

.workshops-page .workshop-card__footer {
  margin-top: 14px;
  padding-top: 0;
}

.workshops-page .workshop-arrow {
  width: auto;
  height: auto;
  flex: none;
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.workshops-page .workshop-arrow__surface {
  display: inline-flex;
  gap: 5px;
  padding: 10px 13px;
  border-radius: 12px;
  color: #fff;
  background: var(--purple);
  font-size: .76rem;
  font-weight: 900;
}

@media (min-width: 1081px) {
  .workshops-page .workshops .section-heading {
    position: sticky;
    top: 112px;
  }
}

@media (max-width: 1080px) {
  .workshops-page .workshops {
    width: min(calc(100% - 40px), 1120px);
    grid-template-columns: minmax(220px, .68fr) minmax(0, 1.5fr);
    column-gap: 32px;
  }

  .workshops-page .workshop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .workshops-page .workshop-card__content {
    padding: 18px;
  }

  .workshops-page .workshop-card__topline,
  .workshops-page .workshop-card__description {
    display: none;
  }

  .workshops-page .workshop-details {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile is deliberately a compact visual browser: poster + title only.
   The whole card is the link to the full workshop page. */
@media (max-width: 760px) {
  .workshops-page .workshops {
    width: min(calc(100% - 28px), 720px);
    padding-top: 44px;
    display: block;
  }

  .workshops-page .workshops .section-heading {
    margin-bottom: 24px;
  }

  .workshops-page .workshops .section-heading > div,
  .workshops-page .workshops .section-heading__intro {
    max-width: none;
  }

  .workshops-page .workshops .section-heading h2 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .workshops-page .workshop-grid,
  .workshops-page .workshop-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .workshops-page .workshop-grid[data-count="1"] {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
  }

  .workshops-page .workshop-card {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(96,29,94,.07);
  }

  .workshops-page .workshop-card:hover {
    transform: none;
  }

  .workshops-page .workshop-card__visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .workshops-page .workshop-badge,
  .workshops-page .workshop-card__topline,
  .workshops-page .workshop-card__description,
  .workshops-page .workshop-details,
  .workshops-page .workshop-card__footer {
    display: none !important;
  }

  .workshops-page .workshop-card__content {
    min-height: 72px;
    padding: 11px 11px 13px;
    justify-content: flex-start;
  }

  .workshops-page .workshop-card__title {
    margin: 0;
    font-size: clamp(1rem, 4.6vw, 1.3rem);
    line-height: 1.02;
    letter-spacing: -.025em;
  }

  .workshops-page .workshop-title-word--accent {
    color: var(--coral);
  }

  .workshops-page .ca-dynamic-status {
    margin-top: 14px;
  }
}

/* Dedicated catalogue breakpoint ownership.
   Small phones use one comfortable card per row; 380px+ keeps the compact
   two-column browser. This intentionally matches the Private Parties page. */
@media (max-width: 379px) {
  .workshops-page .workshops {
    width: min(calc(100% - 20px), 360px);
  }

  .workshops-page .workshop-grid,
  .workshops-page .workshop-grid[data-count="1"],
  .workshops-page .workshop-grid[data-count="2"] {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workshops-page .workshop-card__visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .workshops-page .workshop-card__content {
    min-height: 66px;
    padding: 9px 9px 11px;
  }

  .workshops-page .workshop-card__title {
    font-size: .96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshops-page .workshop-card__motion-shell {
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   COMPACT WORKSHOP CATALOGUE - 20 AUG 2026
   Poster sells the idea; the detail page carries the explanation.
========================================================= */
.workshops-page .workshop-card__topline {
  display: flex !important;
  justify-content: center;
  margin: 0 0 8px;
}

.workshops-page .workshop-card__description {
  display: none !important;
}

.workshops-page .workshop-card__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 16px 17px 18px !important;
}

.workshops-page .workshop-card__title {
  margin: 2px auto 0 !important;
  max-width: 13ch;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem) !important;
  text-align: center;
}

.workshops-page .workshop-details--compact {
  display: block !important;
  width: 100%;
  margin: 12px 0 0 !important;
}

.workshops-page .workshop-details--compact .workshop-detail--availability {
  width: fit-content;
  min-width: 0;
  margin: 0 auto;
  padding: 7px 11px !important;
  display: block;
  border-radius: 999px !important;
  background: #fff2f8 !important;
  text-align: center;
}

.workshops-page .workshop-details--compact .workshop-detail--availability dt {
  display: none;
}

.workshops-page .workshop-details--compact .workshop-detail--availability dd {
  margin: 0 !important;
  font-size: .76rem;
  font-weight: 900;
}

.workshops-page .workshop-card__footer {
  display: flex !important;
  justify-content: center !important;
  width: 100%;
  margin-top: 12px !important;
}

.workshops-page .workshop-arrow__surface {
  justify-content: center;
  min-width: 126px;
}

@media (max-width: 760px) {
  .workshops-page .workshop-card__topline,
  .workshops-page .workshop-details,
  .workshops-page .workshop-card__footer {
    display: flex !important;
  }

  .workshops-page .workshop-details {
    justify-content: center !important;
  }

  .workshops-page .workshop-card__content {
    min-height: 0 !important;
    padding: 9px 8px 11px !important;
  }

  .workshops-page .workshop-card__topline {
    margin-bottom: 6px;
  }

  .workshops-page .workshop-chip {
    padding: 5px 7px !important;
    font-size: .58rem !important;
  }

  .workshops-page .workshop-card__title {
    max-width: 12ch;
    font-size: clamp(.96rem, 4.4vw, 1.22rem) !important;
    line-height: 1 !important;
  }

  .workshops-page .workshop-details--compact {
    margin-top: 8px !important;
  }

  .workshops-page .workshop-details--compact .workshop-detail--availability {
    padding: 5px 7px !important;
  }

  .workshops-page .workshop-details--compact .workshop-detail--availability dd {
    font-size: .59rem !important;
  }

  .workshops-page .workshop-card__footer {
    margin-top: 8px !important;
  }

  .workshops-page .workshop-arrow__surface {
    min-width: 0;
    padding: 7px 9px !important;
    font-size: .58rem !important;
  }
}


/* =========================================================
   SPRINT 3 - WORKSHOP CARD DECISION SYSTEM
   Keep the playful poster treatment, but make the practical comparison
   information stable and readable at every catalogue width.
========================================================= */
.workshops-page .workshop-card__content {
  min-height: 286px;
}

.workshops-page .workshop-card__title {
  display: -webkit-box;
  min-height: 2.94em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.workshops-page .workshop-card__description {
  display: -webkit-box !important;
  min-height: 3em;
  margin: 10px auto 0 !important;
  max-width: 34ch;
  overflow: hidden;
  color: #65485d;
  font-size: .84rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workshops-page .workshop-details--compact {
  margin-top: auto !important;
  padding-top: 14px !important;
}

.workshops-page .workshop-card__decision-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.workshops-page .workshop-card__decision-row .workshop-detail {
  min-width: 0;
  padding: 8px 6px !important;
  background: rgba(255,247,251,.94);
  text-align: center;
  animation: none !important;
  transform: none !important;
}

.workshops-page .workshop-card__decision-row dt {
  color: #806278;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.15;
  text-transform: uppercase;
}

.workshops-page .workshop-card__decision-row dd {
  margin: 3px 0 0;
  color: #38273a;
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.2;
}

.workshops-page .workshop-details--compact .workshop-detail--availability {
  margin-top: 8px !important;
}

.workshops-page .workshop-card__footer {
  margin-top: 10px !important;
}

.workshops-page .workshop-arrow__surface {
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 5px;
  line-height: 1;
}

.workshops-page .workshop-card__link:focus-visible {
  outline: 3px solid #741195;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  .workshops-page .workshop-badge {
    display: inline-flex !important;
    font-size: .62rem;
  }

  .workshops-page .workshop-card__content {
    min-height: 238px !important;
    padding: 10px 9px 11px !important;
  }

  .workshops-page .workshop-card__title {
    min-height: 3em;
    max-width: 13ch;
    font-size: clamp(1rem, 4.4vw, 1.18rem) !important;
  }

  /* On the narrow two-column catalogue, the decision facts are more useful
     than repeating the teaser copy from the detail page. */
  .workshops-page .workshop-card__description {
    display: none !important;
  }

  .workshops-page .workshop-card__topline {
    margin-bottom: 7px;
  }

  .workshops-page .workshop-chip {
    max-width: 100%;
    padding: 5px 7px !important;
    overflow: hidden;
    font-size: .69rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workshops-page .workshop-details--compact {
    margin-top: auto !important;
    padding-top: 9px !important;
  }

  .workshops-page .workshop-card__decision-row {
    gap: 4px;
  }

  .workshops-page .workshop-card__decision-row .workshop-detail {
    padding: 6px 3px !important;
    border-radius: 10px;
  }

  .workshops-page .workshop-card__decision-row dt {
    /* Values are self-explanatory in the compact card; keep the semantic dt
       available to assistive technology without spending three extra lines. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .workshops-page .workshop-card__decision-row dd {
    margin: 0;
    font-size: .7rem;
    line-height: 1.12;
  }

  .workshops-page .workshop-details--compact .workshop-detail--availability {
    margin-top: 6px !important;
    padding: 6px 8px !important;
  }

  .workshops-page .workshop-details--compact .workshop-detail--availability dd {
    font-size: .69rem !important;
  }

  .workshops-page .workshop-card__footer {
    margin-top: 7px !important;
  }

  .workshops-page .workshop-arrow__surface {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 7px !important;
    font-size: .69rem !important;
  }
}

@media (max-width: 379px) {
  .workshops-page .workshop-card__content {
    min-height: 0 !important;
    padding: 14px 14px 16px !important;
  }

  .workshops-page .workshop-card__title {
    min-height: 0;
    max-width: 18ch;
    font-size: 1.28rem !important;
  }

  .workshops-page .workshop-card__description {
    display: -webkit-box !important;
    min-height: 0;
    margin-top: 8px !important;
    font-size: .82rem;
    -webkit-line-clamp: 2;
  }

  .workshops-page .workshop-chip {
    font-size: .74rem !important;
  }

  .workshops-page .workshop-card__decision-row dd,
  .workshops-page .workshop-details--compact .workshop-detail--availability dd {
    font-size: .76rem !important;
  }

  .workshops-page .workshop-arrow__surface {
    font-size: .74rem !important;
  }
}

/* Dedicated catalogue wins over the late global performance image sizing. */
@media (max-width: 760px) {
  .home-page.workshops-page .workshop-card__visual {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
  }

  .home-page.workshops-page .workshop-card__decision-row {
    padding: 0 !important;
  }
}

@media (max-width: 379px) {
  .home-page.workshops-page .workshop-card__visual {
    aspect-ratio: 4 / 3;
  }
}


/* REGRESSION PATCH - BOUNDED CATALOGUE STATES
   Keep loading/empty/error outcomes visually intentional and stable. */
.workshops-page .workshop-grid[data-state="loading"],
.workshops-page .workshop-grid[data-state="empty"],
.workshops-page .workshop-grid[data-state="error"] {
  min-height: 420px;
}

.workshops-page .workshop-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
}

.workshops-page .workshop-empty .ca-state-actions {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .workshops-page .workshop-grid[data-state="loading"],
  .workshops-page .workshop-grid[data-state="empty"],
  .workshops-page .workshop-grid[data-state="error"] {
    min-height: 340px;
  }
}

/* =========================================================
   REFINEMENT SPRINT A - CENTRED LANDING + THREE-CARD DESKTOP
========================================================= */
.workshops-page .workshops {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  padding: clamp(36px, 4.2vw, 58px) 0 clamp(76px, 7vw, 104px);
  display: block;
}

.workshops-page .workshops .section-heading,
.workshops-page .workshops .section-heading.catalogue-hero {
  position: static !important;
  width: min(100%, 1080px);
  margin-inline: auto !important;
  margin-bottom: clamp(28px, 3.6vw, 46px) !important;
}

.workshops-page .workshop-grid {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.7vw, 22px);
}

.workshops-page .workshop-grid[data-count="1"] {
  max-width: 430px;
  grid-template-columns: 1fr;
}

.workshops-page .workshop-grid[data-count="2"] {
  max-width: 880px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshops-page .ca-dynamic-status {
  width: 100%;
  max-width: 1320px;
  margin: 12px auto 0;
  text-align: center;
}

.workshops-page .workshop-card__footer {
  justify-content: center !important;
}

.workshops-page .workshop-arrow__surface {
  min-width: 164px;
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}

@media (min-width: 980px) {
  .workshops-page .workshop-grid:not([data-count="1"]):not([data-count="2"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 979px) {
  .workshops-page .workshops {
    width: min(calc(100% - 36px), 940px);
  }

  .workshops-page .workshop-grid:not([data-count="1"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .workshops-page .workshops {
    width: min(calc(100% - 28px), 720px);
    padding-top: 30px;
  }

  .workshops-page .workshops .section-heading,
  .workshops-page .workshops .section-heading.catalogue-hero {
    margin-bottom: 24px !important;
  }

  .workshops-page .workshop-arrow__surface {
    min-width: 0;
    width: fit-content;
  }
}

/* =========================================================
   FINAL REGRESSION PATCH - MOBILE CATALOGUE OWNERSHIP
   Sprint A's three-card desktop grid must never override the
   dedicated 1 / 1 / 2 / 2 mobile catalogue behaviour.
========================================================= */
@media (max-width: 379px) {
  .workshops-page .workshop-grid,
  .workshops-page .workshop-grid[data-count="1"],
  .workshops-page .workshop-grid[data-count="2"] {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 380px) and (max-width: 760px) {
  .workshops-page .workshop-grid:not([data-count="1"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .workshops-page .workshop-grid[data-count="1"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   VISUAL ALIGNMENT PATCH - CENTRED WORKSHOP CATALOGUE
   Keep the existing responsive ownership, but make one/two/three-card
   groups balance around the page centre on desktop.
========================================================= */
.workshops-page .workshop-grid {
  justify-content: center !important;
  justify-items: stretch;
  margin-inline: auto !important;
}

.workshops-page .workshop-grid[data-count="1"] {
  width: min(100%, 430px) !important;
}

.workshops-page .workshop-grid[data-count="2"] {
  width: min(100%, 880px) !important;
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
