.article-page {
  background: #f5f8fc;
}

.article-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.article-page-wrap {
  width: min(100% - 44px, 1120px);
  margin: 28px auto 64px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 16px;
  color: #0057d8;
  background: #eaf2ff;
  border: 1px solid #d4e3f8;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.article-detail {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(6, 43, 102, .11);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 390px);
  align-items: center;
  gap: 30px;
  padding: 34px 38px;
  background:
    radial-gradient(circle at 90% 8%, rgba(55, 165, 31, .12), transparent 28%),
    linear-gradient(120deg, #eef7ff, #ffffff 58%, #f4fbf0);
}

.article-hero time {
  display: inline-flex;
  margin-bottom: 12px;
  color: #4f647d;
  font-size: 13px;
  font-weight: 800;
}

.article-hero h1 {
  max-width: 660px;
  margin: 0 0 14px;
  color: #123b7a;
  font-size: clamp(25px, 2.85vw, 33px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 650px;
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.68;
}

.article-hero img,
.article-hero-graphic {
  width: 100%;
  max-height: 285px;
  padding: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #dce6f1;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(6, 43, 102, .12);
}

.article-hero img {
  object-fit: contain;
}

.article-hero-graphic svg {
  display: block;
  width: 100%;
  height: 249px;
}

.article-hero-no-image {
  grid-template-columns: 1fr;
  background: linear-gradient(120deg, #eef7ff, #ffffff 72%);
}

.article-hero-no-image h1,
.article-hero-no-image p {
  max-width: 860px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 42px 30px 54px;
  color: #1f2d3d;
  font-size: 18px;
  line-height: 1.8;
}

.article-content h2 {
  margin: 28px 0 14px;
  padding-top: 10px;
  border-top: 1px solid #e2edf8;
  color: #172234;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}

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

.article-content h3 {
  margin: 26px 0 12px;
  color: #172234;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
}

.article-content p {
  margin: 0 0 18px;
}

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

.article-content li {
  margin-bottom: 12px;
  padding-left: 6px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content ul li::marker {
  color: #2fa31d;
  font-weight: 800;
}

.article-content ol li::marker {
  color: #062b66;
  font-weight: 800;
}

.article-content a,
.article-context-link {
  color: #005bd8;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 91, 216, .28);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.article-content a:hover,
.article-context-link:hover {
  color: #16870e;
  border-color: rgba(22, 135, 14, .55);
  background: rgba(47, 163, 29, .08);
}

.article-callout {
  margin: 34px 0;
  padding: 22px 24px;
  border: 1px solid #dce8f7;
  border-left: 5px solid #0b63ce;
  border-radius: 8px;
  background: #f7fbff;
  box-shadow: 0 10px 24px rgba(6, 43, 102, .07);
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #062b66;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.article-callout p {
  margin: 0;
}

.article-callout-tip {
  border-left-color: #2fa31d;
  background: #f3fbf1;
}

.article-callout-takeaway {
  border-left-color: #f4b400;
  background: #fffaf0;
}

.article-table-wrap {
  width: 100%;
  margin: 34px 0;
  overflow-x: auto;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(6, 43, 102, .06);
}

.article-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  line-height: 1.55;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid #e4edf7;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: #062b66;
  background: #eef6ff;
  font-weight: 900;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-related {
  margin-top: 42px;
  padding: 30px;
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(6, 43, 102, .08);
}

.article-related h2 {
  margin: 0 0 24px;
  color: #062b66;
  font-size: 28px;
  text-align: center;
}

.article-related-section {
  margin-top: 34px;
}

.article-related-section:first-of-type {
  margin-top: 0;
}

.article-related-section h3 {
  margin: 0 0 16px;
  color: #0b356f;
  font-size: 19px;
}

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

.article-related-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.article-related-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(6, 43, 102, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-related-grid article:hover {
  transform: translateY(-2px);
  border-color: #b9d4f4;
  box-shadow: 0 14px 28px rgba(6, 43, 102, .12);
}

.article-related-grid a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.article-related-grid .article-thumb-img,
.article-related-grid .thumb,
.article-related-grid .store-brand-logo,
.article-related-grid .store-logo,
.article-related-grid .category-icon {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.article-related-grid .store-brand-logo,
.article-related-grid .store-logo,
.article-related-grid .category-icon {
  display: grid;
  place-items: center;
  padding: 18px;
  object-fit: contain;
  background: #f8fbff;
  border-bottom: 1px solid #e4edf7;
  color: #062b66;
  font-weight: 900;
}

.article-related-grid .store-brand-logo {
  display: block;
  width: 100%;
  height: 72px;
  max-width: 120px;
  max-height: 72px;
  margin: 30px auto;
  padding: 8px;
  object-fit: contain;
  object-position: center center;
}

.article-related-grid .article-related-coupon .article-thumb-img {
  display: block;
  width: 100%;
  height: 132px;
  padding: 16px;
  object-fit: contain !important;
  object-position: center center;
  background: #fff;
  border-bottom: 1px solid #e4edf7;
}

.article-related-grid .category-icon svg {
  width: 54px;
  height: 54px;
}

.article-related-grid h3 {
  margin: 14px 14px 10px;
  color: #12233a;
  font-size: 15px;
  line-height: 1.38;
}

.article-related-grid span {
  display: block;
  margin: 14px;
  color: #12233a;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.article-related-grid p {
  margin: 0 14px 16px;
  color: #53657a;
  font-size: 13px;
  font-weight: 700;
}

.article-related-grid time {
  display: block;
  margin: 0 14px 16px;
  color: #68788b;
  font-size: 12px;
}

@media (max-width: 860px) {
  .article-page-wrap {
    width: min(100% - 28px, 1120px);
    margin-top: 18px;
  }

  .article-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .article-hero img {
    max-height: 230px;
  }

  .article-content {
    padding: 32px 20px 40px;
    font-size: 17px;
    line-height: 1.78;
  }

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

  .article-related {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  .article-hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }

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

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

  .article-content h2 {
    margin-top: 28px;
    padding-top: 8px;
    font-size: 19px;
  }

  .article-content h3 {
    font-size: 16px;
  }

  .article-callout {
    padding: 18px;
  }
}

.article-related-grid .article-related-coupon .article-thumb-img,
.article-related-grid .article-related-coupon .store-brand-logo {
  display: block;
  width: calc(100% - 28px);
  height: 110px;
  max-width: none;
  max-height: 110px;
  margin: 14px;
  padding: 10px;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff;
  border: 1px solid #e3edf7;
  border-radius: 8px;
}

.article-related-grid .article-related-coupon .article-thumb-img {
  transform: scale(1.06);
  transform-origin: center center;
}

.article-related-grid .article-related-coupon .store-brand-logo {
  transform: none;
}
