/* =====================================================================
   Education — Article header pieces (Figma 10159:14435 group):
     D - Back  (10159:14436): breadcrumb "Back to … > …".
     Article title (10159:14437): big H1 (Axiforma Medium 44/55).
     D - Share (10159:14438): right-aligned "Share" + social icons.
   Locked to the 1240 content area; tokens only; BEM; education- prefixed.
   ===================================================================== */

/* ---- Back breadcrumb (Axiforma Regular 18, muted; '>' is bold) ---- */
.education-back {
  display: flex;
  align-items: center;
  gap: var(--education-back-gap);
  padding-bottom: var(--education-back-pad);
}
.education-back__link {
  display: inline-flex;
  align-items: center;
  gap: var(--education-back-inner-gap);
  font-size: var(--fs-18);
  font-weight: var(--fw-regular);
  line-height: normal;
  color: var(--gray-7);
}
.education-back__sep {
  font-weight: var(--fw-bold);
}

/* ---- Article title (single H1; Axiforma Medium 44/55) ---- */
.education-article__title {
  margin: 0;
  font-size: var(--fs-44);
  font-weight: var(--fw-medium);
  line-height: var(--lh-55);
  color: var(--gray-8);
  word-break: break-word;
}

/* ---- Share row (Axiforma Regular 14; icons 20px, right-aligned) ---- */
.education-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--education-share-gap);
  padding-block: var(--education-share-pad);
}
.education-share__label {
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: normal;
  color: var(--gray-8);
  white-space: nowrap;
}
.education-share__icons {
  display: flex;
  align-items: center;
  gap: var(--education-share-icon-gap);
}
.education-share__item {
  display: block;
}
.education-share__link {
  display: block;
}
.education-share__icon {
  display: block;
  width: var(--education-share-icon-size);
  height: var(--education-share-icon-size);
}

/* =====================================================================
   v2 article chrome: centred head, byline/meta, table of contents,
   end-of-article CTA band, and related-articles cluster. Tokens only.
   ===================================================================== */

/* Breadcrumb trail can wrap on narrow screens. */
.education-back { flex-wrap: wrap; }

/* ---- Centred article header (title + meta + share) ---- */
.education-article__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--education-share-gap, 12px);
  padding-block: clamp(8px, 1.5vw, 16px) clamp(16px, 2.5vw, 28px);
}
.education-article__head .education-article__title { text-align: center; max-width: 22ch; }
.education-article__head .education-share { justify-content: center; padding-block: 0; }

/* ---- Meta row: byline · updated · reading time ---- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: normal;
  color: var(--color-text-muted, var(--gray-7));
}
.article-meta__author { color: var(--gray-8); font-weight: var(--fw-medium); }
.article-meta__dot { color: var(--gray-7); }

/* ---- Table of contents (in-page jump nav) ---- */
.article-toc {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  background: var(--pale-blue);
  padding: clamp(16px, 2vw, 24px);
  margin-block-start: var(--cb-section-pad-top, 28px);
}
.article-toc__title {
  margin: 0 0 12px;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-7);
}
.article-toc__list {
  margin: 0;
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-toc__item { color: var(--gray-8); }
.article-toc__link { color: var(--dusty-blue); text-decoration: none; }
.article-toc__link:hover { text-decoration: underline; }

/* ---- End-of-article CTA band ---- */
.article-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background: var(--pale-blue);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  padding: clamp(24px, 3vw, 36px);
  margin-block-start: var(--cb-section-pad-top, 28px);
}
.article-cta__heading {
  margin: 0;
  font-size: var(--fs-24);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  color: var(--gray-8);
}
.article-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dusty-blue);
  color: #fff;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
}
.article-cta__button:hover { filter: brightness(0.94); }
.article-cta__arrow {
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url(assets/img/education-capsule-arrow.svg) center / contain no-repeat;
  mask: url(assets/img/education-capsule-arrow.svg) center / contain no-repeat;
}

/* ---- Related articles (same-metal cluster) ---- */
.related-articles { margin-block-start: var(--cb-section-pad-top, 28px); }
.related-articles__heading {
  margin: 0 0 16px;
  font-size: var(--fs-24);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--gray-8);
}
.related-articles__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.related-articles__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--gray-8);
  font-size: var(--fs-16);
  text-decoration: none;
}
.related-articles__link:hover .related-articles__label { color: var(--dusty-blue); text-decoration: underline; }
.related-articles__arrow {
  flex: none;
  width: 16px; height: 16px;
  background: var(--dusty-blue);
  -webkit-mask: url(assets/img/education-arrow-chevron.svg) center / contain no-repeat;
  mask: url(assets/img/education-arrow-chevron.svg) center / contain no-repeat;
}
.related-articles__browse {
  display: inline-block;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  color: var(--dusty-blue);
  text-decoration: none;
}
.related-articles__browse:hover { text-decoration: underline; }

/* ---- FAQ accordion (native <details>) ---- */
.article-faq { margin-block-start: var(--cb-section-pad-top, 28px); }
.article-faq__heading {
  margin: 0 0 16px;
  font-size: var(--fs-32);
  font-weight: var(--fw-medium);
  line-height: var(--lh-45);
  color: var(--gray-8);
}
.article-faq__list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-10);
  overflow: hidden;
}
.article-faq__item + .article-faq__item { border-top: 1px solid var(--color-border); }
.article-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.5vw, 28px);
  font-size: var(--fs-18);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--gray-8);
}
.article-faq__q::-webkit-details-marker { display: none; }
.article-faq__icon {
  flex: none;
  position: relative;
  width: 16px; height: 16px;
}
.article-faq__icon::before,
.article-faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--dusty-blue);
}
.article-faq__icon::before { width: 16px; height: 2px; }
.article-faq__icon::after { width: 2px; height: 16px; transition: transform 0.2s ease; }
.article-faq__item[open] .article-faq__icon::after { transform: scaleY(0); }
.article-faq__a {
  padding: 0 clamp(18px, 2.5vw, 28px) clamp(16px, 2vw, 22px);
  font-size: var(--fs-16);
  line-height: var(--lh-25);
  color: var(--color-text-muted, var(--gray-7));
}
.article-faq__a a { color: var(--dusty-blue); text-decoration: underline; }

/* ---- Tablet (600–1023px): article body full-width; TOC stays inline but
   narrows title; related articles drop to single column for readability. ---- */
@media (max-width: 1023.98px) {
  .education-article__title {
    font-size: clamp(32px, 5vw, var(--fs-44));
    line-height: 1.3;
  }
  .education-article__head .education-article__title {
    max-width: 28ch;
  }
  .related-articles__list { grid-template-columns: 1fr; }
  .article-faq__heading { font-size: clamp(26px, 4vw, var(--fs-32)); }
}

/* ---- Mobile (≤767.98px — normalized from 767px block) ---- */
@media (max-width: 767.98px) {
  .education-article__title {
    font-size: clamp(28px, 8vw, var(--fs-44));
    line-height: 1.25;
  }
  .related-articles__list { grid-template-columns: 1fr; }
  .article-faq__heading { font-size: clamp(24px, 6.4vw, var(--fs-32)); }
}

/* ---- Phone (≤599): restore head title max-width — matches main ≤599 ---- */
@media (max-width: 599.98px) {
  .education-article__head .education-article__title {
    max-width: 22ch; /* tablet's 28ch leaked via 1023.98 */
  }
}
