.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.home-articles {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.home-articles .section-heading {
  margin-bottom: 30px;
}

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-article-grid a {
  position: relative;
  display: flex;
  min-height: 215px;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-article-grid a::after {
  position: absolute;
  width: 105px;
  height: 105px;
  right: -50px;
  bottom: -50px;
  border: 18px solid var(--lime-soft);
  border-radius: 50%;
  content: "";
}

.home-article-grid a:hover {
  border-color: var(--green-700);
  transform: translateY(-4px);
}

.home-article-grid span {
  width: max-content;
  padding: 5px 9px;
  color: var(--green-900);
  background: var(--lime-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.home-article-grid strong,
.home-article-grid small {
  position: relative;
  z-index: 1;
  display: block;
}

.home-article-grid strong {
  margin-top: 20px;
  color: var(--green-950);
  font-size: 22px;
  line-height: 1.3;
}

.home-article-grid small {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.home-articles-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--green-700);
  font-weight: 750;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-current="page"] {
  max-width: 48ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.light-breadcrumbs,
.light-breadcrumbs a {
  color: #dce9e4;
}

.library-hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 78px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(200, 241, 81, 0.18) 0 2px, transparent 3px) 0 0 / 26px 26px,
    linear-gradient(130deg, var(--green-950), #075c4c);
}

.library-hero::after {
  position: absolute;
  width: 390px;
  height: 390px;
  right: -130px;
  bottom: -260px;
  border: 1px solid rgba(200, 241, 81, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(200, 241, 81, 0.04), 0 0 0 96px rgba(200, 241, 81, 0.025);
  content: "";
}

.library-hero .shell {
  position: relative;
  z-index: 1;
}

.library-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.library-hero h1 em {
  color: var(--lime);
  font-style: normal;
}

.library-hero > .shell > p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: #dce9e4;
  font-size: 18px;
}

.library-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.library-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  color: #dce9e4;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.library-stats b {
  color: var(--lime);
  font-size: 18px;
}

.article-library {
  padding: 66px 0 100px;
}

.article-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}

.article-tools .search-box {
  margin: 0;
}

.article-tools > label:not(.search-box) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.article-tools select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line);
  background: #fbfcf8;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}

.article-result-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 2px 18px;
  color: var(--muted);
  font-size: 13px;
}

.article-result-bar p {
  margin: 0;
}

.article-result-bar p:first-child {
  color: var(--green-950);
  font-weight: 850;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  position: relative;
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 7px 25px rgba(5, 45, 40, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--lime));
  content: "";
}

.article-card:hover {
  border-color: #b8c9b8;
  box-shadow: var(--shadow-small);
  transform: translateY(-4px);
}

.article-card-meta,
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.article-card-meta {
  color: var(--muted);
  font-size: 11px;
}

.article-card-meta span {
  padding: 5px 9px;
  color: var(--green-900);
  background: var(--lime-soft);
  border-radius: 999px;
  font-weight: 800;
}

.article-card h2 {
  margin: 22px 0 12px;
  color: var(--green-950);
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.article-card h2 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.article-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.article-card-footer a {
  position: relative;
  z-index: 1;
  color: var(--green-700);
  font-weight: 850;
}

.article-card-footer a span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.article-card:hover .article-card-footer a span {
  transform: translateX(4px);
}

.content-article {
  padding-bottom: 90px;
}

.article-hero {
  position: relative;
  padding: 54px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(200, 241, 81, 0.1) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(200, 241, 81, 0.1) 1px, transparent 1px) 0 0 / 34px 34px,
    #fbfcf8;
}

.article-hero-inner {
  max-width: 930px;
}

.article-hero .section-kicker {
  margin-bottom: 16px;
}

.article-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--green-950);
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.article-deck {
  max-width: 770px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.article-tags span {
  padding: 6px 11px;
  border: 1px solid #cbd8c8;
  background: white;
  border-radius: 999px;
  color: var(--green-800);
  font-size: 11px;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(250px, 1fr);
  align-items: start;
  gap: clamp(42px, 7vw, 86px);
  padding-top: 58px;
}

.article-main > section,
.article-main > aside,
.article-main > nav {
  margin-top: 58px;
}

.article-main > :first-child {
  margin-top: 0;
}

.answer-box {
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid #bad591;
  background: linear-gradient(140deg, var(--lime-soft), #faffec);
  border-radius: var(--radius-lg);
  box-shadow: 8px 9px 0 rgba(7, 62, 53, 0.12);
}

.answer-label {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.answer-box h2,
.article-section-heading h2,
.article-prose h2,
.comparison-section h2,
.checklist h2,
.article-faq h2,
.article-cta h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.answer-box > p:last-child {
  margin: 14px 0 0;
  color: #29433d;
}

.article-prose {
  color: #3e4d49;
  font-size: 17px;
}

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

.article-prose h2 + p {
  margin-top: 18px;
}

.article-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.article-section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.article-section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.article-plan-grid {
  display: grid;
  gap: 15px;
}

.article-plan-card {
  padding: 25px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}

.article-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.article-plan-top > span {
  padding: 6px 10px;
  color: var(--green-900);
  background: var(--lime-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.article-plan-top strong {
  color: var(--green-950);
  font-size: 28px;
  line-height: 1;
  text-align: right;
}

.article-plan-top small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.article-plan-card h3 {
  margin: 18px 0 8px;
  color: var(--green-950);
  font-size: 23px;
  line-height: 1.25;
}

.article-plan-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-plan-benefit {
  margin-top: 13px !important;
  padding: 11px 13px;
  color: #28433c !important;
  background: #f6f8f2;
  border-radius: 9px;
}

.article-plan-card .code-box {
  margin-top: 18px;
}

.article-plan-card .card-actions {
  margin-top: 12px;
}

.comparison-section h2,
.checklist h2,
.article-faq h2 {
  margin-bottom: 22px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}

.comparison-section table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-section th,
.comparison-section td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-section thead th {
  color: white;
  background: var(--green-900);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.comparison-section tbody th {
  color: var(--green-950);
}

.comparison-section tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-section code {
  color: var(--green-800);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.checklist ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist li {
  position: relative;
  min-height: 145px;
  padding: 24px 20px 20px 64px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  counter-increment: checklist;
}

.checklist li::before {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--green-950);
  background: var(--lime);
  border-radius: 9px;
  content: counter(checklist);
  font-weight: 900;
}

.checklist strong,
.checklist span {
  display: block;
}

.checklist strong {
  color: var(--green-950);
  line-height: 1.35;
}

.checklist span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.article-faq details {
  border-top: 1px solid var(--line);
}

.article-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  position: relative;
  padding: 20px 42px 20px 0;
  color: var(--green-950);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary span::before,
.article-faq summary span::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 2px;
  background: var(--green-700);
  content: "";
  transition: transform 0.2s ease;
}

.article-faq summary span::after {
  transform: rotate(90deg);
}

.article-faq details[open] summary span::after {
  transform: rotate(0);
}

.article-faq details p {
  margin: -5px 0 21px;
  padding-right: 45px;
  color: var(--muted);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 4vw, 38px);
  color: white;
  background: var(--green-950);
  border-radius: var(--radius-lg);
}

.article-cta h2 {
  color: white;
}

.article-cta p:last-child {
  margin: 10px 0 0;
  color: #d3e2dc;
  font-size: 14px;
}

.article-cta .button {
  flex: 0 0 auto;
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-neighbors a {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius-sm);
  color: var(--green-950);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.article-neighbors a:last-child {
  text-align: right;
}

.article-neighbors a:hover {
  border-color: var(--green-700);
}

.article-neighbors a span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.article-aside {
  position: relative;
}

.sticky-summary {
  position: sticky;
  top: 112px;
  padding: 25px;
  border: 1px solid #bdd08c;
  background: var(--lime-soft);
  border-radius: var(--radius-md);
}

.summary-number {
  margin: 0;
  color: rgba(7, 62, 53, 0.2);
  font-size: 60px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.sticky-summary h2 {
  margin: 5px 0 15px;
  color: var(--green-950);
  font-size: 21px;
}

.sticky-summary ul {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.sticky-summary li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid rgba(7, 62, 53, 0.1);
  color: #385049;
  font-size: 12px;
}

.sticky-summary li::before {
  position: absolute;
  top: 14px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--green-700);
  border-radius: 50%;
  content: "";
}

.sticky-summary .button {
  width: 100%;
}

@media (max-width: 1000px) {
  .home-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-article-grid a:last-child {
    grid-column: 1 / -1;
  }

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

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

  .article-aside {
    display: none;
  }
}

@media (max-width: 700px) {
  .home-articles {
    padding: 65px 0;
  }

  .home-article-grid {
    grid-template-columns: 1fr;
  }

  .home-article-grid a:last-child {
    grid-column: auto;
  }

  .home-articles-action .button {
    width: 100%;
  }

  .breadcrumbs {
    margin-bottom: 25px;
  }

  .library-hero {
    padding: 45px 0 60px;
  }

  .library-hero h1 {
    font-size: clamp(40px, 13vw, 60px);
  }

  .library-hero > .shell > p:not(.eyebrow) {
    font-size: 15px;
  }

  .library-stats span {
    flex: 1 1 130px;
  }

  .article-library {
    padding: 42px 0 70px;
  }

  .article-tools,
  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .article-result-bar {
    flex-direction: column;
    gap: 4px;
  }

  .article-card {
    min-height: 280px;
  }

  .article-hero {
    padding: 38px 0 52px;
  }

  .article-hero h1 {
    font-size: clamp(37px, 11vw, 55px);
  }

  .article-deck {
    font-size: 16px;
  }

  .article-layout {
    padding-top: 38px;
  }

  .article-main > section,
  .article-main > aside,
  .article-main > nav {
    margin-top: 44px;
  }

  .answer-box {
    border-radius: 20px;
    box-shadow: 6px 7px 0 rgba(7, 62, 53, 0.12);
  }

  .article-section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-section-heading .section-kicker {
    margin-bottom: 0;
  }

  .article-plan-top strong {
    font-size: 24px;
  }

  .article-plan-card .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .checklist ol,
  .article-neighbors {
    grid-template-columns: 1fr;
  }

  .article-neighbors > span {
    display: none;
  }

  .article-neighbors a:last-child {
    text-align: left;
  }

  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .article-cta .button {
    width: 100%;
  }
}

@media print {
  .article-aside,
  .article-neighbors,
  .article-cta,
  .article-tools {
    display: none !important;
  }

  .article-layout {
    display: block;
  }
}
