.agent-series-content {
  color: #263238;
  font-size: 17px;
  line-height: 1.85;
}

.darkModel .agent-series-content {
  color: #d9e2e6;
}

.agent-series-kicker {
  color: #087f5b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.agent-series-lead {
  border-left: 4px solid #e8590c;
  color: #495057;
  font-size: 19px;
  margin: 0 0 30px;
  padding: 12px 16px;
}

.darkModel .agent-series-lead {
  color: #cbd5da;
}

.agent-series-content h2,
.agent-series-content h3 {
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 2.2em;
}

.agent-series-content blockquote {
  background: #f1f8f5;
  border-left: 4px solid #0b7285;
  color: #334e55;
  margin: 24px 0;
  padding: 14px 18px;
}

.darkModel .agent-series-content blockquote {
  background: #213438;
  color: #d8e7ea;
}

.agent-series-content pre {
  background: #172126;
  border-radius: 6px;
  color: #e8f1f2;
  overflow-x: auto;
  padding: 18px;
}

.agent-series-content code {
  font-size: 0.92em;
}

.agent-series-content :not(pre) > code {
  background: #edf2f4;
  border-radius: 4px;
  color: #c92a2a;
  padding: 2px 5px;
}

.darkModel .agent-series-content :not(pre) > code {
  background: #2b3b40;
  color: #ff8787;
}

.agent-series-content table {
  border-collapse: collapse;
  display: block;
  margin: 24px 0;
  overflow-x: auto;
  width: 100%;
}

.agent-series-content th,
.agent-series-content td {
  border: 1px solid #d9e2e6;
  padding: 10px 12px;
  text-align: left;
}

.agent-series-content th {
  background: #edf7f3;
}

.darkModel .agent-series-content th {
  background: #263b3e;
}

.agent-series-navigation {
  border-top: 1px solid #dfe6e9;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  padding-top: 22px;
}

.agent-series-navigation a {
  border: 1px solid #d8e2e5;
  border-radius: 6px;
  color: #263238;
  display: flex;
  flex-direction: column;
  min-height: 88px;
  padding: 14px;
}

.agent-series-navigation span {
  color: #087f5b;
  font-size: 13px;
}

.agent-series-navigation strong {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
}

.agent-series-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.agent-series-list li {
  border-bottom: 1px solid #e3e9eb;
  margin: 0;
}

.agent-series-list a {
  align-items: flex-start;
  color: inherit;
  display: grid;
  gap: 16px;
  grid-template-columns: 38px 1fr;
  padding: 18px 4px;
}

.agent-series-list a > span {
  color: #e8590c;
  font-size: 20px;
  font-weight: 700;
}

.agent-series-list strong {
  display: block;
  font-size: 18px;
}

.agent-series-list p {
  color: #66777d;
  margin: 6px 0 0;
}

.agent-index-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 52px 20px 80px;
}

.agent-index-hero {
  background: #f1f8f5;
  border-left: 5px solid #e8590c;
  margin-bottom: 28px;
  padding: 28px 30px;
}

.agent-index-hero span {
  color: #087f5b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agent-index-hero h1 {
  color: #263238;
  font-size: 30px;
  margin: 8px 0;
}

.agent-index-hero p {
  color: #66777d;
  margin: 0 0 14px;
}

.agent-index-hero a {
  color: #087f5b;
  font-weight: 700;
}

.agent-course-posts {
  display: grid;
  gap: 18px;
}

.agent-course-list-card {
  background: #fff;
  border: 1px solid #e3e9eb;
  border-radius: 6px;
  margin: 0;
  min-height: 160px;
  padding: 0;
}

.agent-course-list-card .post-main {
  min-width: 0;
}

.agent-course-list-card .post-content {
  color: #66777d;
  line-height: 1.7;
}

.agent-course-list-card .post-meta a {
  color: #087f5b;
}

.agent-course-chapter h2 {
  border-bottom: 2px solid #e3e9eb;
  color: #263238;
  font-size: 22px;
  margin: 34px 0 0;
  padding-bottom: 10px;
}

.agent-course-summary {
  background: #fff8e6;
  border: 1px solid #f6d365;
  border-radius: 6px;
  color: #6b4f00;
  margin: 22px 0 30px;
  padding: 14px 16px;
}

.agent-archive-month {
  color: #087f5b;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  margin: 16px 0 4px;
}

.agent-archive-item .post-title {
  color: #263238;
}

.agent-series-content .mermaid {
  background: #f7faf9;
  border: 1px solid #d9e8e2;
  border-radius: 6px;
  margin: 24px 0;
  overflow-x: auto;
  padding: 16px;
}

.agent-home {
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(38, 50, 56, 0.08);
  margin: 30px 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.agent-home-intro {
  align-items: flex-end;
  background: linear-gradient(135deg, #f1f8f5 0%, #fff8e6 100%);
  border-bottom: 1px solid #e3e9eb;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 34px 38px 30px;
}

.agent-home-intro-copy {
  min-width: 0;
}

.agent-home-eyebrow,
.agent-home-section-heading > span {
  color: #087f5b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.agent-home-intro h2 {
  font-size: 31px;
  line-height: 1.3;
  margin: 8px 0 10px;
}

.agent-home-intro h2 a {
  color: #263238;
}

.agent-home-intro p {
  color: #495057;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}

.agent-home-stats {
  align-items: center;
  color: #66777d;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px 22px;
  margin-top: 18px;
}

.agent-home-stats strong {
  color: #e8590c;
  font-size: 18px;
}

.agent-home-index-link {
  border: 1px solid #087f5b;
  border-radius: 5px;
  color: #087f5b;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

.agent-home-index-link:hover {
  background: #087f5b;
  color: #fff;
}

.agent-home-recommended,
.agent-home-all {
  padding: 28px 38px 34px;
}

.agent-home-all {
  border-top: 1px solid #e3e9eb;
}

.agent-home-section-heading h3 {
  color: #263238;
  font-size: 23px;
  line-height: 1.4;
  margin: 5px 0 2px;
}

.agent-home-section-heading p {
  color: #66777d;
  font-size: 14px;
  margin: 0 0 18px;
}

.agent-home-recommended > ol,
.agent-home-chapter ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agent-home-recommended > ol {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-home-article {
  border-bottom: 1px solid #e8edef;
  margin: 0;
}

.agent-home-article > a {
  align-items: flex-start;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  padding: 13px 4px;
  transition: background-color 0.2s ease;
}

.agent-home-article > a:hover {
  background: #f7faf9;
}

.agent-home-article-number {
  color: #e8590c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.agent-home-article-body {
  min-width: 0;
}

.agent-home-article-meta {
  align-items: center;
  color: #087f5b;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 8px;
  line-height: 1.4;
}

.agent-home-article-meta time {
  color: #8a989d;
}

.agent-home-article strong {
  color: #263238;
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 3px;
}

.agent-home-article-description {
  color: #66777d;
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 4px;
}

.agent-home-article-arrow {
  color: #9aa7ab;
  font-size: 18px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.agent-home-article > a:hover .agent-home-article-arrow {
  color: #087f5b;
  transform: translateX(3px);
}

.agent-home-article-featured {
  background: #fffaf0;
  border: 1px solid #f6d365;
  border-radius: 6px;
}

.agent-home-article-featured > a {
  padding: 14px 12px;
}

.agent-home-chapter {
  margin-top: 24px;
}

.agent-home-chapter:first-of-type {
  margin-top: 0;
}

.agent-home-chapter h3 {
  border-bottom: 2px solid #e3e9eb;
  color: #263238;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
  padding-bottom: 8px;
}

.darkModel .agent-home {
  background: #213438;
  border-color: #385257;
}

.darkModel .agent-home-intro {
  background: #263b3e;
  border-color: #385257;
}

.darkModel .agent-home-intro h2 a,
.darkModel .agent-home-section-heading h3,
.darkModel .agent-home-article strong,
.darkModel .agent-home-chapter h3 {
  color: #d9e2e6;
}

.darkModel .agent-home-intro p,
.darkModel .agent-home-section-heading p,
.darkModel .agent-home-article-description {
  color: #cbd5da;
}

.darkModel .agent-home-all,
.darkModel .agent-home-article {
  border-color: #385257;
}

.darkModel .agent-home-article > a:hover {
  background: #2b4145;
}

.darkModel .agent-home-article-featured {
  background: #3a3423;
  border-color: #806b31;
}

.darkModel .agent-index-hero,
.darkModel .agent-course-list-card,
.darkModel .agent-series-content .mermaid {
  background: #213438;
  border-color: #385257;
}

.darkModel .agent-index-hero h1,
.darkModel .agent-course-chapter h2,
.darkModel .agent-course-list-card .post-title,
.darkModel .agent-index-hero p,
.darkModel .agent-course-list-card .post-content {
  color: #d9e2e6;
}

@media (max-width: 640px) {
  .agent-index-page {
    padding: 28px 12px 50px;
  }

  .agent-index-hero {
    padding: 22px 18px;
  }

  .agent-index-hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .agent-series-content {
    font-size: 16px;
  }

  .agent-series-lead {
    font-size: 17px;
  }

  .agent-home-intro,
  .agent-home-recommended,
  .agent-home-all {
    padding-left: 18px;
    padding-right: 18px;
  }

  .agent-home-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .agent-home-intro h2 {
    font-size: 25px;
  }

  .agent-home-recommended > ol {
    grid-template-columns: 1fr;
  }

  .agent-home-article > a {
    gap: 9px;
    grid-template-columns: 26px minmax(0, 1fr) 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .agent-home-article-description {
    font-size: 12px;
  }

  .agent-series-navigation {
    grid-template-columns: 1fr;
  }
}
