/* In the Room — workshop tabs & participant handwritten notes */

.workshop-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workshop-header .lead {
  margin: 0;
}

/* Proof ribbon — quantified facilitation metrics */
.workshop-proof-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  max-width: 52rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px rgba(30, 45, 61, 0.08);
  overflow: hidden;
}

.workshop-proof-tag {
  flex: 0 0 auto;
  margin: 0;
  padding: 1.15rem 1.35rem;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(165deg, var(--navy) 0%, #2d4458 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 9rem;
}

.workshop-proof-metrics {
  display: flex;
  flex: 1;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.workshop-proof-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  min-width: 6.5rem;
  text-align: center;
}

.workshop-proof-metric[aria-hidden="true"] {
  flex: 0 0 auto;
  padding: 0;
  min-width: 0;
}

.workshop-proof-sep {
  display: block;
  width: 1px;
  align-self: stretch;
  margin: 0.85rem 0;
  background: linear-gradient(
    180deg,
    transparent,
    var(--border) 15%,
    var(--border) 85%,
    transparent
  );
}

.workshop-proof-value {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.workshop-proof-unit {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  vertical-align: baseline;
}

.workshop-proof-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

.workshop-tabs-wrap {
  margin-top: var(--space-stack-lg);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.workshop-tabs {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.35rem;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(30, 45, 61, 0.06);
}

.workshop-tab {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.workshop-tab:hover {
  color: var(--text);
}

.workshop-tab[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 45, 61, 0.2);
}

.workshop-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.workshop-tab-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(196, 92, 74, 0.15);
  color: var(--accent-dark);
}

.workshop-tab[aria-selected="true"] .workshop-tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.workshop-panel {
  display: none;
  animation: workshop-fade-in 0.35s ease;
}

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

@keyframes workshop-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Participant notes panel */
.notes-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.notes-intro-copy {
  max-width: 42rem;
}

.notes-intro-label {
  font-family: "Caveat", cursive;
  font-size: 1.65rem;
  color: var(--accent-dark);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.notes-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.notes-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.notes-stat {
  text-align: center;
  padding: 0.85rem 1.1rem;
  min-width: 5.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(30, 45, 61, 0.05);
}

.notes-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
}

.notes-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.notes-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.note-wall-card {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: left;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.note-wall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(30, 45, 61, 0.1);
  pointer-events: none;
  z-index: 2;
  transition: box-shadow 0.28s ease;
}

.note-wall-card:hover,
.note-wall-card:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.note-wall-card:hover::before,
.note-wall-card:focus-visible::before {
  box-shadow: 0 20px 40px rgba(30, 45, 61, 0.14);
}

.note-wall-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.note-wall-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.note-wall-card:nth-child(odd):hover,
.note-wall-card:nth-child(odd):focus-visible {
  transform: rotate(-0.6deg) translateY(-6px);
}

.note-wall-card:nth-child(even):hover,
.note-wall-card:nth-child(even):focus-visible {
  transform: rotate(0.5deg) translateY(-6px);
}

.note-wall-frame {
  display: block;
  background: linear-gradient(160deg, #fffef8 0%, #f8f4eb 100%);
  padding: 0.85rem 0.85rem 0.65rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 32px rgba(30, 45, 61, 0.1);
}

.note-wall-pin {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8e8e8, #9a9a9a 55%, #666 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.note-wall-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.note-wall-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0.15rem 0.1rem;
}

.note-wall-caption strong {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.note-wall-caption span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.note-wall-expand {
  position: absolute;
  right: 1rem;
  bottom: 3.25rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 45, 61, 0.82);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.note-wall-card:hover .note-wall-expand,
.note-wall-card:focus-visible .note-wall-expand {
  opacity: 1;
}

.note-wall-expand svg {
  width: 1rem;
  height: 1rem;
}

.notes-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Lightbox */
.notes-lightbox {
  padding: 0;
  border: none;
  border-radius: 0;
  max-width: min(96vw, 1100px);
  width: 100%;
  background: transparent;
  overflow: visible;
}

.notes-lightbox::backdrop {
  background: rgba(30, 45, 61, 0.88);
  backdrop-filter: blur(6px);
}

.notes-lightbox-inner {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

.notes-lightbox img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.notes-lightbox-caption {
  padding: 1rem 1.25rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.notes-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(30, 45, 61, 0.9);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notes-lightbox-close:hover {
  background: var(--accent);
}

.notes-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.notes-lightbox-nav:hover {
  background: #fff;
}

.notes-lightbox-prev {
  left: 0.75rem;
}

.notes-lightbox-next {
  right: 0.75rem;
}

@media (max-width: 720px) {
  .workshop-proof-ribbon {
    flex-direction: column;
    max-width: 100%;
  }

  .workshop-proof-tag {
    max-width: none;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .workshop-proof-metrics {
    flex-wrap: wrap;
  }

  .workshop-proof-metric {
    flex: 1 1 30%;
    min-width: 5.5rem;
  }

  .workshop-proof-metric[aria-hidden="true"] {
    display: none;
  }
}

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

  .notes-wall-grid {
    grid-template-columns: 1fr;
  }

  .note-wall-card:nth-child(odd),
  .note-wall-card:nth-child(even) {
    transform: none;
  }

  .note-wall-card:hover,
  .note-wall-card:focus-visible {
    transform: translateY(-4px);
  }

  .note-wall-expand {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-panel {
    animation: none;
  }

  .note-wall-card,
  .note-wall-card:nth-child(odd),
  .note-wall-card:nth-child(even) {
    transform: none;
  }

  .note-wall-card:hover,
  .note-wall-card:focus-visible {
    transform: none;
  }
}
