:root {
  --process-emerald: #34d399;
  --process-emerald-soft: rgba(52, 211, 153, 0.14);
  --process-border: rgba(255, 255, 255, 0.09);
  --process-panel: rgba(17, 24, 39, 0.78);
}

.process-hero,
.process-catalog-hero {
  background:
    radial-gradient(circle at 18% 12%, rgba(52, 211, 153, 0.2), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.1), transparent 28rem),
    linear-gradient(135deg, #022c22 0%, #090a11 45%, #0a0a0a 100%);
}

.process-grid {
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.process-gradient-text {
  background: linear-gradient(135deg, #a7f3d0, #34d399 48%, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.process-chip,
.process-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.process-chip,
.process-status--published {
  background: rgba(6, 78, 59, 0.24);
  color: #6ee7b7;
}

.process-status--in_validation {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.2);
  color: #fcd34d;
}

.process-status--planned {
  border-color: rgba(107, 114, 128, 0.35);
  background: rgba(31, 41, 55, 0.7);
  color: #9ca3af;
}

.process-card,
.process-surface {
  border: 1px solid var(--process-border);
  background: var(--process-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.process-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.process-local-nav {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(14px);
}

.process-local-nav__scroller {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  scrollbar-width: thin;
}

.process-local-nav a {
  flex: none;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.process-local-nav a:hover,
.process-local-nav a:focus-visible,
.process-local-nav a[aria-current="location"] {
  background: rgba(52, 211, 153, 0.13);
  color: #a7f3d0;
}

.process-maturity-card {
  border: 1px solid var(--process-border);
  background: rgba(17, 24, 39, 0.72);
}

.process-maturity-card--validated { border-top: 3px solid #34d399; }
.process-maturity-card--simulated { border-top: 3px solid #fbbf24; }
.process-maturity-card--future { border-top: 3px solid #22d3ee; }
.process-maturity-card--candidate { border-top: 3px solid #a78bfa; }

.process-maturity-label {
  color: #d1d5db;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-technical-disclosure > summary::-webkit-details-marker {
  display: none;
}

.process-technical-disclosure > summary::after {
  content: "Show technical detail +";
  display: block;
  margin-top: 1rem;
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-technical-disclosure[open] > summary::after {
  content: "Hide technical detail −";
}

.process-catalogue-feature {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.25), rgba(17, 24, 39, 0.82));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.process-catalogue-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 10, 17, 0.96);
  backdrop-filter: blur(12px);
}

.process-filter-button[aria-pressed="true"] {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.35);
  color: #a7f3d0;
}

.process-catalogue-category > summary {
  position: relative;
}

.process-catalogue-category > summary::-webkit-details-marker {
  display: none;
}

.process-catalogue-category > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: #6ee7b7;
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.process-catalogue-category[open] > summary::after {
  content: "−";
}

[data-process-card][hidden],
[data-process-category][hidden] {
  display: none;
}

.process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(31, 41, 55, 0.82);
}

.process-pipeline-step {
  position: relative;
}

.process-pipeline-node {
  position: relative;
  z-index: 2;
}

.process-pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: -1.5rem;
  width: 3rem;
  border-top: 1px solid rgba(52, 211, 153, 0.55);
}

.process-pipeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(3rem - 0.25rem);
  right: -1.55rem;
  border-top: 0.25rem solid transparent;
  border-bottom: 0.25rem solid transparent;
  border-left: 0.42rem solid rgba(52, 211, 153, 0.72);
}

.process-showcase {
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 1rem;
  background: #070b14;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 65px rgba(16, 185, 129, 0.08);
}

.process-showcase iframe {
  display: block;
  width: 100%;
  height: min(76vh, 760px);
  min-height: 560px;
  border: 0;
  background: #0b1020;
}

.process-metric {
  border-left: 3px solid var(--process-emerald);
  background: rgba(6, 78, 59, 0.13);
}

.process-input {
  width: 100%;
  border: 1px solid rgba(107, 114, 128, 0.7);
  border-radius: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  padding: 0.72rem 0.8rem;
}

.process-input:focus {
  border-color: var(--process-emerald);
  outline: 3px solid rgba(52, 211, 153, 0.16);
  outline-offset: 1px;
}

.process-card a:focus-visible,
.process-local-nav a:focus-visible,
.process-filter-button:focus-visible,
.process-showcase a:focus-visible,
.process-evidence-action:focus-visible,
.process-document-dialog a:focus-visible,
.process-document-dialog button:focus-visible,
.process-chip:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.7);
  outline-offset: 3px;
}

.process-evidence-action {
  width: 100%;
}

.process-document-dialog::backdrop {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(5px);
}

.process-document-dialog[open] {
  animation: process-dialog-enter 160ms ease-out;
}

.process-document {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.75;
}

.process-document h1,
.process-document h2,
.process-document h3 {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
}

.process-document h1 { margin: 0 0 1.5rem; font-size: 1.75rem; }
.process-document h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.process-document h3 { margin: 1.5rem 0 0.65rem; font-size: 1.1rem; }
.process-document p { margin: 0.75rem 0; }
.process-document ul,
.process-document ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.process-document ul { list-style: disc; }
.process-document ol { list-style: decimal; }
.process-document li { margin: 0.35rem 0; }
.process-document strong { color: #f3f4f6; }

.process-document table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.process-document th,
.process-document td {
  border: 1px solid rgba(107, 114, 128, 0.45);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

.process-document th {
  background: rgba(31, 41, 55, 0.8);
  color: #fff;
}

.process-json-viewer {
  max-height: 30rem;
  white-space: pre;
}

@keyframes process-dialog-enter {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.process-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--process-emerald);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  animation: process-pulse 2s infinite;
}

@keyframes process-pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@media (max-width: 1023px) {
  .process-pipeline-step:not(:last-child)::after {
    top: 100%;
    right: auto;
    left: 3rem;
    width: 0;
    height: 1.5rem;
    border-top: 0;
    border-left: 1px solid rgba(52, 211, 153, 0.55);
  }

  .process-pipeline-step:not(:last-child)::before {
    top: calc(100% + 1.15rem);
    right: auto;
    left: calc(3rem - 0.22rem);
    border-top: 0.42rem solid rgba(52, 211, 153, 0.72);
    border-right: 0.25rem solid transparent;
    border-bottom: 0;
    border-left: 0.25rem solid transparent;
  }
}

@media (max-width: 640px) {
  .process-showcase iframe {
    height: 68vh;
    min-height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-card,
  .process-pulse,
  .process-document-dialog[open] {
    animation: none;
    transition: none;
  }
}
