.sp-rework {
  --dark: #142f28;
  --ink: #182c25;
  --green: #d2eea6;
  --paper: #f9f6ef;
  --muted: #475b50;
  --line: #c7cdc1;
  --tint: #e9ecdf;
  --sp-edition: #a83c2d;
  --sp-focus: #9d3928;
  --sp-surface: #fffdf8;
  background: var(--paper);
  color: var(--ink);
}

.sp-rework :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sp-focus);
  outline-offset: 3px;
}

.sp-rework :is(.header, footer, .sp-diagram--home, .closing) :focus-visible {
  outline-color: #f6d99b;
}

.sp-rework .skip { z-index: 25; }

.sp-rework .menu-toggle-icon {
  position: relative;
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
}

.sp-rework .menu-toggle-icon::before,
.sp-rework .menu-toggle-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(50% - 1px);
  border-block-start: 2px solid currentColor;
  border-radius: 2px;
}

.sp-rework .menu-toggle-icon::before { transform: translateY(-3px); }
.sp-rework .menu-toggle-icon::after { transform: translateY(3px); }
.sp-rework .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: rotate(45deg); }
.sp-rework .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); }

.sp-rework .topbar {
  background: #e9eddd;
  border-bottom: 1px solid #d8ddce;
  color: #243b31;
  font-size: .82rem;
}

.sp-rework .header {
  background: var(--dark);
  min-height: 80px;
  padding-block: 14px;
}

.sp-rework .header .brand img { width: clamp(170px, 19vw, 226px); }

.sp-rework .header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.4;
}

.sp-rework .header .nav-cta {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  border-radius: .3rem;
}

.sp-rework .hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.6vw, 5.7rem);
  padding-block: clamp(3rem, 6vw, 5.75rem) clamp(2.75rem, 5vw, 4.75rem);
}

.sp-rework .hero h1 {
  font-size: clamp(3rem, 6.4vw, 6.45rem);
  letter-spacing: -.06em;
  line-height: .97;
  text-wrap: balance;
}

.sp-rework .hero em {
  color: #315a42;
  font-size: 1.04em;
  letter-spacing: -.045em;
}

.sp-rework .hero .eyebrow { color: var(--sp-edition); }
.sp-rework .hero .lede { max-width: 36ch; }
.sp-rework .hero .privacy-note { margin-bottom: 0; font-size: .9rem; }
.sp-rework .hero a.quietlink { display: inline-flex; align-items: center; min-height: 44px; }
.sp-rework .mint { border-color: #b1ce84; }
.sp-rework .trustline { border-color: #b6c2b4; color: #3b5145; }

.sp-rework .sp-pagehead, .sp-rework .articlehero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(2.2rem, 5vw, 4.75rem) 0;
  max-width: none;
}

.sp-rework :is(.sp-pagehead, .articlehero) > div { min-width: 0; }
.sp-rework .articlehero { border-bottom: 1px solid var(--line); }
.sp-rework .articlehero h1 { font-size: clamp(2.6rem, 5.2vw, 5.15rem); }
.sp-rework .sp-pagehead h1 { font-size: clamp(2.65rem, 5.4vw, 5.4rem); }
.sp-rework :is(.sp-pagehead, .articlehero) h1 { text-wrap: balance; letter-spacing: -.05em; }
.sp-rework :is(.sp-pagehead, .articlehero) .eyebrow { color: var(--sp-edition); }
.sp-rework :is(.sp-pagehead, .articlehero) .lede { color: var(--muted); max-width: 48ch; margin-bottom: .85rem; }
.sp-rework .article-logo { margin-bottom: 1.25rem; }

.sp-rework .sp-diagram {
  --sp-chart-ink: #20362a;
  --sp-chart-muted: #425b48;
  --sp-chart-line: #b7c7b0;
  --sp-chart-icon: #466447;
  background: #e6edda;
  border: 1px solid #b6c6ad;
  border-radius: .65rem;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.35rem);
  color: var(--sp-chart-ink);
}

.sp-rework .sp-diagram figcaption {
  color: inherit;
  font: 600 clamp(1.4rem, 2.35vw, 2.2rem)/1.07 Bricolage, Arial, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 .75rem;
  text-wrap: balance;
}

.sp-rework .sp-diagram ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-rework .sp-diagram li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(.55rem, 1.5vw, 1.05rem);
  border-top: 1px solid var(--sp-chart-line);
  padding-block: .78rem;
}

.sp-rework .sp-diagram li:last-child { padding-bottom: 0; }
.sp-rework .sp-diagram-entry > * { display: block; }

.sp-rework .sp-diagram-entry strong {
  font-size: clamp(.96rem, 1.5vw, 1.06rem);
  line-height: 1.32;
  margin-bottom: .18rem;
}

.sp-rework .sp-diagram-entry :is(span, a) {
  color: var(--sp-chart-muted);
  font-size: .9rem;
  line-height: 1.39;
}

.sp-rework .sp-diagram-entry a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.sp-rework .sp-diagram--guide {
  background: #f1e7d6;
  border-color: #d3c1a7;
  --sp-chart-line: #ccbda3;
  --sp-chart-icon: #87513b;
}

.sp-rework .sp-diagram--home {
  --sp-chart-ink: #f9f7ed;
  --sp-chart-muted: #e1eadc;
  --sp-chart-line: #577266;
  --sp-chart-icon: #d3efa3;
  background: #1d3d31;
  border-color: #3a5c4a;
  box-shadow: 7px 8px 0 #d9e2cc;
  padding: clamp(1.15rem, 3vw, 2.15rem);
}

.sp-rework .sp-diagram--home figcaption {
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  margin-bottom: 1rem;
}

.sp-rework .sp-diagram-example {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(75px, 1fr);
  align-items: stretch;
  gap: .75rem;
  margin-top: 1.15rem;
  padding: .75rem;
  background: #e9ecdf;
  border-radius: .3rem;
}

.sp-rework .sp-diagram-example p {
  margin: 0;
  color: #23372c;
  font-size: .86rem;
  line-height: 1.45;
}

.sp-rework .sp-diagram-example p span { color: #425b48; }

.sp-rework .sp-diagram-photo {
  width: 100%;
  height: 100%;
  min-height: 68px;
  object-fit: cover;
  object-position: 50% 57%;
  border-radius: .3rem;
}

.sp-rework .sp-symbol {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--sp-chart-line);
  border-radius: .28rem;
  position: relative;
  color: var(--sp-chart-icon);
}

.sp-rework .sp-symbol::before, .sp-rework .sp-symbol::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.sp-rework .sp-symbol--source::before {
  inset: .49rem .45rem;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.sp-rework .sp-symbol--source::after {
  inset: .81rem .68rem auto;
  border-top: 2px solid currentColor;
}

.sp-rework .sp-symbol--result::before {
  width: .64rem;
  height: .64rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: .44rem;
  left: .48rem;
}

.sp-rework .sp-symbol--result::after {
  height: 2px;
  width: .48rem;
  top: 1.14rem;
  left: .96rem;
  background: currentColor;
  transform: rotate(48deg);
}

.sp-rework .sp-symbol--verify::before {
  width: .45rem;
  height: .77rem;
  top: .48rem;
  left: .69rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.sp-rework .sp-symbol--local::before {
  inset: .79rem .59rem .46rem;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.sp-rework .sp-symbol--local::after {
  width: .46rem;
  height: .48rem;
  top: .45rem;
  left: .71rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  border-radius: 6px 6px 0 0;
}

.sp-rework .sp-symbol--outbound::before {
  top: .48rem;
  right: .48rem;
  width: .65rem;
  height: .65rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
}

.sp-rework .sp-symbol--outbound::after {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  top: .88rem;
  left: .37rem;
  transform: rotate(-45deg);
}

.sp-rework .sp-guidance-icon {
  position: relative;
  display: inline-block;
  inline-size: .85em;
  block-size: .85em;
  vertical-align: -.03em;
}

.sp-rework .sp-guidance-icon::before,
.sp-rework .sp-guidance-icon::after {
  content: "";
  position: absolute;
  inset-block-start: .12em;
  inset-inline-end: .1em;
  border: solid currentColor;
}

.sp-rework .sp-guidance-icon::before {
  inline-size: .38em;
  block-size: .38em;
  border-width: 2px 2px 0 0;
}

.sp-rework .sp-guidance-icon::after {
  inline-size: .65em;
  border-width: 2px 0 0;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.sp-rework .sp-task-mark {
  --task-ink: currentColor;
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  vertical-align: middle;
  color: inherit;
}

.sp-rework .sp-task-mark::before,
.sp-rework .sp-task-mark::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.sp-task-mark[data-task-icon="search"]::before {
  inset: 2px 5px 5px 2px;
  border: 2px solid var(--task-ink);
  border-radius: 50%;
}
.sp-task-mark[data-task-icon="search"]::after {
  width: 7px;
  border-top: 2px solid var(--task-ink);
  right: 1px;
  bottom: 3px;
  transform: rotate(45deg);
}
.sp-task-mark[data-task-icon="identity"]::before {
  inset: 2px 6px 10px;
  border: 2px solid var(--task-ink);
  border-radius: 50%;
}
.sp-task-mark[data-task-icon="identity"]::after {
  inset: 11px 3px 2px;
  border: 2px solid var(--task-ink);
  border-radius: 8px 8px 2px 2px;
}
.sp-task-mark[data-task-icon="platform"]::before {
  inset: 3px 4px 4px 2px;
  border: 2px solid var(--task-ink);
  border-radius: 2px;
}
.sp-task-mark[data-task-icon="platform"]::after {
  inset: 7px 4px auto 3px;
  border-top: 2px solid var(--task-ink);
  box-shadow: 4px 9px 0 -0.3px var(--task-ink);
}
.sp-task-mark[data-task-icon="evidence"]::before {
  inset: 2px 4px;
  border: 2px solid var(--task-ink);
  border-radius: 2px;
}
.sp-task-mark[data-task-icon="evidence"]::after {
  inset: 7px 7px auto;
  height: 6px;
  border-block: 2px solid var(--task-ink);
}
.sp-task-mark[data-task-icon="tracking"]::before {
  inset: 3px;
  border: 2px solid var(--task-ink);
  border-radius: 50%;
}
.sp-task-mark[data-task-icon="tracking"]::after {
  top: 6px;
  left: 8px;
  width: 5px;
  height: 6px;
  border: solid var(--task-ink);
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 2px;
}

.sp-rework .workbench .tab > .sp-task-mark {
  display: inline-block;
  float: none;
  margin: 0 .32rem 0 0;
}

.sp-rework .workbench .empty-state > .sp-task-mark {
  align-self: start;
}

.sp-rework .routecard h2 > .sp-task-mark {
  margin-inline-end: .36rem;
  color: #376247;
}

.sp-completion-media {
  display: grid;
  gap: 1.25rem;
  margin-block: clamp(2.75rem, 7vw, 5.5rem);
}

.sp-completion-media h2 { margin: 0; }

.sp-completion-plates {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-completion-plate {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: .5rem;
  overflow: hidden;
  background: var(--sp-surface);
  max-width: 46rem;
}

.sp-completion-plate picture,
.sp-completion-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.sp-completion-copy { padding: 1.1rem 1.2rem; }
.sp-completion-copy h3 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 .45rem; }
.sp-completion-copy p { margin: 0; }

.sp-completion-walkthrough {
  max-width: 47rem;
  border: 1px solid var(--line);
  margin: 0;
  padding: 1.25rem;
  border-radius: .5rem;
  background: var(--sp-surface);
}

.sp-completion-walkthrough h3 { margin: 0; }
.sp-completion-walkthrough video {
  display: block;
  height: auto;
  width: 100%;
  max-width: 45rem;
  max-height: min(76vh, 39rem);
  object-fit: contain;
  background: #142f28;
  border-radius: .35rem;
  margin-block: 1rem;
}
.sp-completion-walkthrough summary { cursor: pointer; font-weight: 700; }

@media (max-width: 650px) {
  .sp-completion-plates { grid-template-columns: minmax(0, 1fr); }
  .sp-completion-walkthrough { padding: .85rem; }
}

@media (max-width: 600px) {
  .sp-rework .workbench .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sp-rework .workbench .tab > .sp-task-mark { margin: 0 0 .18rem; }
}

.sp-rework .sp-symbol--file::before {
  inset: .43rem .52rem;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.sp-rework .sp-symbol--file::after {
  inset: .82rem .7rem auto;
  height: .35rem;
  border: solid currentColor;
  border-width: 2px 0;
}

.sp-rework .workbench {
  background: var(--sp-surface);
  border-color: #a9baaa;
  box-shadow: 0 15px 50px #283d2a0d;
}

.sp-rework .work-rail { background: #e8eddf; }
.sp-rework .work-body { min-width: 0; }
.sp-rework .tab:focus-visible { outline-offset: -3px; }
.sp-rework .tab.active:focus-visible { outline-color: #f6d99b; }
.sp-rework :is(input, select, textarea) { border-color: #738b78; }
.sp-rework :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--sp-focus); }
.sp-rework :is(.form-error, .field-error, .error-message, [data-error]) { color: #893329; }
.sp-rework .empty-state { background: #eef0e8; }
.sp-rework .route-result { border-left: 3px solid #426948; }

.sp-rework .articlelayout {
  grid-template-columns: minmax(170px, 235px) minmax(0, 1fr);
  gap: clamp(1.65rem, 5vw, 5.25rem);
}

.sp-rework .article-nav {
  display: block;
  align-self: start;
  background: #e8eee0;
  border-top: 3px solid #47744b;
  padding: 1.2rem;
}

.sp-rework .article-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  white-space: normal;
  margin: 0;
  padding: .35rem .05rem;
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.45;
  border-top: 1px solid #c5d0bf;
  text-decoration: underline;
}

.sp-rework .article-nav a:hover { color: #305638; }
.sp-rework .prose { min-width: 0; max-width: 75ch; }
.sp-rework .prose p { color: #293c32; }
.sp-rework .prose .closing p { color: #e3eddf; }
.sp-rework .prose a, .sp-rework .routecard a { overflow-wrap: anywhere; }
.sp-rework :is(.card, .routecard) { background: var(--sp-surface); }
.sp-rework .routecard { border-top-color: #55765b; }
.sp-rework .card:hover { background: #f2f5e8; }
.sp-rework .privacy-studies { margin-inline: 0; }

@media (max-width: 900px) {
  .sp-rework .hero { gap: 2rem; }
  .sp-rework .hero h1 { font-size: clamp(2.7rem, 7vw, 4.65rem); }
}

@media (max-width: 700px) {
  .sp-rework .hero, .sp-rework .sp-pagehead, .sp-rework .articlehero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.45rem;
    padding-block: 2rem;
  }

  .sp-rework .hero h1 { font-size: clamp(2.9rem, 9.9vw, 4.3rem); }
  .sp-rework .hero .actions { margin-block: 1.1rem .85rem; }
  .sp-rework .hero .lede { margin-bottom: .85rem; }
  .sp-rework :is(.articlehero, .sp-pagehead) h1 { font-size: clamp(2.55rem, 8.8vw, 3.8rem); }
  .sp-rework .articlelayout { display: block; }
  .sp-rework .article-nav { position: static; margin-bottom: 1.65rem; }
  .sp-rework .sp-diagram--home { box-shadow: 4px 5px 0 #d9e2cc; }
  .sp-rework .sp-diagram-example { grid-template-columns: 1fr; }
  .sp-rework .sp-diagram-photo { height: 66px; }
}

.sp-hero-media {
  margin-top: 1rem;
  position: relative;
}
.sp-hero-media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 8 / 5;
  border-radius: .55rem;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #4c8c5a70 43%, #326940 55%,
    #d2eea6 60%, #d2eea667 72%, transparent 100%) 0% 0 / 17% 100% no-repeat;
  opacity: 0;
}

.sp-rework #search-form button[type="submit"] {
  position: relative;
}
.sp-rework #search-form button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: auto .9rem .42rem;
  height: 2px;
  border-radius: 2px;
  background: #d2eea6;
  transform: scaleX(.24);
  transform-origin: left center;
  opacity: .55;
  pointer-events: none;
}
.sp-rework #search-form button[type="submit"]:is(:focus-visible, [data-touch-pressed])::after {
  transform: scaleX(1);
  opacity: 1;
}
.sp-rework #search-form button[type="submit"][data-touch-pressed] {
  box-shadow: inset 0 0 0 2px #d2eea6;
}
@media (hover: hover) and (pointer: fine) {
  .sp-rework #search-form button[type="submit"]:hover::after {
    transform: scaleX(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sp-hero-media[data-evidence-sweep]::after {
    animation: sp-evidence-sweep 575ms ease-out both;
  }
  .sp-rework #search-form button[type="submit"]::after {
    transition: transform 220ms ease-out, opacity 140ms ease-out;
  }
  .sp-rework #search-form button[type="submit"][data-touch-pressed] {
    transform: translateY(2px);
  }
  @keyframes sp-evidence-sweep {
    0% { background-position-x: 0%; opacity: 1; }
    82% { opacity: 1; }
    100% { background-position-x: 100%; opacity: 0; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .sp-rework #search-form button[type="submit"]:active {
    transform: translateY(2px);
  }
}
.sp-hero-media img,
.sp-media-figure img,
.sp-walkthrough video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .55rem;
}
.sp-hero-media p {
  color: #e5ede2;
  font-size: .875rem;
  line-height: 1.4;
  margin: .6rem 0 0;
}
.sp-walkthrough {
  max-width: 56rem;
  margin: 3rem auto;
  padding: clamp(1rem, 4vw, 2rem);
  background: #ecf1e8;
  border: 1px solid #bdcabb;
  border-radius: .85rem;
}
.sp-walkthrough h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0 0 .5rem;
}
.sp-walkthrough video {
  background: #153e38;
  margin: 1rem 0;
}
.sp-walkthrough summary {
  font-weight: 700;
  cursor: pointer;
}
.sp-walkthrough summary:focus-visible {
  outline: 3px solid #833f29;
  outline-offset: 4px;
}
.sp-walkthrough li + li {
  margin-top: .5rem;
}
