:root {
  --workshop-ink: #0f172a;
  --workshop-muted: #64748b;
  --workshop-line: #e2e8f0;
  --workshop-soft: #f8fafc;
  --workshop-panel: #ffffff;
  --workshop-violet: #4f46e5;
  --workshop-violet-dark: #4338ca;
  --workshop-green: #15803d;
  --workshop-orange: #d97706;
  --workshop-red: #b91c1c;
  --workshop-blue: #2563eb;
}

body.workshop-management-page,
body.workshop-public-page,
body.workshops-page,
body.workshop-sessions-page {
  margin: 0;
  background: #ffffff;
  color: var(--workshop-ink);
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

body.workshop-management-page [data-shared-header],
body.workshop-public-page [data-shared-header],
body.workshops-page [data-shared-header],
body.workshop-sessions-page [data-shared-header],
body.workshop-management-page main,
body.workshop-public-page main,
body.workshops-page main,
body.workshop-sessions-page main {
  background: #ffffff;
}

body.workshop-management-page .site-header::after,
body.workshop-public-page .site-header::after,
body.workshops-page .site-header::after,
body.workshop-sessions-page .site-header::after {
  background-image: url("data:image/svg+xml,%3Csvg width='1440' height='39' viewBox='0 0 1440 39' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M0 5.5C66 5.5 91 36 166 27.5C233 20 239 -2 322 4.5C397 10.4 429 -4 525 6.5C603 15 617 38 688 28.5C744 21 760 33 817 12C853 -1.2 884 36 948 13.5C1012 -9 1027 3.5 1077 28C1136 57 1182 11 1244 23.5C1304 35.5 1293 -3.5 1382 18.5C1408 24.9 1425 20.5 1440 14V39H0V5.5Z' fill='%23FFFFFF'/%3E%3C/svg%3E") !important;
}

body.workshop-management-page header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

body.workshop-management-page header nav a {
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

body.workshop-management-page header nav a:hover {
  color: var(--workshop-violet);
}

.workshop-page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 26px auto 76px;
}

.workshop-create-page .workshop-page-shell {
  width: min(920px, calc(100% - 32px));
  margin-top: 28px;
}

.workshop-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.workshop-eyebrow {
  margin: 0 0 6px;
  color: var(--workshop-violet-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workshop-title {
  margin: 0;
  color: var(--workshop-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  font-weight: 900;
}

.workshop-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--workshop-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.workshop-panel {
  background: var(--workshop-panel);
  border: 1px solid var(--workshop-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.workshop-form {
  display: grid;
  gap: 18px;
}

.workshop-create-page .workshop-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workshop-form-section {
  padding: 24px;
}

.workshop-create-page .workshop-form-section {
  background: #ffffff;
  border: 1px solid var(--workshop-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.workshop-form-section + .workshop-form-section {
  border-top: 1px solid var(--workshop-line);
}

.workshop-create-page .workshop-form-section + .workshop-form-section {
  border-top: 1px solid var(--workshop-line);
}

.workshop-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--workshop-line);
}

.workshop-section-title {
  margin: 0;
  color: var(--workshop-ink);
  font-size: 1.2rem;
  font-weight: 850;
  line-height: 1.25;
}

.workshop-section-hint {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f5f3ff;
  color: var(--workshop-violet-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 10px;
}

.workshop-section-hint--gold {
  background: #fff8df;
  color: #8a5a12;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workshop-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workshop-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workshop-field {
  display: grid;
  gap: 7px;
}

.workshop-field.full {
  grid-column: 1 / -1;
}

.workshop-field label {
  color: #334155;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workshop-field input,
.workshop-field select,
.workshop-field textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--workshop-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 9px 12px;
  box-sizing: border-box;
}

.workshop-rich-editor {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.workshop-rich-editor:focus-within {
  border-color: var(--workshop-violet);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}

.workshop-rich-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--workshop-line);
  background: var(--workshop-soft);
}

.workshop-rich-toolbar button {
  min-width: 32px;
  min-height: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 5px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  padding: 3px 8px;
}

.workshop-rich-toolbar button:hover,
.workshop-rich-toolbar button:focus-visible {
  border-color: var(--workshop-violet);
  color: var(--workshop-violet-dark);
}

.workshop-rich-content {
  min-height: 152px;
  padding: 12px;
  color: var(--workshop-ink);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  outline: none;
}

.workshop-rich-content:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.workshop-rich-content p:first-child,
.workshop-rich-content ul:first-child,
.workshop-rich-content ol:first-child {
  margin-top: 0;
}

.workshop-rich-content p:last-child,
.workshop-rich-content ul:last-child,
.workshop-rich-content ol:last-child {
  margin-bottom: 0;
}

.workshop-rich-copy {
  color: #475569;
  line-height: 1.7;
}

.workshop-rich-copy ul,
.workshop-rich-copy ol {
  padding-left: 1.3rem;
}

.workshop-image-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.workshop-image-label {
  color: var(--workshop-ink);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workshop-image-label small {
  color: #94a3b8;
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.workshop-image-recommendation {
  border-radius: 999px;
  background: #f5f3ff;
  color: var(--workshop-violet-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
}

.workshop-image-upload {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.workshop-image-preview {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #d8deea;
  border-radius: 12px;
  background: var(--workshop-soft);
  color: var(--workshop-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.workshop-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  flex: none;
  object-fit: cover;
  object-position: center 20%;
}

.workshop-image-fit {
  position: absolute;
  bottom: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 4px 7px;
}

.workshop-image-dropzone {
  display: grid;
  min-height: 148px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 2px dashed #c4b5fd;
  border-radius: 12px;
  background: #fcfbff;
  color: var(--workshop-muted);
  cursor: pointer;
  padding: 20px;
  text-align: center;
}

.workshop-image-dropzone.is-dragging {
  border-color: var(--workshop-violet);
  background: #f5f3ff;
}

.workshop-image-dropzone strong {
  color: var(--workshop-ink);
  font-size: 0.86rem;
}

.workshop-image-dropzone strong u {
  color: var(--workshop-violet-dark);
  text-underline-offset: 2px;
}

.workshop-image-dropzone > span:not(.workshop-image-upload-icon):not(.workshop-image-file-name) {
  font-size: 0.74rem;
}

.workshop-image-upload-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f1edff;
  color: var(--workshop-violet);
  font-size: 1.2rem;
  font-weight: 900;
}

.workshop-image-file-name {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workshop-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workshop-field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.55;
}

.workshop-field input:focus,
.workshop-field select:focus,
.workshop-field textarea:focus {
  outline: none;
  border-color: var(--workshop-violet);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}

.workshop-help {
  color: var(--workshop-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.workshop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 4px 0 0;
}

.workshop-message {
  min-height: 20px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--workshop-muted);
  font-weight: 750;
}

.workshop-message--bottom {
  order: 10;
  margin: 0;
  text-align: center;
}

.workshop-message.success {
  padding: 12px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: var(--workshop-green);
}

.workshop-message.error {
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--workshop-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 650;
}

.workshop-management-page .btn:not(.small) {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.workshop-management-page .btn.primary {
  background: var(--workshop-violet);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.22);
}

.workshop-management-page .btn.primary:hover:not(:disabled) {
  background: var(--workshop-violet-dark);
}

.workshop-management-page .btn.violet-outline {
  border-color: var(--workshop-violet);
  color: var(--workshop-violet);
}

.workshop-management-page .btn.violet-outline:hover:not(:disabled) {
  background: #eef2ff;
  color: var(--workshop-violet-dark);
}

.workshop-filter-row,
.workshop-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workshop-filter-row {
  margin-bottom: 1.5rem;
}

.workshop-filter-btn {
  min-height: 34px;
  border: 1px solid var(--workshop-line);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  padding: 0.4rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.workshop-filter-btn.active,
.workshop-filter-btn:hover {
  background: var(--workshop-violet);
  color: #ffffff;
  border-color: var(--workshop-violet);
}

.workshop-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.workshop-card {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 16px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--workshop-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.workshop-card-image {
  width: 174px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--workshop-soft);
}

.workshop-card h2,
.workshop-card h3 {
  margin: 0 0 8px;
  color: var(--workshop-ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.workshop-card p {
  margin: 0;
  color: var(--workshop-muted);
  line-height: 1.5;
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.workshop-chip,
.workshop-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.workshop-status.published,
.workshop-status.completed {
  background: #dcfce7;
  color: #166534;
}

.workshop-status.draft,
.workshop-status.unpublished {
  background: #fff7ed;
  color: #9a3412;
}

.workshop-status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.workshop-status.archived {
  background: #f1f5f9;
  color: #475569;
}

.workshop-price {
  color: var(--workshop-violet-dark);
  font-weight: 900;
}

/* Public workshop catalog: visual cards are intentionally scoped so admin
   workshop cards and tables continue using their existing compact layout. */
body.workshops-page .workshop-form-section {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

body.workshops-page .workshop-topbar {
  align-items: flex-start;
  margin-bottom: 40px;
}

body.workshops-page .workshop-eyebrow {
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

body.workshops-page .workshop-title {
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 500;
}

body.workshops-page .workshop-subtitle {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.workshop-view-all {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.workshop-view-all:hover {
  color: var(--workshop-violet-dark);
}

body.workshops-page .workshop-filter-row {
  width: fit-content;
  max-width: 100%;
  gap: 0;
  margin-bottom: 46px;
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
}

body.workshops-page .workshop-filter-btn {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 500;
}

body.workshops-page .workshop-filter-btn.active,
body.workshops-page .workshop-filter-btn:hover {
  border-color: transparent;
  background: var(--workshop-violet);
  color: #ffffff;
}

body.workshops-page .workshop-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 0;
}

body.workshops-page .workshop-public-card {
  display: flex;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid #aeb5bf;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body.workshops-page .workshop-public-card .workshop-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  object-position: center 20%;
}

.workshop-public-card-body {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-height: 134px;
  padding: 18px 20px 20px;
}

.workshop-date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  align-self: start;
  min-height: 84px;
  padding: 7px 6px;
  border: 1px solid #d8b4fe;
  border-radius: 12px;
  background: #f3e8ff;
  color: #1f2937;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
}

.workshop-date-badge strong {
  margin: 4px 0;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 600;
}

.workshop-public-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.workshop-public-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #374151;
  font-size: 0.68rem;
  line-height: 1.35;
}

.workshop-seat-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.workshop-seat-count svg {
  width: 12px;
  height: 12px;
}

body.workshops-page .workshop-public-card h3 {
  margin: 12px 0 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

.workshop-public-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

body.workshops-page .workshop-public-card .workshop-price {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-weight: 500;
}

.workshop-details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--workshop-violet-dark);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.workshop-details-link:hover {
  color: var(--workshop-violet);
}

@media (max-width: 980px) {
  body.workshops-page .workshop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.workshops-page .workshop-form-section {
    width: min(100% - 20px, 1320px);
    padding: 20px 14px;
  }

  body.workshops-page .workshop-topbar {
    margin-bottom: 26px;
  }

  .workshop-view-all {
    display: none;
  }

  body.workshops-page .workshop-filter-row {
    width: 100%;
    margin-bottom: 28px;
    border-radius: 16px;
  }

  body.workshops-page .workshop-filter-btn {
    flex: 1 1 auto;
  }

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

@media (max-width: 640px) {
  .workshop-create-page .workshop-form-section {
    padding: 18px;
  }

  .workshop-section-heading,
  .workshop-image-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .workshop-image-upload {
    grid-template-columns: 1fr;
  }
}

.workshop-empty {
  padding: 28px;
  text-align: center;
  color: var(--workshop-muted);
  border: 1px dashed var(--workshop-line);
  border-radius: 16px;
}

.workshop-admin-table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--workshop-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.workshop-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  text-align: left;
  font-size: 0.875rem;
}

.workshop-table th,
.workshop-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--workshop-line);
  text-align: left;
  vertical-align: top;
}

.workshop-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workshop-table td {
  color: var(--workshop-ink);
  border-bottom-color: #f1f5f9;
}

.workshop-table tbody tr:hover {
  background: #f8fafc;
}

.workshop-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 22px;
}

.workshop-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--workshop-line);
}

.workshop-detail-panel {
  padding: 22px;
}

.workshop-detail-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 900;
}

.workshop-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.workshop-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 10px;
}

.workshop-detail-list dt {
  color: var(--workshop-muted);
  font-weight: 800;
}

.workshop-detail-list dd {
  margin: 0;
  color: var(--workshop-ink);
  font-weight: 900;
  text-align: right;
}

.workshop-disabled-cta {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  padding: 13px 18px;
  font: inherit;
  font-weight: 900;
  cursor: not-allowed;
}

/* Learner-facing online workshop detail. The visual hierarchy emphasizes the
   live session, learning outcomes, and enrollment information while keeping
   management screens isolated from these public-page styles. */
body.workshop-public-page .workshop-page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 28px auto 80px;
}

.workshop-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.workshop-detail-back:hover {
  color: var(--workshop-violet-dark);
}

.workshop-detail-back svg {
  width: 17px;
  height: 17px;
}

.workshop-detail-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(24px, 3.5vw, 38px);
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.13), transparent 260px),
    linear-gradient(125deg, #5b32cf 0%, #6d3bd4 52%, #5f36c8 100%);
  box-shadow: 0 22px 48px rgba(76, 29, 149, 0.22);
}

.workshop-detail-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -55px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.workshop-detail-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.7fr);
  column-gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: none;
}

.workshop-detail-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1;
}

.workshop-detail-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workshop-detail-badges .is-live {
  border-color: rgba(187, 247, 208, 0.42);
  color: #dcfce7;
}

.workshop-detail-badges i,
.workshop-detail-media figcaption i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.workshop-detail-hero h1 {
  grid-column: 1;
  max-width: 900px;
  margin: 14px 0 9px;
  color: #ffffff;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.workshop-detail-hero-copy > p {
  grid-column: 1;
  max-width: 790px;
  margin: 0;
  color: #e9e3ff;
  font-size: 1rem;
  line-height: 1.55;
}

.workshop-detail-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
}

.workshop-detail-highlights span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  color: #ffffff;
  text-align: center;
}

.workshop-detail-highlights span:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.workshop-detail-highlights span:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.workshop-detail-highlights strong {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.workshop-detail-highlights small {
  color: #ddd6fe;
  font-size: 0.67rem;
  font-weight: 600;
}

body.workshop-public-page .workshop-online-detail {
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.62fr);
  gap: 26px;
  align-items: start;
}

.workshop-detail-main {
  min-width: 0;
}

.workshop-detail-media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

body.workshop-public-page .workshop-detail-image {
  display: block;
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 20%;
}

.workshop-detail-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
}

.workshop-detail-media figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.workshop-detail-content {
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.workshop-content-section + .workshop-content-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #eef2f7;
}

.workshop-content-section h2 {
  margin: 0 0 10px;
  color: #171336;
  font-size: 1.12rem;
  font-weight: 800;
}

.workshop-content-section p {
  margin: 0;
  color: #536078;
  font-size: 0.94rem;
  line-height: 1.8;
  white-space: pre-line;
}

.workshop-summary-card {
  position: sticky;
  top: 108px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.workshop-summary-heading p {
  margin: 0 0 6px;
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.workshop-summary-heading h2 {
  margin: 0;
  color: #171336;
  font-size: 1.45rem;
  font-weight: 800;
}

.workshop-summary-heading > span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.workshop-session-date {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  background: #faf8ff;
}

.workshop-session-date time {
  display: grid;
  justify-items: center;
  padding: 7px 5px;
  border-radius: 11px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.workshop-session-date time strong {
  margin: 3px 0;
  color: #171336;
  font-size: 1.35rem;
}

.workshop-session-date > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workshop-session-date > div strong {
  color: #1e293b;
  font-size: 0.83rem;
  line-height: 1.45;
}

.workshop-session-date > div span {
  color: #64748b;
  font-size: 0.7rem;
}

.workshop-summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.workshop-summary-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.workshop-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: transparent;
  color: #6d28d9;
}

.workshop-summary-icon svg {
  width: 16px;
  height: 16px;
}

.workshop-instructor-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid #ede9fe;
  border-radius: 50%;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 900;
  object-fit: cover;
}

.workshop-instructor-avatar--initials {
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #5b32cf);
  color: #ffffff;
}

.workshop-summary-row > div {
  display: grid;
  gap: 3px;
}

.workshop-summary-row dt {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.workshop-summary-row dd {
  margin: 0;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.workshop-summary-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 4px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.workshop-summary-price strong {
  color: #6d28d9;
  font-size: 1.35rem;
  font-weight: 900;
}

.workshop-summary-price-note {
  margin: -2px 0 12px;
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: right;
}

/* Keep summary actions aligned while continuing to use the shared button skin. */
#workshopEnrollmentActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

#workshopEnrollmentActions .btn {
  width: 100%;
}

#workshopEnrollmentActions .btn:only-child,
#workshopEnrollmentActions > p {
  grid-column: 1 / -1;
}

body.workshop-public-page .workshop-summary-card .workshop-disabled-cta {
  min-height: 48px;
  margin-top: 14px;
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.workshop-enrollment-note {
  margin: 10px 4px 0;
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .workshop-detail-hero-copy {
    grid-template-columns: 1fr;
  }

  .workshop-detail-highlights {
    grid-column: 1;
    grid-row: auto;
    margin-top: 24px;
  }

  body.workshop-public-page .workshop-online-detail {
    grid-template-columns: 1fr;
  }

  .workshop-summary-card {
    position: static;
  }
}

@media (max-width: 560px) {
  body.workshop-public-page .workshop-page-shell {
    width: min(100% - 24px, 1240px);
    margin-top: 18px;
  }

  .workshop-detail-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .workshop-detail-content,
  .workshop-summary-card {
    padding: 20px;
  }

  body.workshop-public-page .workshop-detail-image {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 820px) {
  .workshop-page-shell {
    width: min(100% - 28px, 1180px);
  }

  .workshop-topbar,
  .workshop-detail {
    display: grid;
  }

  .workshop-grid,
  .workshop-grid.three,
  .workshop-grid.four {
    grid-template-columns: 1fr;
  }

  .workshop-card {
    grid-template-columns: 1fr;
  }

  .workshop-card-image {
    width: 100%;
  }

  .workshop-actions {
    justify-content: stretch;
  }

  .workshop-actions .btn,
  .workshop-card .btn {
    width: 100%;
  }
}

/* Student sessions use the same workshop shell and shared button classes.
   Only the image-led session card is specific to this view. */
body.workshop-sessions-page .workshop-page-shell {
  width: min(1240px, calc(100% - 96px));
  margin-top: 0;
}

.workshop-sessions-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 12px 0;
}

.workshop-sessions-hero .workshop-subtitle { margin: 8px 0 0; }

/* Reserve message space only when there is a real success/error message. */
body.workshop-sessions-page .workshop-message:empty { display: none; }

.workshop-session-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.workshop-session-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 26px; padding:12px 16px; border:1px solid #e9e1fb; border-radius:16px; background:#fbfaff; }
.workshop-session-tabs { display:flex; align-items:center; gap:8px; }
.workshop-session-tabs button { border:0; border-radius:999px; background:transparent; color:#475569; font:600 .78rem var(--font-family, inherit); padding:9px 14px; cursor:pointer; }
.workshop-session-tabs .is-active { background:#7b3fe4; color:#fff; }
.workshop-session-search { display:flex; align-items:center; gap:8px; width:min(290px,100%); padding:8px 12px; border:1px solid #ddd4f8; border-radius:12px; background:#fff; color:#7b3fe4; }
.workshop-session-search input { width:100%; border:0; outline:0; color:#334155; font:inherit; }

.workshop-session-card {
  overflow: hidden;
  border: 1px solid #e6ddfb;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.08);
}

.workshop-session-thumb { position:relative; }
.workshop-session-badge { position:absolute; top:14px; padding:5px 10px; border-radius:999px; font-size:.64rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.workshop-session-badge.enrolled { left:14px; background:#251c4a; color:#fff; }
.workshop-session-badge.published { left:100px; background:#fffbea; border:1px solid #e7d49b; color:#8a5a12; }

.workshop-session-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
}

.workshop-session-card-body { padding: 14px 18px 18px; }

.workshop-session-meta-row,
.workshop-session-heading,
.workshop-session-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workshop-session-meta-row {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.76rem;
}

.workshop-session-seats { padding:4px 10px; border:1px solid #e7d49b; border-radius:999px; background:#faf8e8; color:#8a5a12; font-weight:800; }

.workshop-session-details {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
}

.workshop-session-calendar {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 72px;
  padding: 7px;
  border: 1px solid #d8b4fe;
  border-radius: 12px;
  background: #f3ebff;
  color: #5b21b6;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
}

.workshop-session-calendar strong { color: #172033; font-size: 1.6rem; }
.workshop-session-copy { min-width: 0; }
.workshop-session-heading { align-items: flex-start; }
.workshop-session-heading h2 { margin: 0; color: #16233f; font-size: 1rem; line-height: 1.3; }

.workshop-session-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.workshop-session-instructor { margin: 6px 0 12px; color: #64748b; font-size: 0.78rem; }
.workshop-session-actions { justify-content: flex-start; flex-wrap: wrap; }
.workshop-session-actions .btn { min-height: 32px; }
.workshop-session-actions [data-workshop-action="join"] { background:#7b3fe4; border-color:#7b3fe4; color:#fff; box-shadow:0 8px 16px rgba(123,63,228,.22); }
.workshop-session-actions [data-workshop-action="cancel"] { border-color:transparent; background:transparent; color:#64748b; box-shadow:none; }
.workshop-session-actions [data-workshop-action="cancel"]:hover { background:#fef2f2; color:#b91c1c; }

.workshop-session-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}

.workshop-session-empty h2,
.workshop-session-empty p { margin: 0; }

@media (max-width: 760px) {
  body.workshop-sessions-page .workshop-page-shell { width: min(100% - 32px, 1240px); }
  .workshop-sessions-hero { align-items: flex-start; flex-direction: column; }
  .workshop-session-list { grid-template-columns: 1fr; }
  .workshop-session-toolbar { align-items:stretch; flex-direction:column; }
  .workshop-session-search { width:100%; }
}
