/* All five steps remain readable before the optional interaction is mounted. */
.section.process-section { padding-block: 48px; }
.process-section .section-head { margin-bottom: 24px; }
.process-section .section-actions { margin-top: 20px; justify-content: center; }
.process-v2 {
  --process-accent: #29566b;
  min-width: 0;
  border: 1px solid var(--line, #d7e2e9);
  border-radius: 14px;
  background: #fff;
  overflow: clip;
  isolation: isolate;
}
.process-v2__navigation { padding: 16px 24px 0; }
.process-v2__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  padding: 4px;
}
.process-v2__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f3f6f8;
  color: #455d6b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}
.process-v2__tab[aria-selected="true"] { background: #29566b; color: #fff; border-color: #29566b; }
.process-v2__state { position: relative; padding: 12px 4px 16px; }
.process-v2__progress { display: block; width: 100%; height: 3px; appearance: none; border: 0; border-radius: 3px; background: #e1e9ee; color: #b67d40; overflow: hidden; }
.process-v2__progress::-webkit-progress-bar { background: #e1e9ee; border-radius: 3px; }
.process-v2__progress::-webkit-progress-value { background: #b67d40; border-radius: 3px; transition: width 200ms ease; }
.process-v2__progress::-moz-progress-bar { background: #b67d40; border-radius: 3px; }
.process-v2__energy {
  position: absolute;
  top: 12px;
  left: 4px;
  width: calc((100% - 8px) * var(--process-fill, .2));
  height: 3px;
  border-radius: 3px;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 32%, #e9bf8755 42%, #fff3ce 50%, #e9bf8755 58%, transparent 68%);
  background-size: 260% 100%;
  box-shadow: 0 0 7px #dfb68755;
  animation: process-energy-flow 4600ms linear infinite paused;
  transition: width 280ms ease;
}
.process-v2__energy[data-running="true"] { animation-play-state: running; }
@keyframes process-energy-flow { from { background-position: 180% 0; } to { background-position: -180% 0; } }
.process-v2__stage { position: relative; }
.process-v2__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 24px;
  min-height: 190px;
  margin: 0;
  padding: 24px 32px;
  border-top: 1px solid #e2e9ee;
  background: #f9fbfc;
}
/* The tallest step sets the shared row height, including at text zoom.
   Inactive steps are also hidden/inert in the DOM; they only reserve space. */
.process-v2[data-process-enhanced="true"] .process-v2__panels { display: grid; }
.process-v2[data-process-enhanced="true"] .process-v2__panel { grid-area: 1 / 1; padding-inline: 96px; }
.process-v2[data-process-enhanced="true"] .process-v2__panel[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.process-v2__copy { min-width: 0; max-width: 760px; }
.process-v2__copy h3 { margin: 0 0 12px; color: #142c3b; font-size: clamp(23px, 2vw, 26px); line-height: 1.26; letter-spacing: -.025em; text-wrap: pretty; }
.process-v2__copy p { margin: 0; max-width: 72ch; color: #455d6b; font-size: 16px; line-height: 1.7; }
.process-v2__visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.process-v2__diagram { display: block; width: 64px; height: 68px; color: #29566b; }
.process-v2__footer { position: absolute; inset: 0; pointer-events: none; }
.process-v2__current { flex-shrink: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.process-v2__count { color: #526877; font-variant-numeric: tabular-nums; }
.process-v2__controls { position: absolute; inset-inline: 16px; top: 50%; display: flex; align-items: center; justify-content: space-between; transform: translateY(-50%); }
.process-v2__controls button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; min-height: 44px; padding: 16px; border: 1px solid #c8d6de; border-radius: 50%; background: var(--button-white); color: #29566b; font-size: 14px; font-weight: 700; line-height: 1.4; pointer-events: auto; transition: background 300ms ease, border-color 300ms ease; }
.process-v2__controls svg { flex: none; width: 28px; height: 28px; }
.process-v2__previous svg { transform: rotate(180deg); }
.process-v2__previous[aria-disabled="true"] { visibility: hidden; }
.process-v2__controls .process-v2__next { color: white; background: #29566b; border-color: #29566b; }
.process-v2__controls button[aria-disabled="true"] { background: #f3f6f8; color: #6a7d88; border-color: #e0e7eb; cursor: default; }
.process-v2__note { margin: 12px 0 0; color: #526877; }
.process-v2 :is(button, [role="tabpanel"]):focus-visible { outline: 3px solid #087d91; outline-offset: 3px; }
.process-v2 [role="tabpanel"]:focus-visible { outline-offset: -4px; }
@media (hover: hover) {
  .process-v2__tab:not([aria-selected="true"]):hover { background: #e1e7ec; color: #142c3b; }
  .process-v2__controls button:not([aria-disabled="true"]):hover { background: #ddd9d4; }
  .process-v2__controls .process-v2__next:not([aria-disabled="true"]):hover { background: var(--button-blue-hover); }
}
@media (max-width: 760px) {
  .process-v2__tabs { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #b7c9d3 transparent; }
  .process-v2__tab { flex: 0 0 auto; min-width: max-content; }
}
@media (max-width: 640px) {
  .section.process-section { padding-block: 32px; }
  .process-section .section-head { margin-bottom: 20px; }
  .process-v2 { border-radius: 12px; }
  .process-v2__navigation { padding: 12px 12px 0; }
  .process-v2__tabs { gap: 6px; }
  .process-v2__tab { min-height: 44px; padding: 10px 13px; font-size: 13px; }
  .process-v2__state { padding: 10px 4px 12px; }
  .process-v2__energy { top: 10px; }
  .process-v2__panel, .process-v2[data-process-enhanced="true"] .process-v2__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; gap: 0; min-height: 260px; padding: 24px 20px; }
  .process-v2__copy h3 { font-size: 23px; }
  .process-v2__copy p { font-size: 16px; line-height: 1.7; }
  .process-v2__visual { display: flex; justify-content: center; margin-top: 14px; }
  .process-v2__current { font-size: 13px; }
  .process-v2__controls { inset-inline: 12px; top: auto; bottom: 64px; transform: none; }
  .process-v2__controls button { width: 48px; height: 48px; padding: 10px; }
  .process-v2__controls svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-v2 *, .process-v2__progress::-webkit-progress-value { transition: none; }
  .process-v2__energy { animation: none; box-shadow: none; opacity: 0; }
}
@media print {
  .process-v2__navigation, .process-v2__footer, .process-v2__visual { display: none !important; }
  .process-v2[data-process-enhanced="true"] .process-v2__panels { display: block; }
  .process-v2[data-process-enhanced="true"] .process-v2__panel[hidden], .process-v2__panel { display: block !important; visibility: visible !important; min-height: 0; break-inside: avoid; }
}

.process-v2__image { display: block; width: 200px; max-width: 100%; height: 200px; object-fit: contain; }
@media (min-width: 641px) {
  .process-v2__panel:has(.process-v2__image) { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .process-v2__panel:has(.process-v2__image) { grid-template-columns: minmax(0, 1fr) 160px; }
  .process-v2__image { width: 160px; height: 160px; }
}
@media (max-width: 640px) {
  .process-v2__image { width: 128px; height: 128px; }
}
@media (hover: hover) {
  .process-v2__tab[aria-selected="true"]:hover { background: #23495b; border-color: #23495b; }
}
