/* Editorial reading mode for lesson theory. */
.article-content {
  max-width: 1040px !important;
  margin-inline: auto !important;
  padding: clamp(32px, 5vw, 68px) clamp(24px, 7vw, 92px) !important;
}
.article-content > .kicker { display: block; margin-bottom: 24px; }
.article-content > div:not(.lesson-actions) { max-width: 780px; margin-inline: auto; }
.article-content > div:not(.lesson-actions) > h2:first-child {
  font-size: clamp(30px, 3.1vw, 44px) !important; line-height: 1.12 !important;
  letter-spacing: -.035em; margin: 0 0 20px !important;
}
.article-content > div:not(.lesson-actions) p {
  max-width: 72ch; font-size: 18px !important; line-height: 1.78 !important;
  color: #b7c2d8 !important; margin: 0 0 20px;
}
.article-content > div:not(.lesson-actions) .lead {
  font-size: 19px !important; line-height: 1.65 !important; color: #d7def0 !important;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.article-content .insight-box { margin: 30px 0 !important; padding: 24px 28px !important; }
.article-content .theory-grid {
  display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important;
  margin: 24px 0 40px !important; border-block: 1px solid rgba(255,255,255,.1);
}
.article-content .theory-grid article {
  display: grid; grid-template-columns: minmax(120px, .38fr) 1fr; column-gap: 24px;
  align-items: baseline; padding: 22px 4px !important; border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; transform: none !important;
}
.article-content .theory-grid article:last-child { border-bottom: 0 !important; }
.article-content .theory-grid article > b { grid-row: 1 / span 2; color: #f9a8d4; }
.article-content .theory-grid article h4 { margin: 0 0 7px !important; font-size: 17px !important; }
.article-content .theory-grid article p { margin: 0 !important; font-size: 16px !important; }
.theory-reading { margin-top: 54px; }
.theory-toc {
  display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 18px 0 22px;
  border-block: 1px solid rgba(255,255,255,.11); color: #8796b3; font-size: 12px;
}
.theory-toc b { width: 100%; color: #dce3f5; font-size: 13px; }
.theory-toc span::before { content: '↳'; margin-right: 7px; color: #a78bfa; }
.theory-chapter { padding: 42px 0 10px; }
.theory-chapter + .theory-chapter { border-top: 1px solid rgba(255,255,255,.08); }
.theory-chapter h2 { font-size: clamp(27px, 3vw, 38px) !important; line-height: 1.18; margin: 8px 0 22px !important; }
.theory-chapter h3, .theory-example h3 { font-size: 23px !important; line-height: 1.3; margin: 5px 0 20px !important; }
.theory-eyebrow { color: #f9a8d4; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.theory-steps { list-style: none; counter-reset: steps; padding: 0; margin: 26px 0 32px; }
.theory-steps li { counter-increment: steps; position: relative; padding: 0 0 24px 52px; color: #b7c2d8; font-size: 17px; line-height: 1.7; }
.theory-steps li::before { content: counter(steps); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(167,139,250,.14); border: 1px solid rgba(196,181,253,.28); color: #d8ccff; font-weight: 800; }
.theory-example { margin: 38px -28px; padding: 30px 34px; border-left: 3px solid #5eead4; border-radius: 0 14px 14px 0; background: linear-gradient(100deg,rgba(94,234,212,.09),rgba(94,234,212,.025)); }
.theory-example > b { color: #5eead4; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.theory-example p { margin-bottom: 0 !important; }
.theory-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 24px 0 30px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; }
.theory-metrics div { min-height: 118px; padding: 22px; background: #11131dcc; }
.theory-metrics b,.theory-metrics span { display: block; }
.theory-metrics b { color: #d9d0ff; font-size: 17px; margin-bottom: 9px; }
.theory-metrics span { color: #91a0bd; font-size: 15px; line-height: 1.55; }
.theory-checklist { list-style: none; padding: 0; margin: 22px 0 10px; }
.theory-checklist li { position: relative; padding: 13px 10px 13px 38px; border-bottom: 1px solid rgba(255,255,255,.08); color: #bdc8dc; font-size: 17px; line-height: 1.55; }
.theory-checklist li::before { content: '✓'; position: absolute; left: 7px; color: #5eead4; font-weight: 900; }
.article-content .lesson-actions { max-width: 780px; margin: 48px auto 0 !important; padding-top: 28px !important; }
.article-content .lesson-actions > span { font-size: 13px !important; }
@media (max-width: 700px) {
  .article-content { padding: 28px 19px !important; }
  .article-content .theory-grid article { display: block; }
  .article-content .theory-grid article > b { display: block; margin-bottom: 8px; }
  .theory-example { margin-inline: 0; padding: 24px; }
  .theory-metrics { grid-template-columns: 1fr; }
  .theory-toc span { width: 100%; }
}
