/* Workshop navigation bar */
.workshop-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  background: #fef6f4; border-bottom: 1px solid #f0d9d4;
  padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; height: 52px;
}
.workshop-topbar .wtb-logo {
  justify-self: start; display: flex; align-items: center; gap: 3px; text-decoration: none;
}
.workshop-topbar .wtb-logo img { height: 18px; opacity: 0.85; transition: opacity 150ms ease; }
.workshop-topbar .wtb-logo:hover img { opacity: 1; }
.wtb-brand {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.1rem;
  color: #2d2d2d; letter-spacing: -0.02em; transition: color 150ms ease;
}
.wtb-colour {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 400; font-size: 0.88rem;
  color: #6b7280; transition: color 150ms ease;
}
.wtb-logo:hover .wtb-brand { color: #e8594f; }
.wtb-logo:hover .wtb-colour { color: #374151; }
.workshop-nav {
  display: flex; gap: 4px; overflow: visible; justify-self: center; align-items: center;
}
.wnav-item { position: relative; display: flex; align-items: center; }
.wnav-has-dropdown::after {
  content: '\25BE'; font-size: 0.6rem; margin-left: 4px; opacity: 0.55;
  display: inline-block; transition: transform 0.15s ease;
}
.wnav-item:hover .wnav-has-dropdown::after,
.wnav-item.wnav-open .wnav-has-dropdown::after { transform: rotate(180deg); opacity: 0.9; }
.wnav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid #f0d9d4; border-radius: 10px; padding: 6px;
  min-width: 210px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
}
.wnav-item:hover .wnav-dropdown,
.wnav-item.wnav-open .wnav-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.wnav-item::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }
.wnav-dropdown-item {
  display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif; font-size: 0.85rem; font-weight: 400;
  color: #374151; white-space: nowrap; transition: background 0.1s ease, color 0.1s ease;
}
.wnav-dropdown-item:hover { background: #fef6f4; color: #111; }
.wnav-dropdown-active { background: #fce8e4; color: #c0392b; font-weight: 500; }
.workshop-topbar .wtb-spacer { justify-self: end; }
.wnav-link {
  font-family: "Bricolage Grotesque", sans-serif; font-size: 0.88rem; font-weight: 500;
  color: #6b7280; text-decoration: none; padding: 12px 14px; border-radius: 8px;
  transition: color 150ms ease, background 150ms ease; white-space: nowrap;
}
.wnav-link:hover { color: #111; background: rgba(0,0,0,0.05); }
.wnav-active { color: #111; background: rgba(0,0,0,0.06); }

/* Body offset for fixed topbar */
body { padding-top: 56px; }

/* Page layout */
.page-container { width: min(1080px, 94vw); margin: 0 auto; padding: 48px 0 80px; }
.page-container h1 { font-size: 2.2rem; letter-spacing: -0.025em; margin: 0 0 8px; }
.page-subtitle { color: #6b7280; font-size: 1rem; margin: 0 0 40px; line-height: 1.6; }

/* System cards */
.system-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.sys-card {
  background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.sys-card:hover { border-color: #e8594f; box-shadow: 0 8px 24px rgba(232,89,79,0.06); }
.sys-card h3 { font-size: 1.15rem; margin: 0 0 4px; color: #111; }
.sys-card .sys-type {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; color: #6b7280;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.sys-card p { font-size: 0.92rem; color: #4b5563; margin: 0 0 14px; line-height: 1.6; }
.sys-endpoints { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-endpoint {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem;
  color: #e8594f; background: #fef6f4; border-radius: 6px; padding: 4px 10px;
  text-decoration: none; transition: background 150ms ease;
}
.sys-endpoint:hover { background: #fce8e4; }

/* Example/empty cards */
.empty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.example-card {
  background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 24px;
  transition: border-color 180ms ease;
}
.example-card:hover { border-color: #e8594f; }
.example-card h3 { font-size: 1.05rem; margin: 0 0 6px; color: #111; }
.example-card .example-tag {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 0.68rem;
  color: #059669; background: #ecfdf5; border-radius: 4px; padding: 2px 8px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.example-card p { font-size: 0.92rem; color: #4b5563; margin: 0; line-height: 1.6; }

/* Footer */
.workshop-footer { text-align: center; padding: 32px 24px 40px; border-top: 1px solid #eaeaea; margin-top: 32px; }
.wf-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: #9ca3af; font-size: 0.82rem; font-family: "IBM Plex Mono", monospace;
  transition: color 150ms ease;
}
.wf-link:hover { color: #374151; }
.wf-logo { height: 15px; opacity: 0.5; transition: opacity 150ms ease; }
.wf-link:hover .wf-logo { opacity: 0.8; }

/* ── Mobile menu ─────────────────────────────── */
.wtb-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; justify-self: end;
  color: #374151; align-items: center; justify-content: center;
  transition: background 150ms ease;
}
.wtb-hamburger:hover { background: rgba(0,0,0,0.05); }
.wtb-hamburger svg { display: block; }

.wmobile-menu {
  display: none;
  position: fixed; top: 52px; left: 0; right: 0; z-index: 399;
  background: #fef6f4; border-top: 1px solid #f0d9d4;
  overflow-y: auto; padding: 8px 20px 32px;
  max-height: calc(100dvh - 52px);
}
.wmobile-menu.wmobile-open { display: block; }

.wmobile-link {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid #f0d9d4;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem; font-weight: 500; color: #374151;
  text-decoration: none;
}
.wmobile-link.wmobile-active { color: #e8594f; }

.wmobile-section { border-bottom: 1px solid #f0d9d4; }
.wmobile-section-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem; font-weight: 500; color: #374151;
  user-select: none;
}
.wmobile-section-label.wmobile-active { color: #e8594f; }
.wmobile-chevron { font-size: 0.8rem; transition: transform 200ms ease; opacity: 0.5; }

.wmobile-children { display: none; padding: 4px 0 12px 16px; }
.wmobile-children.wmobile-expanded { display: block; }

.wmobile-child-link {
  display: block; padding: 10px 4px;
  border-bottom: 1px solid #f4ece9;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.9rem; font-weight: 400; color: #6b7280;
  text-decoration: none;
}
.wmobile-child-link:last-child { border-bottom: none; }
.wmobile-child-link.wmobile-active { color: #c0392b; font-weight: 500; }

@media (max-width: 640px) {
  .workshop-topbar { display: flex; justify-content: space-between; }
  .workshop-nav { display: none !important; }
  .wtb-spacer { display: none !important; }
  .wtb-hamburger { display: flex !important; }
  .page-container h1 { font-size: 1.7rem; }
  .page-subtitle { font-size: 0.92rem; margin-bottom: 28px; }
}
