/* Blog article — a PORT of the design
   (.local/simoptions.com/Blog-Article.dc.html). Declarations are the design's,
   verbatim, on readable class names, because this is maintained by hand rather
   than regenerated; the two brand hexes resolve through the theme tokens so a
   palette change lands in one place.

   Not here, because no article carries the content: the key-takeaways card,
   the per-article FAQ block, the "Mentioned in this article" rail and the rich
   link-preview popovers. See the note on <ArticleTemplate>. */

.ar { background: #fff; }

/* --- hero ---------------------------------------------------------------- */
.ar-hero { position: relative; overflow: hidden; background: var(--tint-1); }

.ar-hero__rule {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.ar-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.ar-hero__glow--a {
  top: -170px; right: -120px; width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(131, 87, 249, .13), transparent 70%);
}
.ar-hero__glow--b {
  bottom: -200px; left: -140px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(81, 149, 255, .11), transparent 70%);
}
.ar-hero__fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 110px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.ar-hero__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 20px 30px;
}

.ar-crumbs {
  font-size: var(--text-xs);
  color: var(--ink-400);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.ar-crumbs__item { display: inline-flex; align-items: center; gap: 7px; }
.ar-crumbs a { color: var(--ink-400); text-decoration: none; }
.ar-crumbs i { font-size: var(--text-xs); opacity: .5; }
.ar-crumbs__current { color: var(--color-primary); }

.ar-h1 {
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -.6px;
  margin: 0 0 15px;
}

.ar-standfirst {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0 0 22px;
}

.ar-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ar-byline__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tint-3);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ar-byline__text { font-size: var(--text-sm); color: var(--ink-600); }
.ar-byline__text strong { font-weight: 600; color: var(--ink-800); }
.ar-byline__meta { color: var(--ink-400); }

/* --- lead image ---------------------------------------------------------- */
.ar-lead { max-width: 1040px; margin: 0 auto; padding: 24px 20px 0; }
.ar-lead__img { display: block; width: 100%; border-radius: var(--r-xl); }

/* --- body + rail --------------------------------------------------------- */
.ar-sec { padding: 44px 20px; }

.ar-split {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.ar-body { min-width: 0; }
.ar-body h2 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
  margin: 38px 0 14px;
  /* The TOC links jump here; the sticky header must not cover the heading. */
  scroll-margin-top: 100px;
}
.ar-body p, .ar-body li {
  font-size: var(--text-md);
  line-height: 1.78;
  color: var(--ink-700);
}
.ar-body p { margin: 0 0 20px; }
.ar-body a {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1.5px solid #DCCFFB;
  font-weight: 500;
}
.ar-body a:hover { border-bottom-color: var(--color-primary); }
.ar-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); }

.ar-aside { min-height: 100%; }
.ar-rail { display: flex; flex-direction: column; gap: 16px; }

.ar-card {
  background: #fff;
  border: 1px solid var(--line-tinted);
  border-radius: var(--r-xl);
  padding: 20px 22px;
}
.ar-toccard { background: var(--tint-1); }

.ar-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.ar-card__head i { color: var(--color-primary); font-size: var(--text-md); }
.ar-card__head h2 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0;
  color: var(--ink-800);
}

.ar-toc { display: flex; flex-direction: column; gap: 2px; }
.ar-toc a {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: 5px 0;
  color: var(--ink-600);
  text-decoration: none;
}
.ar-toc a:hover { color: var(--color-primary); }

.ar-siderel { display: flex; flex-direction: column; gap: 14px; }
.ar-siderel a { text-decoration: none; color: inherit; }
.ar-siderel__title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-800);
  line-height: 1.45;
}
.ar-siderel__meta {
  display: block;
  font-size: var(--text-2xs);
  color: var(--ink-400);
  margin-top: 3px;
}

/* --- keep reading -------------------------------------------------------- */
.ar-keep { background: var(--tint-1); }
.ar-keep__inner { max-width: 1140px; margin: 0 auto; }
.ar-keep__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.ar-keep__head h2 {
  font-size: var(--text-h3);
  font-weight: 500;
  color: var(--ink-900);
  margin: 0;
}
.ar-keep__head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
}

.ar-rel { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ar-rel__card {
  display: block;
  background: #fff;
  border: 1px solid var(--line-tinted);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.ar-rel__thumb {
  display: block;
  height: 104px;
  background: var(--tint-4) center/cover no-repeat;
}
.ar-rel__body { display: block; padding: 18px 20px 20px; }
.ar-rel__cat {
  display: inline-block;
  font-weight: 600;
  font-size: var(--text-2xs);
  color: var(--color-primary-deep);
  background: var(--tint-2);
  padding: 4px 10px;
  border-radius: var(--r-md);
}
.ar-rel__title {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink-800);
  line-height: 1.38;
  margin: 11px 0 8px;
}
.ar-rel__meta { display: block; font-size: var(--text-xs); color: var(--ink-400); }

@media (min-width: 700px) {
  .ar-rel { grid-template-columns: repeat(2, 1fr); }
  .ar-h1 { font-size: var(--text-h2); }
}

@media (min-width: 1000px) {
  .ar-split { grid-template-columns: 1fr 300px; align-items: stretch; }
  .ar-rel { grid-template-columns: repeat(3, 1fr); }
  .ar-sec { padding: 60px 24px; }
  .ar-h1 { font-size: var(--text-h1); }
  /* The rail follows the reader down the article. */
  .ar-rail { position: sticky; top: 88px; }
}
