/* ============================================================
   WORKFLOW PAGE LAYOUT
   ============================================================ */
.workflow-page {
  display: flex;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-text);
}

/* ============================================================
   SIDEBAR (.workflow-sidebar)
   ============================================================ */
.workflow-sidebar {
  display: none;
  width: 17.5rem;
  min-width: 17.5rem;
  background: var(--sidebar-bg);
  border-right: 0.0625rem solid var(--sidebar-border);
  padding: 1.25rem 0;
  overflow-y: auto;
  position: sticky;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  flex-shrink: 0;
}

.sidebar-title {
  padding: 0 1.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-title-color);
}

/* Category: <details> accordion */
.sidebar-category {
  border-bottom: 0.0625rem solid var(--sidebar-border);
}

.sidebar-category summary {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.25rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sidebar-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--transition-fast, 150ms ease);
}

.sidebar-category summary::-webkit-details-marker {
  display: none;
}

.sidebar-category summary::marker {
  display: none;
  content: '';
}

.sidebar-category summary::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.625rem;
  color: var(--sidebar-chevron);
  transition: transform var(--transition-fast, 150ms ease);
  flex-shrink: 0;
  width: 0.75rem;
  text-align: center;
}

.sidebar-category[open] summary::before {
  transform: rotate(90deg);
}

.sidebar-category summary:hover {
  background: var(--sidebar-link-active-bg);
}

.sidebar-category summary i.fa-solid,
.sidebar-category summary i.fas {
  font-size: 0.875rem;
  color: var(--sidebar-link-color);
  width: 1.125rem;
  text-align: center;
  flex-shrink: 0;
}

/* Pages list inside category */
.sidebar-pages {
  list-style: none;
  margin: 0;
  padding: 0 0 0.375rem;
}

.sidebar-pages a {
  display: flex;
  align-items: center;
  padding: 0.375rem 1.25rem 0.375rem 3.25rem;
  min-height: 2.75rem;
  font-size: 0.8125rem;
  color: var(--sidebar-link-color);
  text-decoration: none;
  border-left: 0.1875rem solid transparent;
  transition: all var(--transition-fast, 150ms ease);
}

.sidebar-pages a:hover {
  color: var(--sidebar-link-hover);
  background: var(--sidebar-link-active-bg);
}

.sidebar-pages a.active {
  color: var(--retire-primary-dark, #6E4604);
  background: var(--sidebar-link-active-bg);
  border-left-color: var(--sidebar-link-active-border);
  font-weight: 600;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem 0;
  border-top: 0.0625rem solid var(--sidebar-border);
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  min-height: 2.75rem;
  color: var(--sidebar-link-color);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--transition-fast, 150ms ease);
}

.sidebar-footer-link:hover {
  color: var(--sidebar-link-hover);
}

/* ============================================================
   MAIN CONTENT (.workflow-main)
   ============================================================ */
.workflow-main {
  flex: 1;
  padding: 1.5rem 1rem;
  max-width: 60rem;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--breadcrumb-link);
  text-decoration: none;
  transition: opacity var(--transition-fast, 150ms ease);
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb span {
  color: var(--breadcrumb-sep);
}

.breadcrumb span:last-child {
  color: var(--page-text-secondary);
}

/* Page headings */
.workflow-main h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--page-text);
  line-height: 1.3;
}

.workflow-desc {
  font-size: 1.0625rem;
  color: var(--page-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.workflow-main h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--page-text);
}

/* SVG Container */
.svg-container {
  background: var(--page-surface);
  border: 0.0625rem solid var(--page-border);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  box-shadow: var(--page-shadow);
}

.svg-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Step-by-step list */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--page-surface);
  border: 0.0625rem solid var(--page-border);
  border-radius: 0.625rem;
  transition: box-shadow var(--transition-fast, 150ms ease);
}

.steps li:hover {
  box-shadow: var(--page-shadow-md);
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--step-badge-from), var(--step-badge-to));
  color: var(--step-badge-text);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 50%;
}

.steps li strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--page-text);
}

.steps li p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--page-text-secondary);
  line-height: 1.65;
}

