:root {
  --sm-education-measure: 46rem;
  --sm-education-aside: 18rem;
}

.sm-education-hero,
.sm-education-answer,
.sm-education-takeaways,
.sm-education-toc,
.sm-education-content,
.sm-education-howto,
.sm-education-faq,
.sm-education-sources,
.sm-education-related {
  box-sizing: border-box;
  width: 100%;
  color: var(--sm-body);
  font-family: var(--sm-font-body);
  font-size: var(--sm-text-base);
  line-height: 1.65;
}

.sm-education-hero *,
.sm-education-answer *,
.sm-education-takeaways *,
.sm-education-toc *,
.sm-education-content *,
.sm-education-howto *,
.sm-education-faq *,
.sm-education-sources *,
.sm-education-related * {
  box-sizing: border-box;
}

.sm-education-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sm-space-8);
  align-items: center;
  max-width: var(--sm-max-width);
  margin: 0 auto var(--sm-space-8);
  padding: var(--sm-space-10) var(--sm-section-h);
  border-radius: 0 0 var(--sm-radius-lg) var(--sm-radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgb(238 111 78 / 12%), transparent 34%),
    linear-gradient(135deg, var(--sm-linen), var(--sm-white));
}

.sm-education-hero--with-image {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
}

.sm-education-hero__eyebrow,
.sm-education-answer__eyebrow {
  margin: 0 0 var(--sm-space-3);
  color: var(--sm-orange);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sm-education-hero__title {
  max-width: 14ch;
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.sm-education-hero__lede {
  max-width: 42rem;
  margin: var(--sm-space-4) 0 0;
  color: var(--sm-body);
  font-size: var(--sm-text-md);
}

.sm-education-meta {
  margin: var(--sm-space-4) 0 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
}

.sm-education-hero__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--sm-radius-lg);
  box-shadow: var(--sm-shadow-md);
}

.sm-education-hero__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sm-education-answer,
.sm-education-takeaways--standalone,
.sm-education-toc,
.sm-education-content,
.sm-education-howto,
.sm-education-faq,
.sm-education-sources {
  max-width: var(--sm-education-measure);
  margin: 0 auto var(--sm-space-8);
}

.sm-education-answer {
  padding: var(--sm-space-6);
  border: 1px solid var(--sm-border);
  border-left: 4px solid var(--sm-orange);
  border-radius: var(--sm-radius-lg);
  background: var(--sm-linen);
}

.sm-education-answer h2,
.sm-education-takeaways--standalone h2,
.sm-education-howto h2,
.sm-education-faq h2,
.sm-education-sources h2,
.sm-education-related > h2 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.sm-education-answer__who {
  margin: var(--sm-space-3) 0 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
  font-weight: 700;
}

.sm-education-answer__text {
  margin: var(--sm-space-4) 0 0;
  font-size: var(--sm-text-md);
}

.sm-education-takeaways {
  margin-top: var(--sm-space-6);
  padding-top: var(--sm-space-5);
  border-top: 1px solid var(--sm-border);
}

.sm-education-takeaways--standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sm-education-takeaways h3 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-md);
  font-weight: 800;
}

.sm-education-takeaways ul,
.sm-education-sources ul,
.sm-education-howto ol,
.sm-education-toc ol {
  margin: var(--sm-space-4) 0 0;
  padding: 0;
  list-style: none;
}

.sm-education-takeaways li {
  position: relative;
  padding: var(--sm-space-2) 0 var(--sm-space-2) 1.6rem;
}

.sm-education-takeaways li::before {
  position: absolute;
  left: 0;
  color: var(--sm-orange);
  content: "•";
  font-weight: 800;
}

.sm-education-toc {
  padding: var(--sm-space-5);
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  background: var(--sm-white);
}

.sm-education-toc__title {
  margin: 0;
  color: var(--sm-orange);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sm-education-toc ol {
  counter-reset: sm-education-toc;
}

.sm-education-toc li {
  padding-left: 1.75rem;
  text-indent: -1.75rem;
}

.sm-education-toc li + li {
  margin-top: var(--sm-space-2);
}

.sm-education-toc li::before {
  display: inline-block;
  width: 1.75rem;
  color: var(--sm-orange);
  content: counter(sm-education-toc) ".";
  counter-increment: sm-education-toc;
  font-family: var(--sm-font-head);
  font-weight: 800;
  text-indent: 0;
}

.sm-education-toc a {
  color: var(--sm-purple);
  font-size: var(--sm-text-sm);
  font-weight: 700;
  text-decoration: none;
}

.sm-education-toc a:hover,
.sm-education-content a:hover,
.sm-education-sources a:hover {
  color: var(--sm-orange);
}

.sm-education-content > :first-child {
  margin-top: 0;
}

.sm-education-content h2,
.sm-education-content h3,
.sm-education-content h4 {
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: var(--sm-space-10);
}

.sm-education-content h2 {
  margin: var(--sm-space-10) 0 var(--sm-space-3);
  font-size: clamp(25px, 3.2vw, 34px);
}

.sm-education-content h3 {
  margin: var(--sm-space-8) 0 var(--sm-space-2);
  font-size: var(--sm-text-xl);
}

.sm-education-content h4 {
  margin: var(--sm-space-6) 0 var(--sm-space-2);
  font-size: var(--sm-text-md);
}

.sm-education-content p {
  margin: 0 0 var(--sm-space-5);
}

.sm-education-content a,
.sm-education-sources a {
  color: var(--sm-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-education-content ul,
.sm-education-content ol {
  margin: 0 0 var(--sm-space-5);
  padding-left: 1.4rem;
}

.sm-education-content li {
  margin-bottom: var(--sm-space-2);
}

.sm-education-content li::marker {
  color: var(--sm-orange);
}

.sm-education-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sm-radius-md);
}

.sm-education-content figure,
.sm-education-content table {
  margin: var(--sm-space-6) 0;
}

.sm-education-content blockquote {
  margin: var(--sm-space-6) 0;
  padding: var(--sm-space-2) 0 var(--sm-space-2) var(--sm-space-5);
  border-left: 3px solid var(--sm-orange);
}

.sm-education-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sm-text-sm);
}

.sm-education-content th,
.sm-education-content td {
  padding: var(--sm-space-3);
  border-bottom: 1px solid var(--sm-border-lt);
  text-align: left;
  vertical-align: top;
}

.sm-education-content th {
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-weight: 800;
}

/* Mid-article CTA. Sits inside the reading column, unlike the full-bleed band. */
.sm-education-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sm-space-4) var(--sm-space-6);
  align-items: center;
  max-width: var(--sm-education-measure);
  margin: var(--sm-space-8) auto;
  padding: var(--sm-space-5) var(--sm-space-6);
  border-radius: var(--sm-radius-lg);
}

.sm-education-cta--linen {
  border: 1px solid var(--sm-border);
  border-left: 4px solid var(--sm-orange);
  background: var(--sm-linen);
}

.sm-education-cta--purple {
  background: linear-gradient(135deg, var(--sm-purple), var(--sm-purple-deep));
}

.sm-education-cta__title {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-md);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sm-education-cta__text {
  margin: var(--sm-space-2) 0 0;
  color: var(--sm-body);
  font-size: var(--sm-text-sm);
}

.sm-education-cta--purple .sm-education-cta__title {
  color: var(--sm-white);
}

.sm-education-cta--purple .sm-education-cta__text {
  color: var(--sm-on-photo);
}

.sm-education-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sm-space-2);
  align-items: stretch;
  text-align: center;
}

.sm-education-cta__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sm-space-6);
  border-radius: var(--sm-radius-full);
  background: var(--sm-orange);
  color: var(--sm-white);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sm-education-cta__button:hover {
  background: var(--sm-orange-hover);
}

.sm-education-cta__phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--sm-purple);
  font-size: var(--sm-text-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sm-education-cta--purple .sm-education-cta__phone {
  color: var(--sm-white);
}

.sm-education-cta__phone:hover {
  text-decoration: underline;
}

.sm-education-howto ol {
  counter-reset: sm-education-step;
}

.sm-education-howto li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--sm-space-2) var(--sm-space-4);
  padding: var(--sm-space-5) 0;
  border-top: 1px solid var(--sm-border-lt);
}

.sm-education-howto li::before {
  grid-row: 1 / span 2;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sm-linen);
  color: var(--sm-orange);
  content: counter(sm-education-step);
  counter-increment: sm-education-step;
  font-family: var(--sm-font-head);
  font-weight: 800;
}

.sm-education-howto h3 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-md);
  font-weight: 800;
}

.sm-education-howto p {
  margin: 0;
}

.sm-education-faq__list {
  margin-top: var(--sm-space-4);
  border-top: 1px solid var(--sm-border);
}

.sm-education-faq details {
  border-bottom: 1px solid var(--sm-border);
}

.sm-education-faq summary {
  position: relative;
  min-height: 44px;
  padding: var(--sm-space-4) 2.5rem var(--sm-space-4) 0;
  color: var(--sm-purple);
  cursor: pointer;
  font-family: var(--sm-font-head);
  font-weight: 800;
  list-style: none;
}

.sm-education-faq summary::-webkit-details-marker {
  display: none;
}

.sm-education-faq summary span::before,
.sm-education-faq summary span::after {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 1rem;
  height: 2px;
  background: var(--sm-orange);
  content: "";
}

.sm-education-faq summary span::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.sm-education-faq details[open] summary span::after {
  transform: rotate(0);
}

.sm-education-faq details > div {
  padding: 0 var(--sm-space-6) var(--sm-space-5) 0;
}

.sm-education-faq details > div > :last-child {
  margin-bottom: 0;
}

.sm-education-sources li + li {
  margin-top: var(--sm-space-2);
}

.sm-education-related {
  max-width: var(--sm-max-width);
  margin: var(--sm-space-10) auto;
  padding: 0 var(--sm-section-h);
}

.sm-education-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sm-space-5);
  margin-top: var(--sm-space-5);
}

.sm-education-related__card {
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg);
  background: var(--sm-white);
  box-shadow: var(--sm-shadow-sm);
}

.sm-education-related__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.sm-education-related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.sm-education-related__image:hover img {
  transform: scale(1.03);
}

.sm-education-related__body {
  padding: var(--sm-space-5);
}

.sm-education-related__body h3 {
  margin: 0;
  color: var(--sm-purple);
  font-family: var(--sm-font-head);
  font-size: var(--sm-text-lg);
  font-weight: 800;
  line-height: 1.25;
}

.sm-education-related__body h3 a,
.sm-education-related__link {
  color: inherit;
  text-decoration: none;
}

.sm-education-related__body p {
  margin: var(--sm-space-3) 0;
  color: var(--sm-muted);
  font-size: var(--sm-text-sm);
}

.sm-education-related__link {
  color: var(--sm-orange);
  font-weight: 800;
}

@media (min-width: 1100px) {
  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-toc):has(> .bde-shortcode > .sm-education-content) {
    display: grid;
    grid-template-columns: minmax(0, var(--sm-education-measure)) minmax(0, var(--sm-education-aside));
    column-gap: var(--sm-space-10);
    align-items: start;
    justify-content: center;
    max-width: var(--sm-max-width);
    margin-inline: auto;
  }

  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-toc):has(> .bde-shortcode > .sm-education-content) > .bde-shortcode {
    grid-column: 1;
    min-width: 0;
  }

  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-toc):has(> .bde-shortcode > .sm-education-content) > .bde-shortcode:has(> .sm-education-toc) {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: var(--sm-space-8);
    align-self: start;
  }

  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-content) .sm-education-toc,
  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-content) .sm-education-content,
  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-content) .sm-education-howto,
  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-content) .sm-education-faq,
  .breakdance .bde-div:has(> .bde-shortcode > .sm-education-content) .sm-education-sources {
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 860px) {
  .sm-education-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-education-hero--with-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .sm-education-hero__figure {
    order: -1;
  }

  .sm-education-related__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
