/* =============================================================
   APP STYLES
   Project-specific styles go here.
   Import after design-system.css.
   ============================================================= */

.placeholder-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* ----- Auth pages ------------------------------------------ */
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px - 80px);
  padding: var(--space-8) var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--space-10);
}

.auth-card--wide {
  max-width: 600px;
}

.auth-card__title {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
}

.auth-card__sub {
  margin-bottom: var(--space-8);
}

.auth-card__terms {
  text-align: center;
}

.auth-card__terms a {
  color: var(--brand);
  text-decoration: underline;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

/* ----- Register form --------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.consent-section__title {
  font-size: var(--text-base);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  margin-bottom: var(--space-4);
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
}

.consent-item:last-child { border-bottom: none; }

.consent-item--required .form-label { font-weight: var(--weight-label); }

.consent-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.required { color: #b91c1c; margin-left: 2px; }

.ml-2 { margin-left: var(--space-2); }

/* ----- Legal pages ----------------------------------------- */
.legal-shell {
  padding-block: var(--space-16);
  padding-inline: var(--space-4);
}

.legal-card {
  max-width: 760px;
  margin-inline: auto;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.legal-header {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 100%);
  padding: var(--space-10) var(--space-10) var(--space-8);
}

.legal-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-standard);
  margin-bottom: var(--space-3);
}

.legal-title {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: 0;
}

.legal-intro {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.72);
  line-height: var(--leading-loose);
}

.legal-body {
  padding: var(--space-10);
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.legal-section h2::before {
  content: "";
  display: block;
  width: 3px;
  height: 20px;
  background: var(--blue-standard);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-section p {
  font-size: var(--text-sm);
  color: var(--gray-darker);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-list {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.legal-list li {
  font-size: var(--text-sm);
  color: var(--gray-darker);
  line-height: var(--leading-loose);
  padding-left: var(--space-5);
  position: relative;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-standard);
}

.legal-block {
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-darker);
  line-height: var(--leading-loose);
}

.legal-table {
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-block: var(--space-4);
}

.legal-table__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-bottom: var(--border);
}

.legal-table__row:last-child { border-bottom: none; }

.legal-table__row--header .legal-table__key,
.legal-table__row--header .legal-table__val {
  background: var(--blue-light);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}

.legal-table__key,
.legal-table__val {
  font-size: var(--text-sm);
  color: var(--gray-darker);
  padding: var(--space-3) var(--space-4);
  line-height: var(--leading-normal);
}

.legal-table__key {
  background: var(--gray-light);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  border-right: var(--border);
}

@media (max-width: 640px) {
  .legal-header { padding: var(--space-8) var(--space-6) var(--space-6); }
  .legal-body   { padding: var(--space-6); }
  .legal-table__row { grid-template-columns: 1fr; }
  .legal-table__key { border-right: none; border-bottom: var(--border); }
}

/* ----- Consent cards (register page) ----------------------- */
.consent-card {
  display: flex;
  gap: var(--space-4);
  background: var(--gray-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast) var(--ease-soft),
              background   var(--transition-fast) var(--ease-soft);
}

.consent-card:has(input:checked) {
  border-color: var(--blue-standard);
  background: #f0f7fd;
}

.consent-card--required {
  border-color: var(--blue-light);
  background: #fff;
}

.consent-card--recommended {
  border-color: var(--blue-light);
  background: #fff;
}

.consent-card__check {
  flex-shrink: 0;
  padding-top: 2px;
}

.consent-card__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent-card__body {
  flex: 1;
  min-width: 0;
}

.consent-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.consent-card__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  cursor: pointer;
}

.consent-card__desc {
  font-size: var(--text-sm);
  color: var(--gray-darker);
  line-height: var(--leading-normal);
}

.consent-card__desc a {
  color: var(--brand);
  text-decoration: underline;
}

.consent-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.consent-badge--required {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.consent-badge--recommended {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ----- GDPR nudge overlay ---------------------------------- */
.nudge-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(13, 36, 51, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal) var(--ease-soft);
}

.nudge-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nudge-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform var(--transition-normal) var(--ease-soft);
}

.nudge-overlay.is-open .nudge-card {
  transform: translateY(0) scale(1);
}

.nudge-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.nudge-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}

.nudge-card__body {
  font-size: var(--text-sm);
  color: var(--gray-darker);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.nudge-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ----- Login page ------------------------------------------ */
.auth-card__header {
  margin-bottom: var(--space-8);
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn--provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: background var(--transition-fast) var(--ease-soft),
              box-shadow  var(--transition-fast) var(--ease-soft);
}

.btn--provider:hover {
  background: var(--blue-xlight);
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-6);
  color: var(--muted);
  font-size: var(--text-xs);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ----- Register: optional collapsible ---------------------- */
.optional-details {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.optional-details__trigger {
  cursor: pointer;
  list-style: none;
  color: var(--gray-darker);
  font-weight: var(--weight-label);
  user-select: none;
}

.optional-details__trigger::-webkit-details-marker { display: none; }

.optional-details__trigger::before {
  content: "＋ ";
  font-size: var(--text-xs);
}

details[open] .optional-details__trigger::before {
  content: "－ ";
}

.optional-details__body {
  margin-top: var(--space-2);
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: var(--space-6); }
}

/* =============================================================
   MEMBER LAYOUT (sidebar + main)
   ============================================================= */

/* ----- Layout shell ------------------------------------------ */
.member-layout {
  display: flex;
  min-height: 100vh;
}

/* ----- Sidebar ----------------------------------------------- */
.member-sidebar {
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--blue-darker);
  overflow-y: auto;
}

.member-sidebar__top {
  display: flex;
  flex-direction: column;
}

.member-sidebar__bottom {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

/* Back link */
.sidebar-back {
  display: block;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: color var(--transition-fast) var(--ease-soft);
}

.sidebar-back:hover {
  color: #fff;
}

/* Brand / logo */
.sidebar-brand {
  padding: var(--space-5) var(--space-5) var(--space-4);
}

.sidebar-logo {
  max-height: 32px;
  width: auto;
}

/* Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
}

.sidebar-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .7);
  font-weight: var(--weight-label);
  font-size: var(--text-sm);
  transition: background var(--transition-fast) var(--ease-soft),
              color      var(--transition-fast) var(--ease-soft);
}

.sidebar-nav__link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.sidebar-nav__link.active {
  background: var(--blue-standard);
  color: #fff;
}

/* User block */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-standard), var(--blue-bright));
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.sidebar-user__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sidebar-user__name {
  color: #fff;
  font-weight: var(--weight-label);
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user__email {
  color: rgba(255, 255, 255, .45);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Logout overlay on sidebar user block */
.sidebar-user {
  position: relative;
  cursor: default;
}

.sidebar-user__logout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: var(--weight-label);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sidebar-user:hover .sidebar-user__logout {
  opacity: 1;
}

.sidebar-user__logout svg {
  flex-shrink: 0;
}

/* Settings link */
.sidebar-settings {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .6);
  font-weight: var(--weight-label);
  font-size: var(--text-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  margin: var(--space-3) var(--space-4) var(--space-4);
  transition: background    var(--transition-fast) var(--ease-soft),
              color          var(--transition-fast) var(--ease-soft),
              border-color   var(--transition-fast) var(--ease-soft);
}

.sidebar-settings:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}

.sidebar-settings.active {
  background: var(--blue-standard);
  color: #fff;
  border-color: var(--blue-standard);
}

/* ----- Main content area ------------------------------------- */
.member-main {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  padding: var(--space-8) var(--space-10);
}

.member-page-header {
  margin-bottom: var(--space-8);
}

.member-page-header h1 {
  color: var(--brand-dark);
  margin-bottom: var(--space-2);
}

/* ----- Settings cards ---------------------------------------- */
.settings-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-6);
}

.settings-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.settings-section-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.settings-section-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 20px;
  background: var(--blue-standard);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Large avatar */
.member-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-standard), var(--blue-bright));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* Badge info variant */
.badge--info {
  background: var(--blue-light);
  color: var(--brand-dark);
  border-color: var(--blue-light);
}

/* ----- Consent toggles (CSS-only) ---------------------------- */
.consent-toggles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.consent-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.consent-toggle-row:last-child {
  border-bottom: none;
}

.consent-toggle-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.consent-toggle-label {
  font-weight: var(--weight-label);
  font-size: var(--text-sm);
  color: var(--text);
}

.consent-toggle-desc {
  line-height: var(--leading-normal);
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.consent-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-toggle__track {
  display: block;
  width: 48px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--gray-standard);
  position: relative;
  transition: background var(--transition-fast) var(--ease-soft);
  cursor: pointer;
}

.consent-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  transition: transform var(--transition-fast) var(--ease-soft);
}

.consent-toggle input:checked + .consent-toggle__track {
  background: var(--brand);
}

.consent-toggle input:checked + .consent-toggle__track::after {
  transform: translateX(22px);
}

.consent-toggle input:focus-visible + .consent-toggle__track {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* ----- Danger zone ------------------------------------------- */
.danger-zone {
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  background: #fff8f8;
  margin-top: var(--space-4);
}

/* ----- Delete confirmation modal ----------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(13, 36, 51, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal) var(--ease-soft);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px) scale(.98);
  transition: transform var(--transition-normal) var(--ease-soft);
  text-align: center;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.modal-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}

.modal-card__body {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}

.modal-card .form-group {
  text-align: left;
}

.modal-card__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-2);
}

.btn--delete {
  background: #b91c1c;
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(185, 28, 28, .3);
  transition: background var(--transition-fast) var(--ease-soft),
              box-shadow  var(--transition-fast) var(--ease-soft),
              transform   var(--transition-fast) var(--ease-soft);
}

.btn--delete:hover:not(:disabled) {
  background: #991b1b;
  box-shadow: 0 6px 16px rgba(185, 28, 28, .4);
  transform: translateY(-1px);
}

.btn--delete:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ----- Responsive: member layout ----------------------------- */
@media (max-width: 768px) {
  .member-sidebar {
    display: none;
  }

  .member-main {
    padding: var(--space-6) var(--space-4);
  }

  .settings-card {
    padding: var(--space-5);
  }

  .settings-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* =============================================================
   ADMIN AREA
   ============================================================= */

/* ----- Sidebar: Administration collapsible ----------------- */
.sidebar-admin-section {
  margin: var(--space-4) var(--space-3) 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-3);
}

.sidebar-admin-section__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.sidebar-admin-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2) var(--space-2);
}

.sidebar-admin-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: rgba(255,255,255,.65);
  transition: background var(--transition-fast) var(--ease-soft),
              color      var(--transition-fast) var(--ease-soft);
}

.sidebar-admin-nav__link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.sidebar-admin-nav__link.active {
  background: var(--blue-standard);
  color: #fff;
}

/* ----- Admin sidebar badge (admin_base.html) ---------------- */
.admin-sidebar-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--space-1);
}

/* ----- Admin dashboard stats ------------------------------- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.admin-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  overflow: hidden;
}

.admin-stat-card__link {
  position: absolute;
  inset: 0;
}

.admin-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-xlight);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-card__icon--green  { background: #d1fae5; color: #065f46; }
.admin-stat-card__icon--amber  { background: #fef3c7; color: #92400e; }
.admin-stat-card__icon--muted  { background: var(--gray-light); color: var(--gray-darker); }

.admin-stat-card__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1;
}

.admin-stat-card__label {
  font-size: var(--text-xs);
  color: var(--gray-darker);
  margin-top: var(--space-1);
}

/* ----- Admin table ----------------------------------------- */
.admin-table-toolbar {
  margin-bottom: var(--space-5);
}

.admin-search-input {
  max-width: 340px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table thead tr {
  border-bottom: 2px solid var(--border-color);
}

.admin-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--gray-darker);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.admin-table__row {
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast) var(--ease-soft);
}

.admin-table__row:last-child { border-bottom: none; }

.admin-table__row:hover { background: var(--blue-xlight); }

.admin-table__cell {
  padding: var(--space-4);
  color: var(--text);
  vertical-align: middle;
}

.admin-table__cell--muted  { color: var(--gray-darker); }
.admin-table__cell--action { text-align: right; white-space: nowrap; }
.admin-table__cell--name   { white-space: nowrap; }

.admin-table__empty {
  padding: var(--space-10) var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-user-thumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.admin-avatar-sm {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.65rem !important;
  flex-shrink: 0;
}

/* ----- Admin tags ------------------------------------------ */
.admin-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--weight-label);
}

.admin-tag--green { background: #d1fae5; color: #065f46; }
.admin-tag--blue  { background: var(--blue-light); color: var(--brand-dark); }
.admin-tag--muted { background: var(--gray-light); color: var(--gray-darker); }

/* ----- User detail ----------------------------------------- */
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--brand);
  margin-bottom: var(--space-4);
  transition: color var(--transition-fast) var(--ease-soft);
}

.admin-back-link:hover { color: var(--brand-dark); }

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.admin-field-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-field {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-field:last-child { border-bottom: none; }

.admin-field__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--gray-darker);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  min-width: 110px;
}

.admin-field__value {
  font-size: var(--text-sm);
  color: var(--text);
  word-break: break-all;
}

.admin-field__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--text-xs);
  color: var(--gray-darker);
}

@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   BOOKS PAGE
   ============================================================= */

/* ----- Book panel switching --------------------------------- */
.book-panel {
  display: none;
}

.book-panel.is-active {
  display: block;
}

/* ----- Book picker ----------------------------------------- */
.book-picker {
  background: var(--blue-dark);
  padding-block: var(--space-10);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.book-picker__header {
  margin-bottom: var(--space-6);
}

.book-picker__series-label {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--weight-hero);
  color: #fff;
  letter-spacing: -0.01em;
}

.book-picker__author-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  margin-top: var(--space-1);
}

.book-picker__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.book-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  cursor: pointer;
  transition:
    border-color var(--transition-normal) var(--ease-soft),
    background   var(--transition-normal) var(--ease-soft),
    transform    var(--transition-normal) var(--ease-soft);
  text-align: center;
  min-width: 180px;
}

.book-thumb:hover {
  background: rgba(255,255,255,.05);
  transform: translateY(-4px);
}

.book-thumb.is-active {
  border-color: var(--brand);
  background: rgba(77, 145, 198, .12);
  transform: translateY(-4px);
}

.book-thumb__cover {
  position: relative;
}

.book-thumb__cover img {
  width: 130px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  transition: box-shadow var(--transition-normal) var(--ease-soft);
  object-fit: cover;
}

.book-thumb.is-active .book-thumb__cover img {
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}

.book-thumb--upcoming .book-thumb__cover img {
  opacity: .75;
}

.book-thumb__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.book-thumb__vol {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.book-thumb__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: #fff;
  line-height: 1.3;
}

.book-thumb__status {
  margin-top: var(--space-1);
}

/* ----- Hero cover image (real photo instead of mock) -------- */
.books-hero__cover-img {
  width: 220px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(19, 57, 81, .38);
  object-fit: cover;
}

.books-hero__cover-img--upcoming {
  opacity: .8;
  filter: grayscale(15%);
}

/* ----- Stack pills (Vol 2) --------------------------------- */
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--blue-xlight);
  border: var(--border);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}

/* ----- Vol 3 known topics ---------------------------------- */
.vol3-known {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
  max-width: 400px;
  margin-inline: auto;
}

.vol3-topic {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
}

.vol3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vol3-dot--known { background: var(--brand); }
.vol3-dot--tba   { background: var(--gray-standard); }

.testimonials-placeholder {
  border: 2px dashed var(--blue-light);
}

/* ----- Section header shared -------------------------------- */
.section-header {
  margin-bottom: var(--space-12);
}

.section-sub {
  font-size: var(--text-subhead);
  color: var(--gray-darker);
  margin-top: var(--space-4);
  line-height: var(--leading-loose);
}

/* ----- Hero ------------------------------------------------- */
.books-hero {
  padding-block: var(--space-20);
  background: linear-gradient(160deg, var(--blue-xlight) 0%, #fff 60%, var(--blue-xlight) 100%);
  border-bottom: var(--border);
  overflow: hidden;
}

.books-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.books-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.books-hero__headline {
  margin-bottom: var(--space-6);
  color: var(--brand-dark);
}

.books-hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gray-darker);
  margin-bottom: var(--space-6);
  line-height: var(--leading-loose);
  font-style: italic;
}

.books-hero__hook {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--text);
  margin-bottom: var(--space-10);
  max-width: 600px;
  border-left: 3px solid var(--brand);
  padding-left: var(--space-6);
}

.books-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.books-hero__publisher {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ----- Book cover mock -------------------------------------- */
.books-hero__visual {
  flex-shrink: 0;
}

.book-cover-mock {
  position: relative;
  width: 200px;
  height: 280px;
  filter: drop-shadow(0 24px 48px rgba(19, 57, 81, .32));
}

.book-cover-mock__spine {
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 272px;
  background: linear-gradient(to right, #0a1e2e, #133951);
  border-radius: 3px 0 0 3px;
}

.book-cover-mock__face {
  position: absolute;
  left: 18px;
  top: 0;
  width: 182px;
  height: 280px;
  background: linear-gradient(145deg, #133951 0%, #1a4f70 50%, #0d2a3f 100%);
  border-radius: 0 6px 6px 0;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.book-cover-mock__vol {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-cover-mock__title {
  font-size: 1.25rem;
  font-weight: var(--weight-hero);
  color: #fff;
  line-height: 1.25;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: var(--space-4);
}

.book-cover-mock__author {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.7);
  font-weight: var(--weight-label);
}

.book-cover-mock__decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(77, 145, 198, .3);
}

.deco-circle--lg {
  width: 140px;
  height: 140px;
  bottom: 0;
  right: 0;
}

.deco-circle--md {
  width: 90px;
  height: 90px;
  bottom: 20px;
  right: 20px;
}

.deco-circle--sm {
  width: 50px;
  height: 50px;
  bottom: 40px;
  right: 40px;
  background: rgba(77, 145, 198, .12);
}

/* ----- Credibility bar ------------------------------------- */
.cred-bar {
  background: var(--blue-dark);
  padding-block: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.cred-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
}

.cred-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--blue-light);
  font-size: var(--text-sm);
}

.cred-item strong {
  color: #fff;
}

.cred-item svg {
  color: var(--brand);
  flex-shrink: 0;
}

/* ----- Audience -------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
}

.audience-card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.audience-card h3 {
  color: var(--brand-dark);
}

.audience-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
}

/* ----- Pull quote ------------------------------------------ */
.pullquote {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-10);
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--brand);
}

.pullquote p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  line-height: var(--leading-loose);
  color: var(--brand-dark);
}

.pullquote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--muted);
}

/* ----- Parts (What's Inside) ------------------------------- */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.part-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.part-card__number {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.part-card__chapters {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
}

.part-card__title {
  font-size: 1.2rem;
  font-weight: var(--weight-hero);
  color: #fff;
}

.part-card__tagline {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--blue-light);
}

.part-card__body {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.75);
  line-height: var(--leading-loose);
}

.part-card__topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
}

.part-card__topics li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.8);
}

.topic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ----- Frameworks ------------------------------------------ */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.framework-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.framework-card__acronym {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.framework-card__name {
  font-size: 1.1rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
}

.framework-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
}

.framework-pillars {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.framework-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.framework-pillar strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.framework-pillar span {
  font-size: var(--text-xs);
  color: var(--gray-darker);
}

.framework-pillar__plus {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 300;
}

.framework-flow {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.framework-step {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  text-align: center;
  line-height: 1.3;
}

.framework-arrow {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ----- What Makes it Different ----------------------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.diff-item {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.diff-item__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-xlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.diff-item h3 {
  color: var(--brand-dark);
  font-size: 1rem;
}

.diff-item p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
}

/* ----- Stories --------------------------------------------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.story-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.story-card__icon {
  font-size: 2rem;
}

.story-card__title {
  font-size: 1rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
}

.story-card__body {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
  flex: 1;
}

.story-card__lesson {
  font-size: var(--text-sm);
  color: var(--brand-dark);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-3);
  margin-top: auto;
}

/* ----- Testimonials ---------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.testimonial-card__stars {
  color: #f5c842;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.testimonial-card__text {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: rgba(255,255,255,.85);
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-4);
}

.testimonial-card__author strong {
  font-size: var(--text-sm);
  color: #fff;
}

.testimonial-card__author span {
  font-size: var(--text-xs);
  color: var(--blue-light);
}

.testimonial-card__source {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35) !important;
}

/* ----- Series ---------------------------------------------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.series-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

.series-card--active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), var(--shadow-card-hover);
}

.series-card--upcoming {
  opacity: .9;
}

.series-card--planned {
  opacity: .75;
}

.series-card__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.series-card__vol-badge {
  align-self: flex-start;
}

.series-card__title {
  font-size: 1.2rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
}

.series-card__tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.series-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
}

.series-card__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.series-card__bullets li {
  font-size: var(--text-sm);
  color: var(--text);
  padding-left: var(--space-5);
  position: relative;
  line-height: var(--leading-normal);
}

.series-card__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

.series-card__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: auto;
}

.series-card__coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--blue-xlight);
  border: var(--border);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}

.series-card__coming-soon--planned {
  background: var(--gray-light);
  border-color: var(--gray-standard);
  color: var(--gray-darker);
}

/* ----- Author block ---------------------------------------- */
.author-block__inner {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
}

.author-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue-xlight);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.author-block__content {
  flex: 1;
}

.author-block__content h2 {
  color: var(--brand-dark);
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.author-block__content p {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--gray-darker);
}

.author-block__creds {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border);
  flex-wrap: wrap;
}

.author-cred {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.author-cred strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand);
}

.author-cred span {
  font-size: var(--text-xs);
  color: var(--gray-darker);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----- Final CTA ------------------------------------------- */
.books-final-cta {
  padding-block: var(--space-24);
}

.final-cta__inner {
  max-width: 700px;
  margin-inline: auto;
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ----- Mobile responsiveness ------------------------------- */
@media (max-width: 1024px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .series-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .books-hero__inner {
    grid-template-columns: 1fr;
  }

  .books-hero__visual {
    display: none;
  }

  .parts-grid,
  .frameworks-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-block__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-block__creds {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cred-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .books-hero__cta {
    flex-direction: column;
  }

  .books-hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .final-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .pullquote {
    padding: var(--space-6);
  }

  .framework-pillars,
  .framework-flow {
    gap: var(--space-1);
  }
}

/* =============================================================
   ADMIN — shared workshop/material additions
   ============================================================= */

/* Page header row (title + CTA button side by side) */
.member-page-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Back link above a page title */
.admin-back-link {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-1);
  text-decoration: none;
  transition: color var(--transition-base);
}
.admin-back-link:hover { color: var(--brand-mid); }

/* Tagline below the workshop heading */
.admin-tagline {
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: var(--text-base);
}

/* Actions row on the detail page */
.admin-detail-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Sub-text inside a table cell */
.admin-table__sub {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 2px;
}

/* Empty state hint inside a card */
.admin-empty-hint {
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--space-4) 0 var(--space-2);
}

/* Collapsible add-form inside a card */
.admin-add-form {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.admin-add-form > summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--brand-mid);
  list-style: none;
  user-select: none;
}
.admin-add-form > summary::-webkit-details-marker { display: none; }

.admin-inline-form {
  margin-top: var(--space-4);
}

/* Red danger outline button */
.btn--danger-outline {
  background: transparent;
  color: var(--error, #c0392b);
  border-color: var(--error, #c0392b);
}
.btn--danger-outline:hover {
  background: var(--error, #c0392b);
  color: #fff;
}

/* Flash messages */
.flash {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-base);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}
.flash--success { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7dfbf; }
.flash--error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c6; }
.flash--info    { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* File drop zone */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-base);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
  position: relative;
}
.file-drop-zone:hover,
.file-drop-zone--over {
  border-color: var(--brand-mid);
  background: color-mix(in srgb, var(--brand-mid) 5%, transparent);
}
.file-drop-zone svg { color: var(--muted); margin-bottom: var(--space-2); }
.file-drop-zone__label {
  font-size: var(--text-sm);
  color: var(--fg);
  margin: 0;
}
.file-drop-zone__browse {
  color: var(--brand-mid);
  cursor: pointer;
  font-weight: var(--weight-medium);
}
.file-drop-zone__hint {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: var(--space-1) 0 0;
}
.file-drop-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* red admin-tag */
.admin-tag--red {
  background: color-mix(in srgb, #c0392b 12%, transparent);
  color: #c0392b;
}

/* Extra-small button */
.btn--xs {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm, 6px);
}

/* ----- Access code block (admin) ------------------------------------------ */
.access-code-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.access-code {
  font-family: ui-monospace, monospace;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-mid) 10%, transparent);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.access-code__expiry {
  font-size: var(--text-xs);
  color: var(--muted);
}
.access-code__actions {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-top: 2px;
}

/* ----- Redeem page --------------------------------------------------------- */
.redeem-shell {
  max-width: 480px;
}
.redeem-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.redeem-code-input {
  font-family: ui-monospace, monospace;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.redeem-submit {
  align-self: flex-start;
}
.redeem-help {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--text-sm);
}
.redeem-help svg { flex-shrink: 0; margin-top: 2px; }
.redeem-help p { margin: 0; }

/* ----- Workshop locked page ------------------------------------------------ */
.locked-shell {
  display: flex;
  justify-content: center;
  padding: var(--space-10) 0;
}
.locked-card {
  max-width: 440px;
  text-align: center;
  padding: var(--space-10);
}
.locked-card__icon {
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.locked-card__title {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}
.locked-card__desc {
  color: var(--muted);
  margin-bottom: var(--space-6);
}

/* ----- Materials grid ------------------------------------------------------ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}
.material-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-mid) 12%, transparent);
  color: var(--brand-mid);
  flex-shrink: 0;
}
.material-card__icon--pdf    { background: color-mix(in srgb, #e74c3c 12%, transparent); color: #e74c3c; }
.material-card__icon--slide  { background: color-mix(in srgb, #e67e22 12%, transparent); color: #e67e22; }
.material-card__icon--video  { background: color-mix(in srgb, #8e44ad 12%, transparent); color: #8e44ad; }
.material-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.material-card__title {
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
}
.material-card__desc {
  font-size: var(--text-sm);
  color: var(--muted);
}
.material-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.material-card__size {
  font-size: var(--text-xs);
  color: var(--muted);
}
.material-card__download {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-top: auto;
}


/* ----- Member dashboard ---------------------------------------- */
.db-section {
  margin-bottom: var(--space-12);
}

.db-section__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
  margin-bottom: var(--space-5);
}

.db-section__header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.db-section__header-row .db-section__title { margin-bottom: 0; }

.db-section__view-all {
  font-size: var(--text-sm);
  color: var(--brand);
  font-weight: var(--weight-label);
  text-decoration: none;
}
.db-section__view-all:hover { text-decoration: underline; }

/* My-workshop cards */
.db-workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.db-workshop-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.db-workshop-card__cover {
  position: relative;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}
.db-workshop-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.db-workshop-card__cover-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.db-workshop-card__cover-gradient--in_person {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 100%);
}
.db-workshop-card__cover-gradient--online {
  background: linear-gradient(135deg, #1a4731 0%, #2e7d52 100%);
}
.db-workshop-card__cover-gradient--hybrid {
  background: linear-gradient(135deg, #4a1d6b 0%, #7b3fa8 100%);
}

.db-workshop-card__format-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.db-workshop-card__format-badge--in_person { background: rgba(0,0,0,.45); color: #fff; }
.db-workshop-card__format-badge--online    { background: rgba(0,0,0,.45); color: #fff; }
.db-workshop-card__format-badge--hybrid    { background: rgba(0,0,0,.45); color: #fff; }

.db-workshop-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.db-workshop-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
}
.db-workshop-card__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
}
.db-workshop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
}
.db-workshop-card__enrolled-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: #15803d;
  background: #dcfce7;
  border-radius: 20px;
  padding: 3px 10px;
}

/* Empty state */
.db-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.db-empty-state__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}
.db-empty-state__heading {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
}
.db-empty-state__sub {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 360px;
}

/* Upcoming workshops */
.db-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.db-upcoming-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.db-upcoming-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.db-upcoming-card__format {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: capitalize;
}
.db-upcoming-card__format--in_person { background: #e0e7ff; color: #3730a3; }
.db-upcoming-card__format--online    { background: #d1fae5; color: #065f46; }
.db-upcoming-card__format--hybrid    { background: #f3e8ff; color: #6b21a8; }

.db-upcoming-card__early-bird {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 2px 8px;
  border-radius: 20px;
  background: #fef9c3;
  color: #854d0e;
}

.db-upcoming-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
}
.db-upcoming-card__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
}

.db-upcoming-card__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.db-upcoming-card__seats {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 1px 7px;
  border-radius: 20px;
}
.db-upcoming-card__seats--critical { background: #fee2e2; color: #b91c1c; }
.db-upcoming-card__seats--low      { background: #ffedd5; color: #9a3412; }

.db-upcoming-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  gap: var(--space-2);
}

.db-upcoming-card__price {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--brand-dark);
}
.db-upcoming-card__price s {
  font-weight: var(--weight-normal);
  color: var(--muted);
  margin-right: var(--space-1);
}

/* =============================================================
   AGENDA ADMIN STYLES
   ============================================================= */

/* ── Agenda date block ──────────────────────────────────────── */
.agenda-date-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.agenda-date-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.agenda-date-label {
  font-size: var(--text-sm);
}

/* ── Agenda slot list ───────────────────────────────────────── */
.agenda-slot-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agenda-slot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.agenda-slot:last-child {
  border-bottom: none;
}

.agenda-slot__time {
  width: 48px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: var(--text-xs);
}

.agenda-slot__type {
  flex-shrink: 0;
}

.agenda-slot__title {
  flex: 1;
  font-weight: var(--weight-medium);
}

.agenda-slot__dur {
  flex-shrink: 0;
  font-size: var(--text-xs);
  min-width: 48px;
  text-align: right;
}

.agenda-slot__notes {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-style: italic;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-slot__actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

/* ── Agenda items table type color helpers ──────────────────── */
.admin-tag--talk          { background: rgba(59,130,246,.12); color: #2563eb; }
.admin-tag--break         { background: rgba(107,114,128,.12); color: #6b7280; }
.admin-tag--exercise      { background: rgba(16,185,129,.12); color: #059669; }
.admin-tag--q-and-a       { background: rgba(245,158,11,.12); color: #d97706; }
.admin-tag--networking    { background: rgba(139,92,246,.12); color: #7c3aed; }
.admin-tag--workshop-segment  { background: rgba(239,68,68,.12); color: #dc2626; }
.admin-tag--other         { background: rgba(107,114,128,.08); color: #9ca3af; }

/* agenda add form spacing inside date block */
.agenda-date-block .admin-add-form {
  padding: var(--space-2) var(--space-3);
  border: none;
  background: none;
}


/* =============================================================
   WORKSHOPS PAGE
   ============================================================= */

/* ── Hero ───────────────────────────────────────────────────── */
.ws-hero {
  background: linear-gradient(150deg, var(--blue-darker) 0%, var(--blue-dark) 60%, #1a4d6e 100%);
  padding: var(--space-20) 0 var(--space-16);
  color: #fff;
}

.ws-hero__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-16);
  align-items: center;
}

.ws-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-standard);
  margin-bottom: var(--space-4);
}

.ws-hero__headline {
  font-size: var(--text-hero);
  font-weight: var(--weight-hero);
  line-height: var(--leading-tight);
  color: #fff;
  margin-bottom: var(--space-5);
}

.ws-hero__headline-accent {
  color: var(--blue-standard);
}

.ws-hero__sub {
  font-size: var(--text-subhead);
  color: rgba(255,255,255,.78);
  line-height: var(--leading-normal);
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.ws-hero__cred {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.ws-hero__cred-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-hero__cred-item strong {
  font-size: 1.5rem;
  font-weight: var(--weight-hero);
  color: #fff;
  line-height: 1;
}

.ws-hero__cred-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ws-hero__cred-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
}

.ws-hero__author-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}

.ws-hero__author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--blue-standard);
  object-fit: cover;
  display: block;
  margin-bottom: var(--space-3);
}

.ws-hero__author-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.ws-hero__author-meta strong {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
}

.ws-hero__author-meta span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
}

.ws-hero__author-quote {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.72);
  font-style: italic;
  line-height: var(--leading-normal);
  margin: 0;
  border-left: 2px solid var(--blue-standard);
  padding-left: var(--space-3);
}

/* ── Benefits bar ───────────────────────────────────────────── */
.ws-benefits-bar {
  background: #fff;
  border-bottom: var(--border);
  padding: var(--space-6) 0;
}

.ws-benefits-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.ws-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.ws-benefit > svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ws-benefit strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  margin-bottom: 2px;
}

.ws-benefit span {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: var(--leading-normal);
}

/* ── Catalogue ──────────────────────────────────────────────── */
.ws-catalogue {
  padding: var(--space-20) 0;
  background: var(--bg);
}

.ws-catalogue__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.ws-catalogue__title {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}

.ws-catalogue__sub {
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--leading-normal);
}

/* ── Workshop grid ──────────────────────────────────────────── */
.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-8);
}

/* ── Workshop card ──────────────────────────────────────────── */
.ws-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.ws-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Cover */
.ws-card__cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.ws-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-card__cover-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-card__cover-gradient--in_person {
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 100%);
}

.ws-card__cover-gradient--online {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
}

.ws-card__cover-gradient--hybrid {
  background: linear-gradient(135deg, #0f2d3e 0%, #1e5c82 100%);
}

/* Format badge */
.ws-card__format-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.ws-card__format-badge--in_person {
  background: rgba(19,57,81,.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}

.ws-card__format-badge--online {
  background: rgba(77,145,198,.85);
  color: #fff;
}

.ws-card__format-badge--hybrid {
  background: rgba(180,110,30,.85);
  color: #fff;
}

/* Early bird ribbon */
.ws-card__early-bird-ribbon {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: #e05a00;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--weight-button);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Body */
.ws-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-5) var(--space-6) var(--space-6);
  gap: var(--space-3);
}

/* Speakers */
.ws-card__speakers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ws-card__speaker-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  margin-left: -6px;
  flex-shrink: 0;
}

.ws-card__speaker-avatar:first-child {
  margin-left: 0;
}

.ws-card__speaker-avatar--initials {
  background: var(--blue-standard);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-label);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-card__speaker-name {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-left: var(--space-2);
  font-weight: var(--weight-label);
}

/* Title */
.ws-card__title {
  font-size: 1.15rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
  margin: 0;
}

.ws-card__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
  line-height: var(--leading-normal);
}

/* Next date */
.ws-card__next-date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--brand-dark);
  font-weight: var(--weight-label);
  flex-wrap: wrap;
}

.ws-card__next-date svg {
  flex-shrink: 0;
}

.ws-card__next-date--tbd {
  color: var(--muted);
  font-weight: var(--weight-body);
  font-style: italic;
}

.ws-card__seats-warning {
  background: #fef2f2;
  color: #dc2626;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid #fecaca;
}

.ws-card__seats-low {
  background: #fffbeb;
  color: #d97706;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid #fde68a;
}

/* Learning outcomes */
.ws-card__outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ws-card__outcomes li {
  font-size: var(--text-xs);
  color: var(--muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: var(--leading-normal);
}

.ws-card__outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Footer: price + CTA */
.ws-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: var(--border);
}

.ws-card__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-card__price-original {
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: line-through;
}

.ws-card__price-amount {
  font-size: 1.2rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: 1;
}

.ws-card__price-vat {
  font-size: var(--text-xs);
  color: var(--muted);
}

.ws-card__price--contact .ws-card__price-amount,
.ws-card__price--contact {
  font-size: var(--text-sm);
  font-weight: var(--weight-body);
  color: var(--muted);
}

.ws-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty state */
.ws-empty {
  text-align: center;
  padding: var(--space-20) 0;
  color: var(--muted);
}

.ws-empty h3 {
  font-size: var(--text-section);
  color: var(--brand-dark);
  margin: var(--space-4) 0 var(--space-2);
}

/* ── Authority block ────────────────────────────────────────── */
.ws-authority {
  background: #fff;
  padding: var(--space-20) 0;
  border-top: var(--border);
}

.ws-authority__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: start;
}

.ws-authority__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.ws-authority__text h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.ws-authority__text p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.ws-authority__pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.ws-authority__pillar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand);
}

.ws-authority__pillar strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}

.ws-authority__pillar span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.ws-authority__books-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-4);
}

.ws-authority__book-strip {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ws-authority__book-link {
  flex: 1;
}

.ws-authority__book-cover {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ws-authority__book-cover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.ws-authority__book-cover--preview {
  opacity: .5;
  filter: grayscale(.4);
}

.ws-authority__books-cta {
  font-size: var(--text-sm);
  color: var(--brand);
  font-weight: var(--weight-label);
  text-decoration: none;
}

.ws-authority__books-cta:hover {
  text-decoration: underline;
}

/* ── Interest CTA ───────────────────────────────────────────── */
.ws-interest-cta {
  background: var(--blue-darker);
  padding: var(--space-16) 0;
}

.ws-interest-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.ws-interest-cta h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: var(--weight-hero);
  color: #fff;
  margin-bottom: var(--space-2);
}

.ws-interest-cta p {
  color: rgba(255,255,255,.6);
  font-size: var(--text-sm);
  max-width: 520px;
}

.ws-interest-cta__btn {
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ws-hero__inner,
  .ws-authority__inner {
    grid-template-columns: 1fr;
  }

  .ws-hero__aside {
    display: none;
  }

  .ws-benefits-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .ws-interest-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .ws-benefits-bar__grid {
    grid-template-columns: 1fr;
  }

  .ws-grid {
    grid-template-columns: 1fr;
  }

  .ws-hero__cred {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ══════════════════════════════════════════════════════════════
   WORKSHOPS INDEX — practitioner card (replaces author card)
   ══════════════════════════════════════════════════════════════ */
.ws-hero__practitioner-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ws-hero__practitioner-header {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  font-weight: var(--weight-semibold);
}

.ws-hero__practitioner-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.ws-hero__practitioner-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.15);
}

.ws-hero__practitioner-item strong {
  display: block;
  color: #fff;
  font-size: var(--text-sm);
}

.ws-hero__practitioner-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

.ws-hero__practitioner-quote {
  margin: 0;
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  border-left: 3px solid var(--brand);
  padding-left: var(--space-3);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   WORKSHOP DETAIL PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────────────── */
.wsd-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
}

.wsd-hero__cover {
  position: absolute;
  inset: 0;
}

.wsd-hero__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wsd-hero__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.35) 0%, rgba(15,23,42,.97) 100%);
}

.wsd-hero__cover--gradient {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
}

.wsd-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.wsd-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
}

.wsd-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.wsd-breadcrumb a:hover { color: #fff; }

.wsd-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 780px;
}

.wsd-format-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .06em;
  width: fit-content;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

.wsd-hero__title {
  font-size: clamp(var(--text-2xl), 4.5vw, 2.75rem);
  font-weight: var(--weight-hero);
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.wsd-hero__tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.5;
  max-width: 640px;
}

/* Key-facts strip */
.wsd-hero__stats {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.wsd-hero__stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
}

.wsd-hero__stat svg { opacity: .65; }

/* Hero CTA row */
.wsd-hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.wsd-hero__cta-login {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.wsd-hero__cta-login:hover { color: #fff; text-decoration: underline; }

/* Speakers strip */
.wsd-hero__speakers {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.1);
}

.wsd-hero__speakers-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}

.wsd-hero__speaker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wsd-hero__speaker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
}

.wsd-hero__speaker-avatar--initials {
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: #fff;
}

.wsd-hero__speaker-info strong {
  display: block;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.wsd-hero__speaker-info span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.5);
}

/* ── Layout ────────────────────────────────────────────────── */
.wsd-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-12);
  align-items: start;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

/* ── Section titles with left accent ──────────────────────── */
.wsd-section {
  margin-bottom: var(--space-12);
}

.wsd-section__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wsd-section__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Prose ─────────────────────────────────────────────────── */
.wsd-prose {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.8;
}

/* ── Learning outcomes ─────────────────────────────────────── */
.wsd-outcomes-wrap {
  background: rgba(79, 70, 229, .04);
  border: 1px solid rgba(79, 70, 229, .1);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
}

.wsd-outcomes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3) var(--space-8);
}

.wsd-outcomes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.55;
}

.wsd-outcomes li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--brand);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  margin-top: 1px;
}

/* ── Agenda ────────────────────────────────────────────────── */
.wsd-agenda-name {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-5);
}

/* Day tabs — pill style */
.wsd-agenda-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.wsd-agenda-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-500);
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.wsd-agenda-tab:hover { background: var(--gray-200); color: var(--navy); }

.wsd-agenda-tab--active {
  background: var(--brand);
  color: #fff;
}

.wsd-agenda-tab--active:hover { background: var(--brand-dark); }

/* Day panels */
.wsd-agenda-day { display: none; }
.wsd-agenda-day--active { display: block; }

.wsd-agenda-day__label {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.wsd-agenda-day__slots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Timeline slot rows */
.wsd-agenda-slot {
  display: grid;
  grid-template-columns: 46px 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gray-200);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  transition: border-left-color .15s, box-shadow .15s, background .15s;
}

.wsd-agenda-slot:hover {
  background: var(--gray-50);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* Type colour-coding */
.wsd-agenda-slot[data-slot-type="Lecture"]    { border-left-color: var(--brand); }
.wsd-agenda-slot[data-slot-type="Keynote"]    { border-left-color: var(--navy); }
.wsd-agenda-slot[data-slot-type="Exercise"]   { border-left-color: #d97706; }
.wsd-agenda-slot[data-slot-type="Workshop"]   { border-left-color: #d97706; }
.wsd-agenda-slot[data-slot-type="Case Study"] { border-left-color: #0891b2; }
.wsd-agenda-slot[data-slot-type="Panel"]      { border-left-color: #7c3aed; }
.wsd-agenda-slot[data-slot-type="Break"]      { border-left-color: var(--gray-300); }
.wsd-agenda-slot[data-slot-type="Networking"] { border-left-color: #16a34a; }
.wsd-agenda-slot[data-slot-type="Q And A"]    { border-left-color: #0891b2; }

.wsd-agenda-slot__time {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1;
}

.wsd-agenda-slot__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wsd-agenda-slot__content strong {
  font-size: var(--text-sm);
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wsd-agenda-slot__content p {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wsd-agenda-slot__type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: var(--weight-semibold);
  color: var(--gray-400);
  margin-bottom: 1px;
}

.wsd-agenda-slot__duration {
  font-size: var(--text-xs);
  color: var(--gray-400);
  flex-shrink: 0;
  white-space: nowrap;
}

.wsd-agenda-slot__chevron {
  flex-shrink: 0;
  color: var(--gray-300);
  transition: color .15s, transform .15s;
}

.wsd-agenda-slot:hover .wsd-agenda-slot__chevron {
  color: var(--brand);
  transform: translateX(2px);
}

/* Slot detail modal */
.wsd-slot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.wsd-slot-modal--open { display: flex; }

.wsd-slot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
}

.wsd-slot-modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
  max-height: 80vh;
  overflow-y: auto;
}

.wsd-slot-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: background .15s;
}

.wsd-slot-modal__close:hover { background: var(--gray-200); }

.wsd-slot-modal__type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: var(--weight-semibold);
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.wsd-slot-modal__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.wsd-slot-modal__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.wsd-slot-modal__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wsd-slot-modal__desc {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.7;
}

/* ── Instructors — full-width light section ────────────────── */
.wsd-instructors {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: var(--space-16) 0;
}

.wsd-instructors__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wsd-instructors__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 26px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.wsd-instructors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

/* White profile card */
.wsd-instructor-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow .2s, border-color .2s;
}

.wsd-instructor-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-color: var(--gray-200);
}

/* Photo + name row */
.wsd-instructor-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.wsd-instructor-card__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gray-100);
}

.wsd-instructor-card__photo--initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: #fff;
}

.wsd-instructor-card__name {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--navy);
  line-height: 1.2;
}

.wsd-instructor-card__title {
  display: block;
  font-size: var(--text-sm);
  color: var(--brand);
  font-weight: var(--weight-semibold);
  margin-top: 2px;
}

.wsd-instructor-card__bio {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.wsd-instructor-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #0077b5;
  text-decoration: none;
  padding-top: var(--space-2);
  border-top: 1px solid var(--gray-100);
}

.wsd-instructor-card__linkedin:hover { text-decoration: underline; }

/* ── More workshops strip ──────────────────────────────────── */
.wsd-more-workshops {
  background: var(--blue-xlight);
  border-top: 1px solid var(--gray-100);
  padding: var(--space-12) 0;
}

.wsd-more-workshops__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-6);
}

.wsd-more-workshops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.wsd-more-workshops__card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow var(--transition-fast) var(--ease-soft), transform var(--transition-fast) var(--ease-soft);
}

.wsd-more-workshops__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.wsd-more-workshops__cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.wsd-more-workshops__cover--gradient {
  height: 140px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.wsd-more-workshops__meta {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.wsd-more-workshops__format {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wsd-more-workshops__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text);
}

.wsd-more-workshops__tagline {
  font-size: var(--text-xs);
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .wsd-more-workshops__grid { grid-template-columns: 1fr; }
}

/* ── Sidebar ───────────────────────────────────────────────── */
.wsd-sidebar {
  position: sticky;
  top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.wsd-booking-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.wsd-booking-card__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--navy);
}

.wsd-booking-card__location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-top: calc(var(--space-2) * -1);
}

.wsd-booking-card__location a { color: var(--brand); text-decoration: none; }
.wsd-booking-card__location a:hover { text-decoration: underline; }

.wsd-booking-card__divider {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 0;
}

.wsd-booking-card__early-bird-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: #b45309;
  background: #fef3c7;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  width: fit-content;
}

.wsd-booking-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.wsd-booking-card__price-original {
  font-size: var(--text-base);
  color: var(--gray-400);
  text-decoration: line-through;
}

.wsd-booking-card__price-now {
  font-size: 2rem;
  font-weight: var(--weight-hero);
  color: var(--navy);
  line-height: 1;
}

.wsd-booking-card__price-now--contact {
  font-size: var(--text-lg);
  color: var(--gray-500);
}

.wsd-booking-card__vat {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.wsd-booking-card__includes {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.wsd-booking-card__includes strong { display: block; margin-bottom: 4px; color: var(--gray-800); }

/* Capacity with progress bar */
.wsd-booking-card__seats {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.wsd-booking-card__seats--low  { color: #92400e; }
.wsd-booking-card__seats--urgent { color: #991b1b; font-weight: var(--weight-semibold); }

.wsd-capacity-bar {
  height: 5px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.wsd-capacity-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brand);
}

.wsd-capacity-bar__fill--low    { background: #d97706; }
.wsd-capacity-bar__fill--urgent { background: #dc2626; }

.wsd-booking-card__cta {
  width: 100%;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wsd-booking-card__login-hint {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-align: center;
  margin: calc(var(--space-2) * -1) 0 0;
}

.wsd-booking-card__login-hint a { color: var(--brand); text-decoration: none; }
.wsd-booking-card__login-hint a:hover { text-decoration: underline; }

.wsd-booking-card__partner-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-align: center;
  margin: 0;
}

.wsd-booking-card--no-dates {
  text-align: center;
  gap: var(--space-3);
  background: var(--gray-50);
  border-top-color: var(--gray-300);
}

.wsd-booking-card__no-dates-icon { display: flex; justify-content: center; }

.wsd-booking-card--no-dates p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

.wsd-sidebar-note {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
}

.wsd-sidebar-note strong { display: block; margin-bottom: var(--space-1); color: var(--navy); }
.wsd-sidebar-note p { color: var(--gray-600); margin: 0 0 var(--space-2); }
.wsd-sidebar-note a { color: var(--brand); text-decoration: none; font-weight: var(--weight-semibold); }
.wsd-sidebar-note a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .wsd-layout {
    grid-template-columns: 1fr;
  }

  .wsd-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .wsd-instructors__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .wsd-hero {
    min-height: 420px;
  }

  .wsd-outcomes {
    grid-template-columns: 1fr;
  }

  .wsd-agenda-slot {
    grid-template-columns: 40px 1fr auto;
  }

  .wsd-agenda-slot__chevron { display: none; }
}


/* =============================================================
   HOME PAGE  (home-*)
   ============================================================= */

/* ── 1. HERO ─────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(160deg, var(--blue-darker) 0%, var(--blue-dark) 55%, #1a4a6b 100%);
  padding-block: var(--space-20) var(--space-24);
  overflow: hidden;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-standard);
  margin-bottom: var(--space-5);
}

.home-hero__headline {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: var(--weight-hero);
  color: #fff;
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.home-hero__headline-accent {
  background: linear-gradient(90deg, var(--blue-standard) 0%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero__sub {
  font-size: var(--text-subhead);
  color: rgba(255, 255, 255, .72);
  line-height: var(--leading-loose);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

.home-hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.home-hero__cta .btn--outline {
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.home-hero__cta .btn--outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}

/* Visual side */
.home-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.home-hero__books {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: -8px;
}

.home-hero__book-link {
  display: block;
  transition: transform var(--transition-normal) var(--ease-soft);
}
.home-hero__book-link:hover { transform: translateY(-6px) scale(1.03); }

.home-hero__book {
  width: 140px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
  display: block;
}

.home-hero__book--1 {
  transform: rotate(-4deg) translateX(12px);
  z-index: 3;
  position: relative;
}
.home-hero__book--2 {
  transform: rotate(0deg) scale(1.06);
  z-index: 4;
  position: relative;
}
.home-hero__book--3 {
  transform: rotate(4deg) translateX(-12px);
  z-index: 3;
  position: relative;
  opacity: .85;
}

.home-hero__practitioner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  backdrop-filter: blur(8px);
}

.home-hero__practitioner-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}

.home-hero__practitioner-tag {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.home-hero__practitioner-tag strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: #fff;
}
.home-hero__practitioner-tag span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.6);
}

@media (max-width: 860px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .home-hero__visual {
    order: -1;
  }
  .home-hero__sub { max-width: 100%; }
  .home-hero__book { width: 110px; }
}

@media (max-width: 480px) {
  .home-hero { padding-block: var(--space-16) var(--space-20); }
  .home-hero__book { width: 90px; }
}

/* ── 2. TRUST BAR ────────────────────────────────────────── */
.home-trust-bar {
  background: #fff;
  border-bottom: var(--border);
  padding-block: var(--space-6);
}

.home-trust-bar__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.home-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.home-trust-item div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.home-trust-item strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}

.home-trust-item span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.home-trust-sep {
  width: 1px;
  height: 32px;
  background: var(--border-color);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .home-trust-sep { display: none; }
  .home-trust-bar__grid { gap: var(--space-5); }
}

/* ── 3. PATHWAYS ─────────────────────────────────────────── */
.home-pathways {
  padding-block: var(--space-20);
  background: var(--blue-xlight);
}

.home-pathways__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-12);
}

.home-pathways__header h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.home-pathways__header p {
  color: var(--muted);
  font-size: var(--text-subhead);
}

.home-pathways__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.home-pathway-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-10);
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-normal) var(--ease-soft),
              box-shadow   var(--transition-normal) var(--ease-soft),
              transform    var(--transition-normal) var(--ease-soft);
  cursor: pointer;
}

.home-pathway-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.home-pathway-card--workshops:hover { border-color: var(--blue-standard); }
.home-pathway-card--books:hover     { border-color: var(--blue-standard); }

.home-pathway-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-xlight);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-pathway-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.home-pathway-card h3 {
  font-size: var(--text-lg, 1.15rem);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.home-pathway-card > p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-loose);
  flex: 1;
}

.home-pathway-card__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.home-pathway-card__bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-darker);
}

.home-pathway-card__bullets svg {
  color: var(--brand);
  flex-shrink: 0;
}

.home-pathway-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand);
  margin-top: var(--space-2);
}

@media (max-width: 720px) {
  .home-pathways__grid { grid-template-columns: 1fr; }
}

/* ── 4. WORKSHOPS TEASER ─────────────────────────────────── */
.home-workshops {
  padding-block: var(--space-20);
  background: var(--gray-light);
}

.home-workshops__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.home-workshops__header h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.home-workshops__header p {
  color: var(--muted);
  font-size: var(--text-sm);
}

.home-workshops__all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-workshops__all-link:hover { text-decoration: underline; }

.home-ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

/* Workshop card */
.home-ws-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-normal) var(--ease-soft),
              transform  var(--transition-normal) var(--ease-soft);
}
.home-ws-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.home-ws-card__cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

.home-ws-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-ws-card__cover-gradient {
  width: 100%;
  height: 100%;
}
.home-ws-card__cover-gradient--in_person { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-standard) 100%); }
.home-ws-card__cover-gradient--online    { background: linear-gradient(135deg, #1a3a5c 0%, #2d7abf 100%); }
.home-ws-card__cover-gradient--hybrid    { background: linear-gradient(135deg, #1a4a3a 0%, #2d9b7a 100%); }

.home-ws-card__format-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: var(--weight-label);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.home-ws-card__format-badge--in_person { background: rgba(19,57,81,.7); color: #fff; }
.home-ws-card__format-badge--online    { background: rgba(26,58,92,.7); color: #fff; }
.home-ws-card__format-badge--hybrid    { background: rgba(26,74,58,.7); color: #fff; }

.home-ws-card__early-bird {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 11px;
  font-weight: var(--weight-label);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.home-ws-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.home-ws-card__speakers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.home-ws-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-color);
  flex-shrink: 0;
}

.home-ws-card__avatar--initials {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: var(--weight-label);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-ws-card__speaker-name {
  font-size: var(--text-xs);
  color: var(--muted);
  font-weight: var(--weight-label);
}

.home-ws-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

.home-ws-card__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
}

.home-ws-card__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gray-darker);
  flex-wrap: wrap;
  margin-top: auto;
}

.home-ws-card__date svg { flex-shrink: 0; color: var(--muted); }

.home-ws-card__date--tbd { color: var(--muted); }

.home-ws-card__seats-warn {
  font-size: 11px;
  font-weight: var(--weight-label);
  color: #b91c1c;
  background: #fee2e2;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  border: 1px solid #fca5a5;
}

.home-ws-card__seats-low {
  font-size: 11px;
  font-weight: var(--weight-label);
  color: #92400e;
  background: #fef3c7;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  border: 1px solid #fde68a;
}

.home-ws-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

.home-ws-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.home-ws-card__price-amount {
  font-size: var(--text-base);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
}

.home-ws-card__price-original {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: line-through;
}

.home-ws-card__price-vat {
  font-size: var(--text-xs);
  color: var(--muted);
}

.home-ws-card__price--contact {
  font-size: var(--text-sm);
  color: var(--muted);
}

.home-workshops__footer {
  text-align: center;
}

@media (max-width: 900px) {
  .home-ws-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .home-ws-grid { grid-template-columns: 1fr; }
}

/* ── 5. BOOKS STRIP ──────────────────────────────────────── */
.home-books {
  padding-block: var(--space-20);
  background: #fff;
}

.home-books__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.home-books__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
}

.home-books__header h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.home-books__header p {
  color: var(--muted);
  line-height: var(--leading-loose);
}

.home-books__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.home-book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-8);
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: box-shadow var(--transition-normal) var(--ease-soft),
              transform  var(--transition-normal) var(--ease-soft);
}

.home-book-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.home-book-card--upcoming { opacity: .88; }

.home-book-card__cover-link {
  display: block;
  transition: transform var(--transition-normal) var(--ease-soft);
}
.home-book-card__cover-link:hover { transform: translateY(-4px) scale(1.02); }

.home-book-card__cover {
  width: 130px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(19,57,81,.22);
  display: block;
}

.home-book-card__cover--upcoming {
  filter: saturate(.85) brightness(.95);
}

.home-book-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.home-book-card__vol {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.home-book-card__meta h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
}

.home-book-card__meta p {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: var(--leading-normal);
}

.home-book-card__status {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-label);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.home-book-card__status--available {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.home-book-card__status--soon {
  background: var(--blue-light);
  color: var(--brand-dark);
  border: 1px solid var(--blue-standard);
}

.home-book-card__btn {
  width: 100%;
  justify-content: center;
}

.home-books__footer {
  text-align: center;
}

.home-books__series-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand);
  text-decoration: none;
}
.home-books__series-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .home-books__grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

/* ── 6. AUTHORITY ────────────────────────────────────────── */
.home-authority {
  padding-block: var(--space-20);
  background: var(--blue-xlight);
}

.home-authority__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

.home-authority__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.home-authority__text h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.home-authority__text p {
  color: var(--gray-darker);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.home-authority__industries {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border);
}

.home-authority__industry {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.home-authority__industry strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
}
.home-authority__industry span {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Profile card */
.home-authority__profile {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  position: sticky;
  top: var(--space-8);
}

.home-authority__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
  box-shadow: var(--shadow-card);
}

.home-authority__name-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.home-authority__name-block strong {
  font-size: var(--text-base);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
}
.home-authority__name-block span {
  font-size: var(--text-sm);
  color: var(--muted);
}

.home-authority__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
}

.home-authority__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-2);
  gap: var(--space-1);
}
.home-authority__stat strong {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: 1;
}
.home-authority__stat span {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
}

.home-authority__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  transition: background var(--transition-fast) var(--ease-soft),
              border-color var(--transition-fast) var(--ease-soft);
}
.home-authority__linkedin:hover {
  background: var(--blue-xlight);
  border-color: var(--brand);
}

@media (max-width: 900px) {
  .home-authority__inner {
    grid-template-columns: 1fr;
  }
  .home-authority__profile {
    position: static;
    max-width: 400px;
    margin-inline: auto;
  }
}

/* ── 7. TESTIMONIALS ─────────────────────────────────────── */
.home-testimonials {
  padding-block: var(--space-20);
  background: linear-gradient(135deg, var(--blue-darker) 0%, var(--blue-dark) 60%, #1a4a6b 100%);
}

.home-testimonials__header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.home-testimonials__header h2 {
  font-size: var(--text-section);
  font-weight: var(--weight-hero);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.home-testimonials__header p {
  color: rgba(255,255,255,.5);
  font-size: var(--text-sm);
}

.home-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.home-testimonial {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: background var(--transition-normal) var(--ease-soft);
}
.home-testimonial:hover { background: rgba(255,255,255,.11); }

.home-testimonial__stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-5);
}

.home-testimonial blockquote {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.82);
  line-height: var(--leading-loose);
  font-style: italic;
  flex: 1;
  margin-bottom: var(--space-6);
}

.home-testimonial__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.15);
}
.home-testimonial__author strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: #fff;
}
.home-testimonial__author span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.45);
}

.home-testimonials__footer {
  text-align: center;
}
.home-testimonials__all-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 1px;
  transition: color var(--transition-fast) var(--ease-soft);
}
.home-testimonials__all-link:hover { color: #fff; }

@media (max-width: 860px) {
  .home-testimonials__grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
}

/* ── 8. FINAL CTA ────────────────────────────────────────── */
.home-final-cta {
  padding-block: var(--space-24);
  background: var(--gray-light);
}

.home-final-cta__inner {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.home-final-cta__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--blue-light);
  border: 1px solid var(--blue-standard);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
}

.home-final-cta__inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.home-final-cta__inner > p {
  font-size: var(--text-subhead);
  color: var(--muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
}

.home-final-cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.home-final-cta__btn-outline {
  color: var(--brand-dark);
  border-color: var(--blue-standard);
}
.home-final-cta__btn-outline:hover {
  background: var(--blue-xlight);
}

.home-final-cta__note {
  font-size: var(--text-sm);
  color: var(--muted);
}
.home-final-cta__note a {
  color: var(--brand);
  text-decoration: none;
  font-weight: var(--weight-label);
}
.home-final-cta__note a:hover { text-decoration: underline; }




/* ══════════════════════════════════════════════════════════════
   WORKSHOP REGISTRATION  (reg-*)
   Follows member-area conventions — no .container wrapper,
   member-main already provides padding.
   ══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ──────────────────────────────────────────────── */
.reg-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.reg-breadcrumb a { color: var(--brand); text-decoration: none; }
.reg-breadcrumb a:hover { text-decoration: underline; }
.reg-breadcrumb svg { color: var(--gray-dark); flex-shrink: 0; }

/* ── Flash / alert ───────────────────────────────────────────── */
.reg-flash {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  margin-bottom: var(--space-5);
}
.reg-flash--error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.reg-flash--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.reg-flash--info    { background: var(--blue-xlight); color: var(--brand-dark); border: var(--border); }

/* ── Two-column grid ─────────────────────────────────────────── */
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 900px) {
  .reg-grid { grid-template-columns: 1fr; }
  .reg-col-aside { order: -1; }
}

/* ── Cards ───────────────────────────────────────────────────── */
.reg-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 8px rgba(19, 57, 81, .06);
}

.reg-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.reg-card__header-text { flex: 1; }

.reg-card__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: var(--border);
}

.reg-card__title {
  font-size: var(--text-subhead);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  margin: var(--space-1) 0 0;
  line-height: 1.3;
}
.reg-card__tagline {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-1);
}

.reg-card__section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  color: var(--brand-dark);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.reg-card__divider {
  height: 1px;
  background: var(--border-color);
  margin: 0 calc(-1 * var(--space-6)) var(--space-5);
}

/* ── Eyebrow label ───────────────────────────────────────────── */
.reg-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Detail rows ─────────────────────────────────────────────── */
.reg-details { display: flex; flex-direction: column; gap: var(--space-4); }

.reg-detail-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.reg-detail-row__icon {
  width: 28px;
  height: 28px;
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 1px;
}
.reg-detail-row__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.reg-detail-row__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.reg-detail-row__value {
  font-size: var(--text-sm);
  color: var(--brand-dark);
  line-height: 1.5;
}
.reg-detail-row__value a { color: var(--brand); text-decoration: none; }
.reg-detail-row__value a:hover { text-decoration: underline; }
.reg-detail-row__value--urgent { color: #dc2626; font-weight: var(--weight-label); }

/* ── Attendee row ────────────────────────────────────────────── */
.reg-attendee {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--blue-xlight);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.reg-attendee__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reg-attendee__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.reg-attendee__info strong {
  font-size: var(--text-sm);
  color: var(--brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-attendee__edit {
  color: var(--brand);
  text-decoration: none;
  font-weight: var(--weight-label);
  white-space: nowrap;
  flex-shrink: 0;
}
.reg-attendee__edit:hover { text-decoration: underline; }

/* ── Prose ───────────────────────────────────────────────────── */
.reg-prose {
  font-size: var(--text-sm);
  color: var(--brand-dark);
  line-height: 1.7;
}

/* ── Notice / info banner ────────────────────────────────────── */
.reg-notice {
  display: flex;
  gap: var(--space-3);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.reg-notice svg { flex-shrink: 0; margin-top: 2px; }
.reg-notice strong { display: block; margin-bottom: var(--space-1); }
.reg-notice p { margin: 0; line-height: 1.6; }

.reg-notice--info {
  background: var(--blue-xlight);
  border: var(--border);
  color: var(--brand-dark);
}
.reg-notice--info svg { color: var(--brand); }

/* ── Confirm form ────────────────────────────────────────────── */
.reg-form { margin-top: var(--space-2); }

.reg-checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--brand-dark);
  cursor: pointer;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.reg-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-dark);
  cursor: pointer;
}
.reg-checkbox a { color: var(--brand); text-decoration: none; font-weight: var(--weight-label); }
.reg-checkbox a:hover { text-decoration: underline; }

.reg-form__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.reg-form__back {
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast) var(--ease-soft);
}
.reg-form__back:hover { color: var(--brand-dark); }

/* ── Aside — order summary ───────────────────────────────────── */
.reg-col-aside { position: sticky; top: var(--space-6); }

.reg-summary {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(19, 57, 81, .06);
}

.reg-summary__header {
  background: var(--brand-dark);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-label);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: var(--space-3) var(--space-5);
}

.reg-summary__price-block {
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.reg-summary__early-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  margin-bottom: var(--space-3);
}
.reg-summary__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.reg-summary__price-orig {
  font-size: var(--text-lg);
  color: var(--muted);
  text-decoration: line-through;
}
.reg-summary__price-now {
  font-size: 1.75rem;
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  line-height: 1;
}
.reg-summary__vat {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-1);
}

.reg-summary__divider { height: 1px; background: var(--border-color); }

.reg-summary__includes,
.reg-summary__billed-by,
.reg-summary__help {
  padding: var(--space-4) var(--space-5);
}
.reg-summary__billed-by,
.reg-summary__help {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--muted);
}
.reg-summary__billed-by svg,
.reg-summary__help svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }
.reg-summary__help a { color: var(--brand); text-decoration: none; }
.reg-summary__help a:hover { text-decoration: underline; }

/* ── Dashboard enrollment card date row ──────────────────────── */
.db-workshop-card__date-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.db-workshop-card__date-row svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   REGISTRATION CONFIRMATION  (reg-confirm-*)
   ══════════════════════════════════════════════════════════════ */

.reg-confirm-wrap {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding-bottom: var(--space-16);
}

.reg-confirm__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
}

.reg-confirm__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--weight-hero);
  color: var(--brand-dark);
  margin-bottom: var(--space-3);
}

.reg-confirm__subtitle {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

.reg-badge--confirmed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-label);
  padding: 2px var(--space-3);
}

.reg-confirm__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
