.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 115px 0 80px;
}

.page-shell > .eyebrow {
  margin-bottom: 18px;
}

.page-shell > h1 {
  max-width: 860px;
  margin: 0;
  color: #171a1f;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.page-shell > .lead {
  max-width: 740px;
  margin: 16px 0 32px;
  color: #505761;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
  margin-top: 16px;
}

.article-card {
  display: flex;
  min-width: 0;
  min-height: 320px;
  flex-direction: column;
  padding: 34px 30px;
  border-radius: 24px;
  background: #ffffff !important;
  border: 1px solid rgba(156, 163, 175, 0.35) !important;
  box-shadow: 0 4px 20px rgba(16, 18, 22, 0.06) !important;
  color: #101216 !important;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.article-card:nth-child(3n + 2),
.article-card:nth-child(3n) {
  background: #ffffff !important;
}

.article-card:hover {
  transform: translateY(-6px) scale(1.012) !important;
  border-color: #08785b !important;
  box-shadow: 0 20px 40px -12px rgba(8, 120, 91, 0.2) !important;
  background: #ffffff !important;
}

.article-card:focus-visible {
  outline: 3px solid #08785b;
  outline-offset: 4px;
}

.article-card > span {
  color: #08785b !important;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.article-card h2 {
  margin: 20px 0 12px;
  color: #101216 !important;
  font-size: clamp(1.2rem, 1.65vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.article-card p {
  margin: auto 0 0;
  padding-top: 12px;
  color: #3e444c !important;
  font-size: 0.94rem;
  line-height: 1.7;
}

.article-shell {
  width: min(840px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(210, 220, 220, 0.8);
  border-radius: 28px;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(23, 26, 31, 0.06);
  color: #101216 !important;
}

.article-shell > .text-link {
  margin-bottom: 24px;
  color: #08785b !important;
  font-size: 0.72rem;
  font-weight: 600;
}

.article-shell > .eyebrow {
  margin: 0 0 16px;
  color: #08785b !important;
}

.article-shell h1,
.section-dark .article-shell h1,
.section-light .article-shell h1 {
  max-width: 700px;
  margin: 0;
  color: #101216 !important;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.article-shell .article-meta,
.section-dark .article-shell .article-meta,
.section-light .article-shell .article-meta {
  margin: 20px 0 30px;
  color: #08785b !important;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-shell .article-lead,
.section-dark .article-shell .article-lead,
.section-light .article-shell .article-lead {
  margin: 0 0 42px;
  padding: 22px 24px;
  border-left: 3.5px solid #08785b !important;
  border-radius: 0 16px 16px 0;
  background: rgba(8, 120, 91, 0.06) !important;
  color: #262a31 !important;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-shell h2,
.article-shell h3,
.section-dark .article-shell h2,
.section-dark .article-shell h3,
.section-light .article-shell h2,
.section-light .article-shell h3 {
  margin: 42px 0 14px;
  color: #101216 !important;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.article-shell p,
.article-shell li,
.section-dark .article-shell p,
.section-dark .article-shell li,
.section-light .article-shell p,
.section-light .article-shell li {
  color: #3e444c !important;
  font-size: 1rem;
  line-height: 1.85;
}

.article-shell p {
  margin: 0 0 20px;
}

.article-shell ul,
.article-shell ol {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding-left: 1.35rem;
}

.article-shell li {
  padding-left: 0.25rem;
}

.article-shell li::marker {
  color: #08785b;
}

.article-shell pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid #262a31;
  border-radius: 16px;
  background: #171a1f;
  color: #7cffcb;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.article-shell .source-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(210, 220, 220, 0.8);
  color: #68727c;
  font-size: 0.88rem;
}

.article-shell .source-link {
  display: inline-flex;
  margin-top: 4px;
  color: #08785b;
  font-weight: 600;
  line-height: 1.5;
}

.article-shell :focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(1080px, calc(100% - 40px));
    padding-top: 115px;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: calc(100% - 36px);
    padding: 124px 0 72px;
  }

  .page-shell > h1 {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .page-shell > .lead {
    margin: 18px 0 32px;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-card {
    min-height: 230px;
    padding: 24px 20px;
  }

  body.section-light .article-shell {
    width: calc(100% - 32px);
    margin: 104px auto 40px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  body.section-light .article-shell > .text-link {
    margin-bottom: 28px;
  }

  body.section-light .article-shell h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .article-lead {
    padding: 18px;
    font-size: 1rem;
  }

  body.section-light .article-shell h2 {
    margin-top: 34px;
  }

  body.section-light .article-shell pre {
    padding: 16px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card {
    transition: none;
  }
}
