
/* AMDE 350 — Design for Social Good */
.noj-social-good {
  --sg-ink: #252525;
  --sg-muted: #666;
  --sg-paper: #fffdf8;
  --sg-accent: #e95035;
  --sg-line: #e6e0d7;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--sg-ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.75;
}

.noj-social-good * {
  box-sizing: border-box;
}

.noj-social-good h1,
.noj-social-good h2,
.noj-social-good h3 {
  color: var(--sg-ink);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.noj-social-good h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 0 0 20px;
  font-weight: 850;
}

.noj-social-good h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 20px;
  font-weight: 800;
}

.noj-social-good h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  font-weight: 750;
}

.noj-social-good p {
  margin: 0 0 18px;
}

.noj-social-good a {
  color: #b93825;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.noj-social-good a:hover {
  color: #762316;
}

.noj-social-good .sg-hero {
  background: var(--sg-paper);
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  padding: clamp(28px, 6vw, 64px);
  margin-bottom: 28px;
  overflow: hidden;
}

.noj-social-good .sg-kicker {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--sg-accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.noj-social-good .sg-intro {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  max-width: 760px;
}

.noj-social-good .sg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.noj-social-good .sg-meta span {
  display: inline-block;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .85rem;
  font-weight: 650;
  background: #fff;
}

.noj-social-good .sg-section {
  margin: 28px 0;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--sg-line);
  border-radius: 22px;
  background: #fff;
}

.noj-social-good .sg-section-label {
  color: var(--sg-accent);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.noj-social-good .sg-callout {
  border-left: 5px solid var(--sg-accent);
  padding: 18px 22px;
  margin: 24px 0;
  background: #fff5f0;
  border-radius: 0 12px 12px 0;
}

.noj-social-good .sg-callout p:last-child {
  margin-bottom: 0;
}

.noj-social-good .sg-list {
  padding-left: 1.35em;
  margin: 12px 0 20px;
}

.noj-social-good .sg-list li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.noj-social-good .sg-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.noj-social-good .sg-step {
  border: 1px solid var(--sg-line);
  background: var(--sg-paper);
  border-radius: 14px;
  padding: 20px;
}

.noj-social-good .sg-step-number {
  display: block;
  color: var(--sg-accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.noj-social-good .sg-poster {
  margin: 28px 0 42px;
}

.noj-social-good .sg-poster img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  margin: 0 auto !important;
  border-radius: 8px;
  background: #f3f0eb;
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}

.noj-social-good .sg-poster figcaption {
  padding: 12px 2px 0;
  color: var(--sg-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.noj-social-good .sg-poster figcaption strong {
  color: var(--sg-ink);
}

.noj-social-good .sg-poster-link {
  display: block;
  text-decoration: none;
}

.noj-social-good .sg-poster-link:focus-visible {
  outline: 3px solid var(--sg-accent);
  outline-offset: 5px;
}

.noj-social-good .sg-deliverable {
  padding: 18px 0;
  border-bottom: 1px solid var(--sg-line);
}

.noj-social-good .sg-deliverable:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.noj-social-good .sg-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sg-accent);
  color: white;
  font-size: .9rem;
  font-weight: 850;
}

.noj-social-good .sg-questions {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.noj-social-good .sg-questions li {
  position: relative;
  margin: 0;
  padding: 16px 12px 16px 36px;
  border-bottom: 1px solid var(--sg-line);
}

.noj-social-good .sg-questions li::before {
  content: "↗";
  position: absolute;
  left: 5px;
  top: 16px;
  color: var(--sg-accent);
  font-weight: 850;
}

.noj-social-good .sg-source {
  background: var(--sg-paper);
  border-radius: 14px;
  padding: 22px;
  margin-top: 22px;
  font-size: .92rem;
}

.noj-social-good .sg-footer {
  padding: 28px 8px 12px;
  color: var(--sg-muted);
  font-size: .88rem;
}

@media (max-width: 640px) {
  .noj-social-good .sg-steps {
    grid-template-columns: 1fr;
  }

  .noj-social-good .sg-section,
  .noj-social-good .sg-hero {
    border-radius: 14px;
  }

  .noj-social-good .sg-poster {
    margin: 22px 0 34px;
  }
}
