.reinforcement-header .container {
  max-width: 980px;
}

.reinforcement-header h1 {
  max-width: 900px;
}

.reinforcement-page .problem-copy > section > p:not(.format-label),
.reinforcement-page .problem-copy > section > h2 {
  max-width: 680px;
}

.reinforcement-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--color-border);
}

.reinforcement-rail article {
  position: relative;
  min-height: 210px;
  padding: 28px 24px 26px;
  background: var(--color-white);
}

.reinforcement-rail article::after {
  position: absolute;
  top: 33px;
  right: -11px;
  z-index: 2;
  color: var(--color-primary);
  content: "→";
  font-size: 1.2rem;
  font-weight: 700;
}

.reinforcement-rail article:last-child::after {
  display: none;
}

.reinforcement-rail span,
.reinforcement-case-meta span,
.reinforcement-test-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--color-primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reinforcement-rail h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.reinforcement-rail p,
.reinforcement-test-grid p,
.reinforcement-case p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.72;
}

.reinforcement-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--color-border);
}

.reinforcement-test-grid article {
  min-height: 220px;
  padding: 30px 28px;
  background: var(--color-white);
}

.reinforcement-test-grid h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
}

.reinforcement-test-grid article:nth-child(1),
.reinforcement-test-grid article:nth-child(4) {
  background: #f4eee9;
}

.reinforcement-test-grid article:nth-child(2),
.reinforcement-test-grid article:nth-child(3) {
  background: #edf2f1;
}

.reinforcement-case {
  padding: 42px 38px;
  background: #20272a;
  color: rgba(255, 255, 255, 0.78);
}

.reinforcement-case .format-label,
.reinforcement-case h2,
.reinforcement-case h3,
.reinforcement-case p {
  color: inherit;
}

.reinforcement-case h2,
.reinforcement-case h3 {
  color: var(--color-white);
}

.reinforcement-case > p:not(.format-label) {
  max-width: 640px;
}

.reinforcement-case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.16);
}

.reinforcement-case-meta article {
  min-height: 150px;
  padding: 24px;
  background: #20272a;
}

.reinforcement-case-meta strong {
  display: block;
  margin-bottom: 7px;
  color: #d3b59f;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.reinforcement-case-meta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.reinforcement-boundary-grid article:first-child {
  border-color: #b7cbc3;
  background: #edf3ef;
}

.reinforcement-boundary-grid article:last-child {
  background: #faf9f7;
}

.reinforcement-boundary-grid ul {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .reinforcement-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reinforcement-rail article:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .reinforcement-header {
    padding: 104px 0 42px;
  }

  .reinforcement-header h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .reinforcement-header p:last-child {
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .reinforcement-page .problem-breadcrumb {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .reinforcement-rail,
  .reinforcement-test-grid,
  .reinforcement-case-meta {
    grid-template-columns: 1fr;
  }

  .reinforcement-rail article,
  .reinforcement-test-grid article,
  .reinforcement-case-meta article {
    min-height: 0;
  }

  .reinforcement-rail article::after {
    top: auto;
    right: auto;
    bottom: -12px;
    left: 28px;
    content: "↓";
  }

  .reinforcement-rail article:nth-child(2)::after {
    display: block;
  }

  .reinforcement-rail article:last-child::after {
    display: none;
  }

  .reinforcement-case {
    padding: 30px 24px;
  }
}
