/* Long-form article visual refresh.
   One system for every long-form page on the site: the three guides under
   /guias/ and all 31 blog articles. They are the same archetype and share the
   same .article-container / .article-header / .article-content structure, so a
   single stylesheet governs them and reviewing one article validates the rest.
   Scoped with .article-page. */

.article-page {
  background: #f6f8f7;
  color: #17201d;
}

.article-page .header {
  border: 1px solid #e2e8e5;
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.07);
}

.article-page .article-container {
  max-width: 860px;
  padding: 20px 20px 40px;
}

.article-page .article-header {
  margin-bottom: 28px;
  padding: 64px 56px;
  border-radius: 24px;
  background: #075e47;
  text-align: left;
}

.article-page .article-header h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: white;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
}

.article-page .article-header h1 .emoji-icon {
  display: none !important;
}

.article-page .article-header p {
  max-width: 680px;
  margin: 0;
  color: #d8eee6;
  font-size: 18px;
  line-height: 1.65;
}

.article-page .article-header .author-byline {
  margin: 18px 0 0;
  color: #bfe1d5;
  font-size: 13px;
}

.article-page .article-header .author-byline a {
  color: white;
  text-underline-offset: 3px;
}

.article-page .article-content {
  padding: 40px;
  border: 1px solid #e2e8e5;
  border-radius: 18px;
  background: white;
  box-shadow: none;
}

.article-page .article-intro {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid #d6e8e1;
  border-left: 1px solid #d6e8e1;
  border-radius: 14px;
  background: #f4faf7;
  color: #215c49;
  font-size: 17px;
  line-height: 1.7;
}

.article-page .article-section {
  margin-bottom: 40px;
}

.article-page .article-section h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8e5;
  color: #075e47;
  font-size: 28px;
  line-height: 1.25;
}

.article-page .article-section h3 {
  margin: 28px 0 12px;
  color: #075e47;
  font-size: 20px;
}

.article-page .article-section h2 .emoji-icon,
.article-page .article-section h3 .emoji-icon,
.article-page .highlight-box h3 .emoji-icon,
.article-page .related-tools h3 .emoji-icon {
  display: none !important;
}

.article-page .article-section p {
  margin-bottom: 16px;
  color: #3d4a45;
  font-size: 16px;
  line-height: 1.75;
}

/* shared.css zeroes list padding through its `*` reset. */
.article-page .article-section ul,
.article-page .article-section ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-page .article-section li {
  margin-bottom: 10px;
  color: #3d4a45;
  line-height: 1.75;
}

/* Two of the three guides had this as a dark gradient with `color: white`
   inherited by its children. On the lightened panel every colour has to be
   restated, or descendants stay white and become invisible. */
.article-page .highlight-box {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #8bd0b5;
  border-left: 1px solid #8bd0b5;
  border-radius: 14px;
  background: #eaf6f0;
  color: #26332e;
}

.article-page .highlight-box h3,
.article-page .highlight-box .toggle-header h3 {
  margin: 0 0 14px;
  color: #075e47;
  font-size: 18px;
}

.article-page .highlight-box p,
.article-page .highlight-box li,
.article-page .highlight-box strong,
.article-page .highlight-box .toggle-header {
  color: #26332e;
}

.article-page .toggle-icon {
  color: #087a55;
}

.article-page .highlight-box a {
  color: #087a55;
}

.article-page .highlight-box table {
  width: 100%;
  border: 1px solid #b9ddd0;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: white;
}

.article-page .highlight-box th {
  padding: 12px 14px;
  border-bottom: 1px solid #b9ddd0;
  background: #dcefe6;
  color: #075e47;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.article-page .highlight-box td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f0;
  color: #26332e;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.article-page .highlight-box tr:last-child td {
  border-bottom: 0;
}

/* Money columns read down the column, matching the calculator projections. */
.article-page .highlight-box th:not(:first-child),
.article-page .highlight-box td:not(:first-child) {
  text-align: right;
}

/* These used var(--primary-color) (#10b981), the pre-refresh bright green. On
   white it measures ~2.4:1 — off-palette and hard to read — so they move to
   the approved darker greens. */
.article-page .article-section li strong,
.article-page .highlight-box strong,
.article-page .sources-box a,
.article-page .article-section a {
  color: #087a55;
}

.article-page .sources-box {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  background: #f8faf9;
}

.article-page .sources-box h3 {
  margin: 0 0 12px;
  color: #075e47;
  font-size: 20px;
}

.article-page .sources-box p {
  color: #3d4a45;
  line-height: 1.65;
}

.article-page .sources-box ul {
  margin: 0;
  padding-left: 22px;
}

.article-page .sources-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* The original panel was a dark gradient with `color: white` set on the
   container. On the lighter panel that white text became unreadable, so the
   colours are restated here rather than inherited. */
.article-page .related-tools {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid #d6e8e1;
  border-radius: 16px;
  background: #eaf6f0;
  color: #26332e;
  text-align: left;
}

.article-page .related-tools h3 {
  margin: 0 0 12px;
  color: #075e47;
  font-size: 20px;
}

.article-page .related-tools p {
  margin: 0 0 18px;
  color: #3d4a45;
  line-height: 1.65;
}

/* Two article pages use a button grid here instead of a plain list. */
.article-page .related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.article-page .tool-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid #c4ddd4;
  border-radius: 10px;
  background: white;
  box-shadow: none;
  color: #075e47;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.article-page .tool-link:hover {
  border-color: #7fc3aa;
  background: #f7fffb;
}

.article-page .tool-link .emoji-icon {
  display: none !important;
}

.article-page .related-tools ul {
  margin: 0;
  padding-left: 20px;
}

.article-page .related-tools li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-page .related-tools a {
  color: #087a55;
  font-weight: 600;
}

.article-page .related-tools a:hover {
  color: #075e47;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-page .footer {
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 48px 32px;
  border-radius: 18px;
  background: #075e47;
  color: #f7fffb;
}

.article-page .footer p {
  color: #f7fffb;
}

.article-page .footer p img {
  display: none !important;
}

.article-page .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.article-page .footer-links a {
  margin: 0;
  color: #d7f3e7;
  opacity: 1;
}

.article-page .footer-links a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .article-page .article-header {
    padding: 48px 32px;
    border-radius: 20px;
  }

  .article-page .article-content {
    padding: 28px;
  }
}

@media (max-width: 600px) {
  .article-page {
    padding: 8px;
  }

  .article-page .header {
    top: 8px;
  }

  .article-page .article-container {
    padding: 12px 4px 32px;
  }

  .article-page .article-header {
    padding: 36px 20px;
    border-radius: 16px;
  }

  .article-page .article-header h1 {
    font-size: 30px;
  }

  .article-page .article-header p {
    font-size: 16px;
  }

  .article-page .article-content {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .article-page .article-section h2 {
    font-size: 24px;
  }

  .article-page .highlight-box,
  .article-page .related-tools {
    padding: 18px 16px;
    border-radius: 14px;
  }

  /* Wide rate tables scroll inside the box instead of stretching the page. */
  .article-page .highlight-box table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-page .footer {
    margin-top: 48px;
    padding: 32px 18px;
    border-radius: 14px;
  }
}

/* ---------------------------------------------------------------------------
   Blog-article components.
   blog-article.css assumes the old full-page green gradient: white title,
   white byline, translucent borders. On the contained hero those all need
   restating, or the text lands white-on-white.
   --------------------------------------------------------------------------- */

.article-page .article-header {
  border-bottom: 0;
}

.article-page .article-category {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.article-page .article-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: white;
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #bfe1d5;
  font-size: 14px;
}

.article-page .article-meta .emoji-icon,
.article-page .article-content .emoji-icon,
.article-page .related-articles .emoji-icon,
.article-page .author-bio .emoji-icon {
  display: none !important;
}

.article-page .article-content h2 {
  margin: 40px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8e5;
  color: #075e47;
  font-size: 28px;
  line-height: 1.25;
}

.article-page .article-content h2:first-child {
  margin-top: 0;
}

.article-page .article-content h3 {
  margin: 28px 0 12px;
  color: #075e47;
  font-size: 20px;
}

.article-page .article-content p,
.article-page .article-content li {
  color: #3d4a45;
  font-size: 16px;
  line-height: 1.75;
}

/* Was var(--primary-color) (#10b981) on white — about 2.4:1. Inline emphasis
   should not be a colour change anyway; weight carries it. */
.article-page .article-content strong {
  color: #17201d;
  font-weight: 700;
}

.article-page .article-content a {
  color: #087a55;
}

.article-page .article-content ul,
.article-page .article-content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.article-page .example-box {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: #f8faf9;
}

.article-page .example-box h4 {
  margin-bottom: 12px;
  color: #075e47;
  font-size: 17px;
}

.article-page .warning-box {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #ead9a5;
  border-left: 1px solid #ead9a5;
  border-radius: 14px;
  background: #fffbeb;
  color: #5f4d20;
}

.article-page .warning-box h4 {
  color: #7a5b12;
}

.article-page .info-box {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #cfe0f5;
  border-left: 1px solid #cfe0f5;
  border-radius: 14px;
  background: #f2f7fd;
}

.article-page .info-box h4 {
  color: #1d4e89;
}

.article-page .checklist li::before {
  color: #087a55;
}

.article-page .comparison-table {
  width: 100%;
  margin: 24px 0;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.article-page .comparison-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #dce5e1;
  background: #eaf6f0;
  color: #075e47;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.article-page .comparison-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f0;
  color: #26332e;
  font-variant-numeric: tabular-nums;
}

.article-page .comparison-table tr:last-child td {
  border-bottom: 0;
}

/* Flat green, matching the calculator CTAs. */
.article-page .cta-box {
  margin: 32px 0;
  padding: 28px;
  border-radius: 16px;
  background: #075e47;
  box-shadow: none;
}

.article-page .cta-box h3,
.article-page .cta-box p {
  color: white;
}

.article-page .cta-button {
  min-height: 44px;
  border: 1px solid white;
  border-radius: 10px;
  background: white;
  color: #075e47;
  font-weight: 700;
}

.article-page .calculator-cta {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid #d6e8e1;
  border-radius: 16px;
  background: #eaf6f0;
}

.article-page .calculator-cta h3 {
  color: #075e47;
}

.article-page .calculator-cta .cta-button {
  border-color: #087a55;
  background: #087a55;
  color: white;
}

.article-page .author-bio {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid #e2e8e5;
  border-radius: 16px;
  background: #f8faf9;
}

.article-page .author-bio h4 {
  color: #075e47;
}

.article-page .author-bio p {
  color: #5f6f68;
}

.article-page .related-articles {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e2e8e5;
}

.article-page .related-articles h3 {
  margin-bottom: 18px;
  color: #075e47;
  font-size: 22px;
}

.article-page .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.article-page .related-card {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid #dce5e1;
  border-radius: 14px;
  background: white;
  box-shadow: none;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-page .related-card:hover {
  border-color: #7fc3aa;
  box-shadow: 0 10px 26px rgba(7, 94, 71, 0.08);
  transform: translateY(-2px);
}

.article-page .related-card h4 {
  margin-bottom: 8px;
  color: #17201d;
  font-size: 16px;
  line-height: 1.35;
}

.article-page .related-card p {
  margin: 0;
  color: #5f6f68;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .article-page .article-title {
    font-size: 28px;
  }

  .article-page .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

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

/* Remaining pre-refresh bright-green surfaces in blog-article.css. */
.article-page .quick-summary h4 {
  color: #075e47;
}

.article-page .article-table thead {
  background: #eaf6f0;
}

.article-page .article-table thead th {
  color: #075e47;
  font-size: 13px;
  font-weight: 600;
}

.article-page .article-table td {
  color: #26332e;
  font-variant-numeric: tabular-nums;
}
