@import "reset.css";
@import "mobile-menu.css";
@import "style.css";

.article-main,
.article-page + .article {
  --article-blue: var(--color-blue, #0036A7);
  --article-blue-dark: var(--color-blue-dark, #002b84);
  --article-red: var(--color-red, #D62718);
  --article-green: #079707;
  --article-text: var(--color-dark, #101828);
  --article-muted: var(--color-muted, #475467);
  --article-border: var(--color-border, #E4EAF4);
  --article-soft: var(--color-bg, #F4F7FF);
}

.article-main {
  min-height: 100%;
  background: var(--article-soft);
  color: var(--article-text);
}

.article-hero {
  padding: var(--hero-offset-desktop, 80px) 0 24px;
}

.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 46px;
}

.article-hero__content {
  min-width: 0;
}

.article .article-hero__back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 20px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff3ff;
  color: var(--article-blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.article .article-hero__back:hover,
.article .article-hero__back:focus-visible {
  background: var(--article-blue);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

.article .article-h1 {
  max-width: 860px;
  margin: 0;
  color: var(--article-text);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: left;
  text-wrap: balance;
}

.article-hero__subtitle {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--color-body, #344054);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.article-hero__image {
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: #edf4ff;
  box-shadow: 0 22px 56px rgba(0, 57, 166, 0.13);
}

.article-hero__image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  display: block;
  object-fit: cover;
}

.article-body {
  padding: 18px 0 86px;
}

.article-hero + .article-body {
  margin-top: 0;
}

.article__content {
  width: 100%;
  max-width: 920px;
  padding: 42px 48px;
  margin: 0 auto;
  border: 1.5px solid var(--article-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 43, 30, 0.045) 0, rgba(213, 43, 30, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 18px 44px rgba(0, 57, 166, 0.08);
}

.article__content > *:first-child {
  margin-top: 0 !important;
}

.article h2 {
  margin: 46px 0 18px;
  color: var(--article-text);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
}

.article h3,
.article h4 {
  margin: 34px 0 14px;
  color: var(--article-text);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: balance;
}

.article p,
.article span {
  color: #344054;
  font-size: 17px;
  line-height: 1.72;
}

.article p {
  margin: 0;
}

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

.article a {
  display: inline;
  color: var(--article-blue);
  font-size: inherit;
  line-height: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article a:hover,
.article a:focus-visible {
  color: var(--article-blue-dark);
  text-decoration: none;
}

.chapters {
  padding: 20px 22px;
  margin: 28px 0;
  border: 1.5px solid #dfe7fb;
  border-radius: 18px;
  background: #f4f7ff;
}

.chapters a {
  color: var(--article-blue);
  text-decoration: none;
}

.chapters a:hover {
  color: var(--article-blue-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article .img {
  margin: 34px auto;
  text-align: center;
}

.article .img img,
.article__content > img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.1);
}

.article .PI {
  display: inline-block;
  position: relative;
  font-size: inherit;
  line-height: inherit;
}

.PI img {
  height: 16px;
}

.quote {
  display: block;
  width: 100%;
  margin: 32px 0;
  overflow: visible;
}

.quote blockquote,
.article blockquote {
  position: relative;
  margin: 0;
  padding: 24px 26px;
  border: 1.5px solid #dfe7fb;
  border-left: 4px solid var(--article-blue);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 43, 30, 0.06) 0, rgba(213, 43, 30, 0) 34%),
    #f8fbff;
  color: #344054;
}

.quote blockquote::before {
  display: none;
}

.article blockquote > * {
  position: relative;
  z-index: 1;
}

.article ul,
.article ol {
  margin: 22px 0;
  padding: 0;
  color: #344054;
}

.article ul {
  list-style: none;
}

.article ul li,
.article ol li {
  position: relative;
  margin-top: 12px;
  color: #344054;
  font-size: 17px;
  line-height: 1.65;
}

.article ul li {
  padding-left: 28px;
}

.article ul li::after {
  display: none;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--article-blue);
  box-shadow: 0 0 0 5px #edf4ff;
}

.article ol {
  list-style: none;
  counter-reset: item;
}

.article ol ol,
.article ol ol ol {
  margin: 12px 0 0;
}

.article ol li {
  padding-left: 34px;
}

.article li + li {
  margin-top: 12px;
}

.article ol li::before {
  content: counters(item, ".") ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  min-width: 22px;
  color: var(--article-blue);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.8;
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  margin: 30px 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 18px;
  background: #101828;
}

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

sup {
  vertical-align: super;
  font-size: smaller;
}

sub {
  vertical-align: sub;
  font-size: smaller;
}

@media screen and (max-width: 980px) {
  .article-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-hero__image {
    max-width: 640px;
  }

  .article__content {
    padding: 34px 30px;
  }
}

@media screen and (max-width: 580px) {
  .article-hero {
    padding: var(--hero-offset-mobile, 76px) 0 var(--hero-offset-bottom-mobile, 32px);
  }

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

  .article-hero__subtitle {
    font-size: 15px;
  }

  .article-body {
    padding: 12px 0 58px;
  }

  .article__content {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .article p,
  .article span,
  .article ul li,
  .article ol li {
    font-size: 16px;
  }

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

  .article h3,
  .article h4 {
    font-size: 20px;
  }
}
