.main-article-container {
  background-color: rgb(var(--color-background));
}
.main-article__title {
  padding-block-end: 20px;
}
.main-article__cover-image {
  aspect-ratio: var(--aspect-ratio);
  margin-block-end: 20px;
  overflow: hidden;
  border-radius: var(--border-radius);
}
.main-article__cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-article__info {
  display: flex;
  gap: 10px;
  padding-block-end: 20px;
  margin-block-end: 20px;
  color: rgb(var(--color-light-text));
  border-block-end: 1px solid rgb(221 221 221 / 100%);
}
.main-article__button-back {
  padding-block-end: 40px;
}
.main-article__button-back svg {
  transform: rotate(90deg);
}
.main-article__content {
  padding-block: 40px;
}
.main-article__comment-title {
  padding-block: 40px;
}
.main-article__comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-block-end: 40px;
}
.main-article__comment-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.main-article__comment-info {
  display: flex;
  gap: 52px;
  justify-content: end;
}
.main-article__comment-fields {
  display: flex;
  gap: 20px;
}
.main-article .text-area + .field__label {
  inset-block-start: 20px;
}
.main-article__share {
  padding-block: 40px 80px;
}
.main-article__comment-submit {
  display: flex;
  justify-content: center;
}
.main-article__comment-form {
  padding-block-start: 40px;
}
.main-article__comment-form-title {
  margin-block-end: 40px;
}
.main-article__comment-tip {
  padding-block: 40px;
}
.main-article .field__info {
  padding-block-end: 40px;
}
@media (max-width: 959px) {
  .main-article__content {
    margin-block-end: 20px;
  }

  .main-article__share {
    margin-block-end: 40px;
  }

  .main-article__comment-title {
    margin-block-end: 20px;
  }

  .main-article__comment-content {
    padding: 0;
  }

  .main-article__comment-form-title {
    margin-block-end: 20px;
  }

  .main-article__comment-fields {
    display: block;
  }

  .main-article__comment-tip {
    padding-block-start: 20px;
  }
}

/* ------------------------------------------------------------------
   Clover editorial article styling.

   The article body is generated by `scripts/shopline-sync-blog.mjs` as
   semantic HTML with `cg-` classes, so all presentation lives here and can be
   changed without republishing content. Explicit rgba throughout: the brand
   tokens are comma-separated, so `rgb(var(--token) / a)` is invalid and gets
   dropped silently.
   ------------------------------------------------------------------ */

/* Readable measure. Long lines are the single biggest readability problem on
   a full-width article template. */
.main-article__content {
  color: rgba(31, 42, 68, 0.92);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-inline: auto;
  max-width: 46rem;
}

.main-article__content > h2 {
  border-top: 1px solid rgba(4, 51, 130, 0.12);
  color: rgba(4, 51, 130, 1);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 2.75rem 0 1rem;
  padding-top: 1.75rem;
}

.main-article__content > p { margin: 0 0 1.15rem; }
.main-article__content ul,
.main-article__content ol { margin: 0 0 1.35rem; padding-left: 1.35rem; }
.main-article__content li { margin-bottom: 0.55rem; }

/* Lede: the excerpt, set larger to open the piece. */
.cg-lede {
  color: rgba(31, 42, 68, 0.78);
  font-size: 1.1875rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.cg-quick-answer {
  background: rgba(18, 89, 210, 0.06);
  border-left: 4px solid rgba(18, 89, 210, 1);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
}

.cg-quick-answer__label {
  color: rgba(4, 51, 130, 1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.cg-quick-answer p:last-child { margin: 0; }

/* Key facts: 4-up figure strip that frames the piece. */
.cg-keyfacts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: rgba(4, 51, 130, 0.12);
  border: 1px solid rgba(4, 51, 130, 0.12);
  border-radius: 0.75rem;
  margin: 2rem 0;
  overflow: hidden;
}

.cg-keyfacts__item { background: #fff; padding: 1rem 1.1rem; }

.cg-keyfacts dt {
  color: rgba(31, 42, 68, 0.6);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cg-keyfacts dd {
  color: rgba(4, 51, 130, 1);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.25rem 0 0;
}

/* Comparison tables. Wide content scrolls in its own container so the page
   body never scrolls sideways on mobile. */
.cg-figure { margin: 2rem 0; }
.cg-table-scroll {
  border: 1px solid rgba(4, 51, 130, 0.14);
  border-radius: 0.75rem;
  overflow-x: auto;
}

.cg-table { border-collapse: collapse; font-size: 0.9375rem; width: 100%; }
.cg-table th {
  background: rgba(4, 51, 130, 1);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.cg-table td {
  border-bottom: 1px solid rgba(4, 51, 130, 0.09);
  padding: 0.7rem 0.85rem;
  vertical-align: top;
}

.cg-table tbody tr:nth-child(even) { background: rgba(4, 51, 130, 0.035); }
.cg-table td.is-highlight {
  color: rgba(18, 89, 210, 1);
  font-weight: 700;
  white-space: nowrap;
}

.cg-figure figcaption {
  color: rgba(31, 42, 68, 0.65);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-top: 0.65rem;
}

/* Watch-out: a costly, non-obvious catch. Amber so it reads differently from
   the azure quick answer. */
.cg-watchout {
  background: rgba(244, 185, 66, 0.12);
  border-left: 4px solid rgba(244, 185, 66, 1);
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 2rem 0;
  padding: 1.15rem 1.4rem;
}

.cg-watchout__title {
  color: rgba(4, 51, 130, 1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

.cg-watchout__body { margin: 0; }

.main-article__content blockquote {
  border-left: 3px solid rgba(18, 89, 210, 0.45);
  color: rgba(4, 51, 130, 1);
  font-size: 1.1rem;
  font-style: italic;
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
}

.main-article__content blockquote cite {
  color: rgba(31, 42, 68, 0.6);
  display: block;
  font-size: 0.875rem;
  font-style: normal;
  margin-top: 0.5rem;
}

/* FAQ accordions. <details>, so they open without JavaScript and stay
   crawlable. Optional depth only: compliance and conditional information is
   never collapsed. */
.cg-faq {
  border-bottom: 1px solid rgba(4, 51, 130, 0.12);
}

.cg-faq summary {
  color: rgba(4, 51, 130, 1);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 0.95rem 2rem 0.95rem 0;
  position: relative;
}

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

.cg-faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.cg-faq[open] summary::after { content: "\2212"; }
.cg-faq summary:focus-visible { outline: 2px solid rgba(18, 89, 210, 0.55); outline-offset: 2px; }
.cg-faq__body { padding: 0 0 1.1rem; }
.cg-faq__body p { margin: 0; }

.cg-author {
  border-top: 1px solid rgba(4, 51, 130, 0.12);
  color: rgba(31, 42, 68, 0.72);
  display: block;
  font-size: 0.9375rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

@media (max-width: 48rem) {
  .main-article__content { font-size: 1rem; }
  .cg-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
