/* STEAMbassadors case-study additions
   Load this after projectsstyles.css. */

.steambassadors-case-study {
  --line: var(--rule);
  --steam-blue: #155493;
  --steam-blue-soft: #eaf2fa;
  --steam-green: #b7edc5;
  --steam-purple: #d9c7f4;
  --steam-orange: #e8532f;
  --steam-line: #d9dee5;
  --steam-muted: #666b72;
  --steam-panel: #f5f7f9;
}

.steam-hero {
  padding-bottom: 58px;
}

.hero-eyebrow {
  margin: 28px 0 12px;
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.steam-hero h1 {
  max-width: 1050px;
}

.hero-summary {
  max-width: 880px;
  margin: 28px 0 0;
  color: var(--mid);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts div {
  min-height: 126px;
  padding: 23px 24px 26px 0;
  border-right: 1px solid var(--line);
}

.project-facts div:not(:first-child) {
  padding-left: 24px;
}

.project-facts div:last-child {
  border-right: 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt,
.actor-label,
.logic-grid span,
.outcome-grid span,
.assumption-note > span {
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-facts dd {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
}

.steam-thesis {
  background: var(--ink);
  color: #fff;
}

.steam-thesis p {
  max-width: 1080px;
}

.section-lead {
  max-width: 800px;
  font-size: 1.08rem !important;
  line-height: 1.7 !important;
}

.consequence-grid,
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: var(--steam-line);
  border: 1px solid var(--steam-line);
}

.consequence-grid article,
.outcome-grid article {
  min-height: 245px;
  padding: 30px;
  background: #fff;
}

.consequence-grid article > span {
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.consequence-grid h3,
.decision-card h3,
.limitation-box h3 {
  margin: 28px 0 14px;
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.25;
}

.consequence-grid p,
.outcome-grid p,
.logic-grid p {
  margin: 0 !important;
  color: var(--steam-muted);
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

.actor-flow {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr;
  align-items: stretch;
  margin-top: 40px;
}

.actor-flow article {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--steam-line);
  background: var(--steam-panel);
}

.actor-flow strong {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

.actor-flow p {
  margin: 13px 0 0 !important;
  color: var(--steam-muted);
  font-size: 0.86rem !important;
  line-height: 1.55 !important;
}

.actor-arrow {
  display: grid;
  place-items: center;
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 1.2rem;
}

.steam-pull {
  background: var(--steam-blue);
  color: #fff;
}

.steam-pull p {
  max-width: 1000px;
}

.research-table {
  margin-top: 42px;
  border-top: 1px solid var(--steam-line);
}

.research-row {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  border-bottom: 1px solid var(--steam-line);
}

.research-row span {
  padding: 22px;
  border-right: 1px solid var(--steam-line);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
}

.research-row span:first-child {
  padding-left: 0;
}

.research-row span:last-child {
  border-right: 0;
}

.research-header span {
  color: var(--steam-blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-research .method-list {
  margin-top: 30px;
}

.decision-stack {
  margin-top: 48px;
  border-top: 1px solid var(--ink);
}

.decision-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--ink);
}

.decision-number {
  padding-top: 5px;
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
}

.decision-card h3 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.evidence-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.evidence-chain div {
  padding-top: 16px;
  border-top: 2px solid var(--steam-line);
}

.evidence-chain span {
  color: var(--steam-blue);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.evidence-chain p {
  margin: 11px 0 0 !important;
  color: var(--steam-muted);
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

.artifact-section > div {
  max-width: 1120px;
}

.artifact-figure {
  margin: 46px 0 0 !important;
  border: 1px solid var(--steam-line);
  background: var(--steam-panel);
}

.artifact-figure img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #fff;
}

.artifact-figure figcaption {
  padding: 18px 20px !important;
  border-top: 1px solid var(--steam-line);
  background: #fff;
  color: var(--steam-muted) !important;
  font-size: 0.77rem !important;
  line-height: 1.5 !important;
}

.artifact-figure figcaption strong {
  color: var(--ink);
}

.artifact-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artifact-link::after {
  content: "↗";
  margin-left: 10px;
}

.artifact-link:hover {
  color: var(--steam-blue);
  border-color: var(--steam-blue);
  text-decoration: none;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--steam-line);
  border: 1px solid var(--steam-line);
}

.logic-grid > div {
  min-height: 190px;
  padding: 26px;
  background: #fff;
}

.logic-grid strong,
.outcome-grid strong {
  display: block;
  margin: 18px 0 11px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
}

.assumption-note,
.limitation-box {
  margin-top: 32px;
  padding: 26px 30px;
  border-left: 4px solid var(--steam-blue);
  background: var(--steam-blue-soft);
}

.assumption-note p,
.limitation-box p {
  margin: 10px 0 0 !important;
  max-width: 850px;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
}

.outcome-grid article {
  min-height: 220px;
}

.limitation-box {
  margin-top: 36px;
  border-left-color: var(--steam-orange);
  background: #fff3ee;
}

.limitation-box h3 {
  margin: 0;
  font-size: 1rem;
}

.section-reflection > div {
  max-width: 860px;
}

.section-reflection p {
  font-size: 1.08rem;
  line-height: 1.75;
}

.steam-links {
  background: var(--ink);
}

.steam-links a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.steam-links a:hover {
  color: #a9cbed;
}

@media (max-width: 1060px) {
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-facts div:nth-child(2) {
    border-right: 0;
  }

  .project-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .actor-flow {
    grid-template-columns: 1fr;
  }

  .actor-arrow {
    height: 42px;
    transform: rotate(90deg);
  }

  .research-row {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .research-row span,
  .research-row span:first-child {
    padding: 8px 0;
    border-right: 0;
  }

  .research-header {
    display: none;
  }
}

@media (max-width: 760px) {
  .steam-hero {
    padding-bottom: 38px;
  }

  .hero-eyebrow {
    margin-top: 22px;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .project-facts,
  .consequence-grid,
  .outcome-grid,
  .logic-grid,
  .evidence-chain {
    grid-template-columns: 1fr;
  }

  .project-facts div,
  .project-facts div:not(:first-child) {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-facts div:last-child {
    border-bottom: 0;
  }

  .consequence-grid article,
  .outcome-grid article,
  .logic-grid > div {
    min-height: 0;
    padding: 24px;
  }

  .decision-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .artifact-figure {
    margin-top: 30px !important;
  }

  .artifact-figure img {
    max-height: 520px;
  }

  .assumption-note,
  .limitation-box {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steambassadors-case-study .project-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
body.steambassadors-case-study .case-large-intro.steam-thesis p {
  color: #ffffff !important;
}