/* SPFx Process — white bg + index.html palette */
:root {
  --spfx-bg: #ffffff;

  /* index.html / style.css */
  --spfx-purple: #5e42a6;
  --spfx-purple-deep: #4a3590;
  --spfx-purple-mid: #6f4ec3;
  --spfx-accent: #f99d2a;
  --spfx-accent-soft: #7c5cbf;
  --spfx-surface-muted: #f5f5f5;
  --spfx-surface: #f8f6fc;
  --spfx-surface-hover: #f0edf8;
  --spfx-border: rgba(94, 66, 166, 0.18);
  --spfx-border-strong: rgba(94, 66, 166, 0.32);
  --spfx-border-dashed: #6f4ec3;
  --spfx-glow-purple: rgba(94, 66, 166, 0.08);
  --spfx-glow-accent: rgba(249, 157, 42, 0.12);
  --spfx-rail-line: rgba(111, 78, 195, 0.35);
  --spfx-rail-line-active: rgba(249, 157, 42, 0.65);
  --spfx-text: #1a1a1a;
  --spfx-muted: #5c5c6e;
  --spfx-max: 960px;
  --spfx-radius: 12px;
  --spfx-transition: 0.25s ease;
}

body.spfx-page {
  text-align: left;
  min-height: 100vh;
  color: var(--spfx-text);
  background-color: var(--spfx-bg);
}

.spfx-page .content {
  padding-bottom: 48px;
}

.spfx-wrap {
  max-width: var(--spfx-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* Site header / nav */
.spfx-header {
  padding: 20px 0 12px;
  margin-bottom: 8px;
  text-align: center;
}

.spfx-header__home {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--spfx-accent);
  text-decoration: none;
  transition: color var(--spfx-transition);
}

.spfx-header__home:hover {
  color: #e08a1f;
}

/* Hero */
.spfx-hero {
  padding: 24px 0 20px;
  text-align: center;
}

.spfx-hero__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--spfx-text);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.spfx-hero__subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: var(--spfx-muted);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Section headings */
.spfx-section {
  margin-bottom: 48px;
}

.spfx-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--spfx-purple);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Timeline — center axis, alternating sides */
.spfx-section--timeline .spfx-section__title {
  margin-bottom: 20px;
}

.spfx-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 16px;
}

.spfx-timeline__axis {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(94, 66, 166, 0.18);
  border-radius: 999px;
  z-index: 0;
}

.spfx-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.spfx-timeline__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 0 16px;
  align-items: start;
  margin-bottom: 28px;
}

.spfx-timeline__item:last-child {
  margin-bottom: 0;
}

.spfx-timeline__spacer {
  min-height: 1px;
}

.spfx-timeline__item--left .spfx-timeline__card {
  grid-column: 1;
  justify-self: end;
  width: 100%;
  max-width: 320px;
}

.spfx-timeline__item--left .spfx-timeline__node {
  grid-column: 2;
}

.spfx-timeline__item--left .spfx-timeline__spacer {
  grid-column: 3;
}

.spfx-timeline__item--right .spfx-timeline__spacer {
  grid-column: 1;
}

.spfx-timeline__item--right .spfx-timeline__node {
  grid-column: 2;
}

.spfx-timeline__item--right .spfx-timeline__card {
  grid-column: 3;
  justify-self: start;
  width: 100%;
  max-width: 320px;
}

.spfx-timeline__node {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: start;
  padding-top: 6px;
}

.spfx-timeline__item--left .spfx-timeline__node::after,
.spfx-timeline__item--right .spfx-timeline__node::after {
  content: "";
  position: absolute;
  top: calc(6px + 20px);
  width: calc(16px + 26px);
  height: 1px;
  background: rgba(94, 66, 166, 0.28);
  border-radius: 1px;
  transform: translateY(-50%);
  pointer-events: none;
}

.spfx-timeline__item--left .spfx-timeline__node::after {
  right: calc(50% + 20px);
}

.spfx-timeline__item:first-child .spfx-timeline__node::after {
  width: calc(16px + 26px + 40px);
}

.spfx-timeline__item--right .spfx-timeline__node::after {
  left: calc(50% + 20px);
}

.spfx-timeline__node span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--spfx-purple);
  border: 2px solid var(--spfx-purple);
  box-shadow: 0 4px 12px rgba(94, 66, 166, 0.25);
}

.spfx-timeline__card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid rgba(94, 66, 166, 0.22);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 28px rgba(94, 66, 166, 0.1);
}

.spfx-timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  min-height: 52px;
  padding: 0 18px;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.spfx-timeline__detail {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--spfx-border);
  background: #ffffff;
  border-radius: 0 0 16px 16px;
}

.spfx-timeline__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--spfx-text);
  margin: 0;
  min-width: 0;
}

.spfx-timeline__head .spfx-timeline__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--spfx-glow-purple);
  color: var(--spfx-purple);
  font-size: 0.8125rem;
}

.spfx-timeline__figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 12px;
  border-radius: 10px;
}

.spfx-timeline__detail p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--spfx-muted);
}

@media (max-width: 700px) {
  .spfx-timeline__axis {
    left: 20px;
    transform: none;
  }

  .spfx-timeline__item,
  .spfx-timeline__item--left,
  .spfx-timeline__item--right {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 14px;
  }

  .spfx-timeline__item--left .spfx-timeline__card,
  .spfx-timeline__item--right .spfx-timeline__card {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }

  .spfx-timeline__item--left .spfx-timeline__node,
  .spfx-timeline__item--right .spfx-timeline__node {
    grid-column: 1;
    grid-row: 1;
    padding-top: 16px;
  }

  .spfx-timeline__item--left .spfx-timeline__spacer,
  .spfx-timeline__item--right .spfx-timeline__spacer {
    display: none;
  }

  .spfx-timeline__item--left .spfx-timeline__node::after,
  .spfx-timeline__item--right .spfx-timeline__node::after {
    display: none;
  }
}

/* Tech badges */
.spfx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spfx-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 14px;
  background: #f9f9f9;
  border: 1px dotted #d8d8d8;
  color: var(--spfx-text);
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.spfx-badge__icon {
  width: 1.125rem;
  margin-right: 8px;
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
}

.spfx-footer {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}
