@layer theme, base, legacy, venture, components, utilities;
@layer venture {
/* Token-driven workspace stylesheet inheriting W17 Brand Bible CSS custom properties from @njg/site-kit. */

.tp-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.tp-head {
  margin-bottom: 1.5rem;
}

.tp-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, #452778);
  margin: 0 0 0.4rem;
}

.tp-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  color: var(--head, #16141F);
}

.tp-lede {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--body, #2D2A38);
  max-width: 65ch;
}

.tp-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tp-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line, #D8D3C9);
  border-radius: var(--radius, 10px);
  background: var(--panel, #ffffff);
  color: var(--body, #2D2A38);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.tp-step.is-active {
  border-color: var(--accent, #452778);
  background: var(--accent, #452778);
  color: var(--accent-ink, #ffffff);
}

.tp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.8rem;
}

.tp-panel {
  display: none;
}

.tp-panel.is-active {
  display: block;
}

.tp-card {
  background: var(--panel, #ffffff);
  border: 1px solid var(--line, #D8D3C9);
  border-radius: var(--radius, 10px);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.tp-card h2,
.tp-card h3 {
  margin: 0 0 0.5rem;
  color: var(--head, #16141F);
  line-height: 1.25;
}

.tp-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tp-hint,
.tp-meta {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--smoke, #595566);
  margin: 0 0 0.85rem;
}

.tp-summary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--head, #16141F);
  margin: 0 0 0.5rem;
}

.tp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tp-chip {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid var(--smoke, #595566);
  background: var(--ground, #F4F2EE);
  color: var(--head, #16141F);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.tp-chip:hover,
.tp-chip.is-selected {
  border-color: var(--accent, #452778);
  background: var(--accent, #452778);
  color: var(--accent-ink, #ffffff);
}

.tp-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--head, #16141F);
}

.tp-textarea,
.tp-field input,
.tp-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--smoke, #595566);
  border-radius: 8px;
  background: var(--panel, #ffffff);
  color: var(--head, #16141F);
  font-size: 1rem;
  font-family: inherit;
}

.tp-textarea {
  min-height: 7.5rem;
  resize: vertical;
  margin-bottom: 0.85rem;
}

.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tp-field label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--head, #16141F);
}

.tp-checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
  font-weight: 500;
}

.tp-checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.tp-actions-primary {
  margin-top: 1rem;
  justify-content: flex-end;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.tp-btn-primary {
  background: var(--accent, #452778);
  color: var(--accent-ink, #ffffff);
}

.tp-btn-primary:hover {
  background: var(--accent-deep, #144147);
}

.tp-btn-secondary {
  background: var(--titanium, #eceae4);
  color: var(--head, #16141F);
  border-color: var(--smoke, #595566);
}

.tp-btn-ghost {
  background: transparent;
  color: var(--head, #16141F);
  border-color: var(--smoke, #595566);
}

.tp-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--titanium, #eceae4);
  color: var(--head, #16141F);
}

.tp-badge-ready {
  background: #14532d;
  color: #ffffff;
}

.tp-badge-warn {
  background: #78350f;
  color: #ffffff;
}

.tp-badge-blocked {
  background: #7f1d1d;
  color: #ffffff;
}

.tp-banner {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent, #452778);
  background: var(--ground, #F4F2EE);
  font-size: 1rem;
  color: var(--head, #16141F);
}

.tp-coverage {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--ground, #F4F2EE);
  border: 1px solid var(--line, #D8D3C9);
  margin: 0.85rem 0;
  font-size: 1rem;
}

.tp-milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.tp-ms-box {
  padding: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line, #D8D3C9);
  background: var(--ground, #F4F2EE);
}

.tp-ms-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--smoke, #595566);
  margin: 0 0 0.25rem;
}

.tp-ms-val {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--head, #16141F);
}

.tp-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.tp-scenario-card {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line, #D8D3C9);
  background: var(--ground, #F4F2EE);
}

.tp-money {
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.35rem 0;
  color: var(--head, #16141F);
}

.tp-reqs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-req-item {
  padding: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line, #D8D3C9);
  background: var(--ground, #F4F2EE);
}

.tp-req-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.tp-req-meta {
  font-size: 1rem;
  color: var(--smoke, #595566);
  margin: 0.25rem 0 0;
}

.tp-quick-resolve {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.tp-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.tp-code {
  background: var(--ground, #F4F2EE);
  border: 1px solid var(--line, #D8D3C9);
  border-radius: 8px;
  padding: 0.9rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.45;
  max-height: 360px;
}

.tp-receipts {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line, #D8D3C9);
  background: var(--ground, #F4F2EE);
}

.tp-details {
  margin: 0.85rem 0;
  border: 1px solid var(--line, #D8D3C9);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--ground, #F4F2EE);
}

.tp-details summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.tp-details-body {
  margin-top: 0.85rem;
}

.tp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tp-lookup-grid {
  grid-template-columns: 2fr 1fr;
}

.tp-lookup-results {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-sanctions-bar {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line, #D8D3C9);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.tp-sanctions-bar .tp-field-wide {
  flex: 1 1 260px;
}

@media (max-width: 640px) {
  .tp-lookup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tp-stepper {
    grid-template-columns: 1fr;
  }
  .tp-actions-primary {
    justify-content: stretch;
  }
  .tp-actions-primary .tp-btn {
    width: 100%;
  }
}

}
