/**
 * Homepage process — narrower tabs; dual-image crossfade; copy swap motion.
 */

/* Shared heading only — no process-specific title chrome */
body.make-home .nw-process.process-section .section-heading,
body.make-site .nw-process.process-section .section-heading,
body.pl-line-page .nw-process.process-section .section-heading,

body.make-home .nw-process .nw-section-head,
body.make-site .nw-process .nw-section-head,
body.pl-line-page .nw-process .nw-section-head {
  max-width: none;
  margin-bottom: 36px;
}

/* Centered process head: keep full container width so text-align:center is true page-center */
body.make-home .nw-process .nw-section-head--center,
body.make-site .nw-process .nw-section-head--center,
body.pl-line-page .nw-process .nw-section-head--center,

body.make-home .nw-process .nw-section-head.is-center,
body.make-site .nw-process .nw-section-head.is-center,
body.pl-line-page .nw-process .nw-section-head.is-center,

body.make-home .nw-process .nw-section-head.centered,
body.make-site .nw-process .nw-section-head.centered,
body.pl-line-page .nw-process .nw-section-head.centered {
  max-width: none;
  margin-inline: 0;
  text-align: center;
}

/* One continuous board: rail 30% | photo 40% | copy 30% */
body.make-home .nw-process .process-layout,
body.make-site .nw-process .process-layout,
body.pl-line-page .nw-process .process-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(215, 224, 236, 0.95);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft, 0 4px 14px rgba(63, 61, 122, 0.045));
}

body.make-home .nw-process .process-detail,
body.make-site .nw-process .process-detail,
body.pl-line-page .nw-process .process-detail {
  min-width: 0;
  display: flex;
  min-height: 0;
}

body.make-home .nw-process .process-panel,
body.make-site .nw-process .process-panel,
body.pl-line-page .nw-process .process-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  flex: 1;
  opacity: 1;
  transition: none;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.make-home .nw-process .process-panel.is-fading,
body.make-site .nw-process .process-panel.is-fading,
body.pl-line-page .nw-process .process-panel.is-fading {
  opacity: 1;
}

body.make-home .nw-process .process-photo,
body.make-site .nw-process .process-photo,
body.pl-line-page .nw-process .process-photo {
  flex: 4 1 0; /* 40% of board */
  min-width: 0;
  min-height: clamp(320px, 28vw, 500px);
  height: auto;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  align-self: stretch;
  border-radius: 0;
  /* same as panel — no dark underlay peeking as a frame */
  background: #fff;
  transform: translateZ(0);
}

/* Dual-layer crossfade — slight scale covers rounded-corner AA without a colored frame */
body.make-home .nw-process .process-photo > img,
body.make-site .nw-process .process-photo > img,
body.pl-line-page .nw-process .process-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.42s ease;
  will-change: opacity;
  pointer-events: none;
  transform: scale(1.02);
  transform-origin: center;
}

body.make-home .nw-process .process-photo > img.is-front,
body.make-site .nw-process .process-photo > img.is-front,
body.pl-line-page .nw-process .process-photo > img.is-front {
  opacity: 1;
  z-index: 1;
}

body.make-home .nw-process .process-photo figcaption,
body.make-site .nw-process .process-photo figcaption,
body.pl-line-page .nw-process .process-photo figcaption {
  position: absolute;
  display: flex;
  align-items: center;
  color: #fff;
  justify-content: flex-start;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 2;
}

body.make-home .nw-process .process-photo-pager,
body.make-site .nw-process .process-photo-pager,
body.pl-line-page .nw-process .process-photo-pager {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-caption);
  color: #dfe7f8;
  letter-spacing: 0.4px;
}

body.make-home .nw-process .process-photo-pager strong,
body.make-site .nw-process .process-photo-pager strong,
body.pl-line-page .nw-process .process-photo-pager strong {
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 450;
  color: #fff;
}

body.make-home .nw-process .process-copy,
body.make-site .nw-process .process-copy,
body.pl-line-page .nw-process .process-copy {
  flex: 3 1 0; /* 30% of board */
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f8fafe;
  border: 0;
  border-left: 0;
}

/* STEP → title → lead → body → list */
body.make-home .nw-process .process-copy-swap,
body.make-site .nw-process .process-copy-swap,
body.pl-line-page .nw-process .process-copy-swap {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.26s ease, transform 0.26s ease;
  will-change: opacity, transform;
}

body.make-home .nw-process .process-copy-swap.is-leaving,
body.make-site .nw-process .process-copy-swap.is-leaving,
body.pl-line-page .nw-process .process-copy-swap.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

body.make-home .nw-process .process-copy-swap.is-entering,
body.make-site .nw-process .process-copy-swap.is-entering,
body.pl-line-page .nw-process .process-copy-swap.is-entering {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

/* Kicker — match QA CONTROL POINT (no decorative dash) */
body.make-home .nw-process .process-copy .eyebrow,
body.make-site .nw-process .process-copy .eyebrow,
body.pl-line-page .nw-process .process-copy .eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  font-size:var(--nw-fs-meta);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--main-color);
  gap: 0;
}
body.make-home .nw-process .process-copy .eyebrow::before,
body.make-site .nw-process .process-copy .eyebrow::before,
body.pl-line-page .nw-process .process-copy .eyebrow::before {
  content: none;
  display: none;
}

body.make-home .nw-process .process-copy h3,
body.make-site .nw-process .process-copy h3,
body.pl-line-page .nw-process .process-copy h3 {
  margin: 10px 0 0;
  max-width: none;
  width: 100%;
  font-size: clamp(26px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.18;
  color: #1a2b42;
}

/* Short lead under title — mid layer, denser than body */
body.make-home .nw-process .process-subtitle,
body.make-site .nw-process .process-subtitle,
body.pl-line-page .nw-process .process-subtitle {
  margin: 8px 0 0;
  max-width: none;
  width: 100%;
  font-size: var(--nw-fs-body);
  line-height: 1.5;
  color: #2f3f55;
  font-weight: 600;
}

/* Body separated by hairline — supporting layer */
body.make-home .nw-process .process-body,
body.make-site .nw-process .process-body,
body.pl-line-page .nw-process .process-body,

body.make-home .nw-process .process-copy > .process-copy-swap > p.process-body,
body.make-site .nw-process .process-copy > .process-copy-swap > p.process-body,
body.pl-line-page .nw-process .process-copy > .process-copy-swap > p.process-body {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 224, 236, 0.42);
  max-width: none;
  width: 100%;
  min-height: 0;
  font-size: var(--nw-fs-secondary);
  line-height: 1.7;
  color: #5a6575;
  font-weight: 400;
}

body.make-home .nw-process .process-points,
body.make-site .nw-process .process-points,
body.pl-line-page .nw-process .process-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.make-home .nw-process .process-points li,
body.make-site .nw-process .process-points li,
body.pl-line-page .nw-process .process-points li {
  position: relative;
  margin: 0;
  padding: 0 0 0 16px;
  font-size: var(--nw-fs-secondary);
  line-height: 1.5;
  color: #3d4f68;
  font-weight: 500;
}

body.make-home .nw-process .process-points li::before,
body.make-site .nw-process .process-points li::before,
body.pl-line-page .nw-process .process-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--main-color);
  box-shadow: none;
}

body.make-home .nw-process .process-actions,
body.make-site .nw-process .process-actions,
body.pl-line-page .nw-process .process-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Prev/next beside CTA (not on photo) */
body.make-home .nw-process .process-actions .nw-step-switch,
body.make-site .nw-process .process-actions .nw-step-switch,
body.pl-line-page .nw-process .process-actions .nw-step-switch {
  position: static;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

body.make-home .nw-process .process-step-nav,
body.make-site .nw-process .process-step-nav,
body.pl-line-page .nw-process .process-step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

body.make-home .nw-process .process-tabs,
body.make-site .nw-process .process-tabs,
body.pl-line-page .nw-process .process-tabs {
  display: grid;
  gap: 0;
  grid-template-rows: repeat(var(--nw-process-tabs, 6), minmax(0, 1fr));
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* Kill timeline vertical rail (make-components ::before) */
body.make-home .nw-process .process-tabs::before,
body.make-site .nw-process .process-tabs::before,
body.pl-line-page .nw-process .process-tabs::before {
  content: none;
  display: none;
}

body.make-home .nw-process .process-tabs button,
body.make-site .nw-process .process-tabs button,
body.pl-line-page .nw-process .process-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  min-height: 0;
  padding: 16px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(215, 224, 236, 0.42);
  background: #fff;
  box-shadow: none !important;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
body.make-home .nw-process .process-tabs button:last-child,
body.make-site .nw-process .process-tabs button:last-child,
body.pl-line-page .nw-process .process-tabs button:last-child {
  border-bottom: 0;
}

/* No top accent bar — dividers stay as border-bottom only */
body.make-home .nw-process .process-tabs button::after,
body.make-site .nw-process .process-tabs button::after,
body.pl-line-page .nw-process .process-tabs button::after {
  content: none;
  display: none;
}

/* Hide legacy side chevron / svg only — never touch .process-step-icon */
body.make-home .nw-process .process-tabs button > svg,
body.make-site .nw-process .process-tabs button > svg,
body.pl-line-page .nw-process .process-tabs button > svg {
  display: none;
}

/* Left rail icons — color only on select (no scale / shadow → no flash) */
body.make-home .nw-process .process-step-icon,
body.make-site .nw-process .process-step-icon,
body.pl-line-page .nw-process .process-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 10px;
  background: #eef3ff;
  border: 1px solid var(--nw-border);
  color: var(--main-color);
  box-sizing: border-box;
  box-shadow: none;
  transform: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.make-home .nw-process .process-step-icon > .icon,
body.make-site .nw-process .process-step-icon > .icon,
body.pl-line-page .nw-process .process-step-icon > .icon {
  font-size: 20px;
  line-height: 1;
  color: inherit;
  transform: none;
  transition: color 0.15s ease;
}

body.make-home .nw-process .process-tabs button.selected .process-step-icon,
body.make-site .nw-process .process-tabs button.selected .process-step-icon,
body.pl-line-page .nw-process .process-tabs button.selected .process-step-icon,
body.make-home .nw-process .process-tabs button:hover .process-step-icon,
body.make-site .nw-process .process-tabs button:hover .process-step-icon,
body.pl-line-page .nw-process .process-tabs button:hover .process-step-icon,
body.make-home .nw-process .process-tabs button:focus-visible .process-step-icon,
body.make-site .nw-process .process-tabs button:focus-visible .process-step-icon,
body.pl-line-page .nw-process .process-tabs button:focus-visible .process-step-icon {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
  box-shadow: none;
  transform: none;
}

body.make-home .nw-process .process-tabs button:hover:not(.selected),
body.make-site .nw-process .process-tabs button:hover:not(.selected),
body.pl-line-page .nw-process .process-tabs button:hover:not(.selected) {
  background: linear-gradient(180deg, #f0f5ff 0%, #f7f9ff 55%, #fafbfe 100%);
  border-bottom-color: rgba(215, 224, 236, 0.42);
  box-shadow: none;
}

body.make-home .nw-process .process-tabs button.selected,
body.make-site .nw-process .process-tabs button.selected,
body.pl-line-page .nw-process .process-tabs button.selected {
  background: linear-gradient(180deg, #f0f5ff 0%, #f7f9ff 55%, #fafbfe 100%) !important;
  border-bottom-color: rgba(215, 224, 236, 0.42) !important;
  box-shadow: none !important;
}

body.make-home .nw-process .process-step-text strong,
body.make-site .nw-process .process-step-text strong,
body.pl-line-page .nw-process .process-step-text strong {
  color: #3d4556;
}

body.make-home .nw-process .process-tabs button.selected .process-step-text strong,
body.make-site .nw-process .process-tabs button.selected .process-step-text strong,
body.pl-line-page .nw-process .process-tabs button.selected .process-step-text strong {
  color: var(--main-color);
}

body.make-home .nw-process .process-step-text small,
body.make-site .nw-process .process-step-text small,
body.pl-line-page .nw-process .process-step-text small {
  margin-top: 4px;
  font-size: var(--nw-fs-meta);
  line-height: 1.45;
  color: var(--muted, #626d7d);
  font-weight: 450;
}

body.make-home .nw-process .process-tabs button.selected .process-step-text small,
body.make-site .nw-process .process-tabs button.selected .process-step-text small,
body.pl-line-page .nw-process .process-tabs button.selected .process-step-text small {
  color: var(--muted, #626d7d);
}

/* Old side-arrow opacity rules removed — they flashed when .selected moved */

body.make-home .nw-process .process-step-text,
body.make-site .nw-process .process-step-text,
body.pl-line-page .nw-process .process-step-text {
  min-width: 0;
  flex: 1 1 auto;
}

body.make-home .nw-process .process-step-text strong,
body.make-site .nw-process .process-step-text strong,
body.pl-line-page .nw-process .process-step-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* One-line summary only — longer DB copy must not stretch/deform the left rail */
body.make-home .nw-process .process-step-text small,
body.make-site .nw-process .process-step-text small,
body.pl-line-page .nw-process .process-step-text small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  /* tighten title→subtitle; freed space goes into tab gap above */
  margin-top: 2px;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Vertical rail: nowrap ellipsis (more reliable than -webkit-box on flex children) */
@media (min-width: 801px) {
  body.make-home .nw-process .process-step-text small,
  body.make-site .nw-process .process-step-text small,
  body.pl-line-page .nw-process .process-step-text small {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.make-home .nw-process .process-photo > img,
  body.make-site .nw-process .process-photo > img,
  body.pl-line-page .nw-process .process-photo > img,
  
  body.make-home .nw-process .process-copy-swap,
  body.make-site .nw-process .process-copy-swap,
  body.pl-line-page .nw-process .process-copy-swap {
    transition: none;
  }
  body.make-home .nw-process .process-copy-swap.is-leaving,
  body.make-site .nw-process .process-copy-swap.is-leaving,
  body.pl-line-page .nw-process .process-copy-swap.is-leaving,
  
  body.make-home .nw-process .process-copy-swap.is-entering,
  body.make-site .nw-process .process-copy-swap.is-entering,
  body.pl-line-page .nw-process .process-copy-swap.is-entering {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  body.make-home .nw-process .process-layout,
  body.make-site .nw-process .process-layout,
  body.pl-line-page .nw-process .process-layout {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
    gap: 0;
  }
  body.make-home .nw-process .process-panel,
  body.make-site .nw-process .process-panel,
  body.pl-line-page .nw-process .process-panel {
    flex-direction: column;
  }
  body.make-home .nw-process .process-copy,
  body.make-site .nw-process .process-copy,
  body.pl-line-page .nw-process .process-copy {
    flex: 1 1 auto;
    max-width: none;
    border: 0;
  }
  body.make-home .nw-process .process-photo,
  body.make-site .nw-process .process-photo,
  body.pl-line-page .nw-process .process-photo {
    min-height: clamp(240px, 40vw, 360px);
  }
  body.make-home .nw-process .process-step-text strong,
  body.make-site .nw-process .process-step-text strong,
  body.pl-line-page .nw-process .process-step-text strong {
    white-space: normal;
  }
}

@media (max-width: 900px) {
  body.make-home .nw-process .process-layout,
  body.make-site .nw-process .process-layout,
  body.pl-line-page .nw-process .process-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.make-home .nw-process .process-tabs,
  body.make-site .nw-process .process-tabs,
  body.pl-line-page .nw-process .process-tabs {
    grid-template-rows: none;
    grid-auto-rows: minmax(64px, auto);
    border-bottom: 1px solid rgba(215, 224, 236, 0.85);
  }
}

.process-points:empty { display: none; }
