.debt-calculator-section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 7vw, 96px);
}

.debt-calculator-shell {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  max-width: 1180px;
}

.debt-calculator-form,
.debt-calculator-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
}

.debt-calculator-form {
  display: grid;
  gap: 24px;
}

.debt-field {
  display: grid;
  gap: 8px;
}

.debt-field label {
  font-weight: 760;
}

.debt-field-hint,
.debt-calculator-note,
.debt-result-caption,
.debt-result-method {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.debt-field input,
.debt-field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.debt-calculator-result {
  align-self: start;
  background: #071426;
  color: #ffffff;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.debt-result-kicker {
  color: #8fe6e2;
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.debt-result-total {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 850;
  line-height: 0.98;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.debt-result-caption,
.debt-result-method {
  color: rgba(255, 255, 255, 0.72);
}

.debt-result-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.debt-result-row {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 0;
}

.debt-result-row span:first-child {
  color: rgba(255, 255, 255, 0.72);
}

.debt-result-row strong {
  font-size: 1.08rem;
  text-align: right;
}

.debt-result-method {
  margin: 24px 0 0;
}

.debt-share {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  margin-top: 28px;
  padding: 20px;
}

.debt-share-title {
  color: #8fe6e2;
  font-size: 0.78rem;
  font-weight: 850;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.debt-share-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.debt-share-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button.debt-share-copy {
  background: #ffffff;
  border-color: #ffffff;
  color: #071426;
  cursor: pointer;
  min-height: 42px;
  padding: 9px 14px;
}

.button.debt-share-copy:hover {
  background: #e8f7f5;
  border-color: #e8f7f5;
}

.debt-copy-status {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.debt-calculator-note {
  border-left: 3px solid var(--amber);
  margin: 0;
  padding-left: 16px;
}

.project-card--featured .project-brand-media--tech-debt {
  background: #071426;
}

@media (max-width: 820px) {
  .debt-calculator-shell {
    grid-template-columns: 1fr;
  }

  .debt-calculator-result {
    position: static;
  }
}

@media (max-width: 680px) {
  .project-title-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-detail-hero h1 {
    font-size: 2.55rem;
  }
}
