/* Article-specific presentation for the Alipay international traveler guide. */

.article-byline {
  gap: 4px;
}

.article-byline strong {
  color: var(--ctm-forest-dark);
  font-weight: 700;
}

.article-trust p > span {
  font-size: .8125rem;
  line-height: 1.42;
}

.video-card {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--ctm-border);
  border-radius: 16px;
  background: var(--ctm-surface);
  box-shadow: var(--ctm-shadow-panel);
}

.video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ctm-forest-dark);
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card figcaption {
  margin: 0;
  padding: 14px 17px;
  color: var(--ctm-text-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.video-card figcaption a,
.steps a,
.problem-list a,
.source-list a {
  color: var(--ctm-terracotta-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.service-table-wrap {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--ctm-border);
  border-radius: 15px;
  background: var(--ctm-surface);
}

.service-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.service-table th,
.service-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--ctm-border-subtle);
  text-align: left;
  vertical-align: top;
}

.service-table thead th {
  background: var(--ctm-surface-sage);
  color: var(--ctm-forest-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-table th:first-child {
  width: 30%;
}

.service-table tbody th {
  color: var(--ctm-forest-dark);
  font-family: var(--ctm-font-serif);
  font-size: 1.03rem;
  font-weight: 600;
}

.service-table tbody td {
  color: var(--ctm-text-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.service-table tbody tr:last-child th,
.service-table tbody tr:last-child td {
  border-bottom: 0;
}

.fact-row b {
  color: var(--ctm-forest-dark);
}

.fee-grid article > span {
  font-family: var(--ctm-font-serif);
  font-size: 1.04rem;
  font-weight: 700;
}

.source-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  gap: 9px;
}

.source-list li {
  padding: 14px 16px;
  border: 1px solid var(--ctm-border-subtle);
  border-radius: 11px;
  background: var(--ctm-surface);
  color: var(--ctm-text-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.source-list strong {
  color: var(--ctm-forest-dark);
}

@media (max-width: 620px) {
  .article-trust p > span,
  .steps p,
  .mini-note span,
  .check-list li,
  .requirements-list p,
  .payment-options p,
  .best-for,
  .fact-row span,
  .callout p,
  .problem-list details p,
  .tip-grid p,
  .faq-answer p,
  .editorial-note span {
    font-size: .875rem;
  }

  .video-card {
    margin-top: 22px;
    border-radius: 13px;
  }

  .video-card figcaption {
    padding: 13px 14px;
    font-size: .88rem;
  }

  .service-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .service-table,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td {
    display: block;
    width: 100%;
  }

  .service-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .service-table tr {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--ctm-border);
    border-radius: 13px;
    background: var(--ctm-surface);
  }

  .service-table tbody tr:first-child {
    margin-top: 0;
  }

  .service-table tbody th,
  .service-table tbody td {
    padding: 14px 16px;
    border: 0;
  }

  .service-table tbody th {
    border-bottom: 1px solid var(--ctm-border-subtle);
    background: var(--ctm-surface-sage);
    font-size: 1.08rem;
  }

  .service-table tbody td {
    font-size: .92rem;
  }

  .source-list li {
    padding: 14px;
    font-size: .9rem;
  }
}

@media print {
  .video-card__frame {
    display: none;
  }
}
