/* Schooligio blog: an editorial extension of the main site. */
.blog-main {
  color: var(--ink, #24263d);
  background: #fff;
  font-family: var(--font, 'DM Sans', sans-serif);
}
.blog-main h1, .blog-main h2, .blog-main h3, .blog-main h4 {
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  letter-spacing: -.045em;
  color: var(--ink, #24263d);
}
.blog-main :focus-visible {
  outline: 3px solid #806acb;
  outline-offset: 4px;
}
.blog-main [hidden] { display: none !important; }
.blog-nojs-nav { display: none; }
@media (max-width: 1250px) {
  .blog-nojs-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px 24px; border-bottom: 1px solid #eee9f1; background: #fff; color: #51446f; font-size: 14px; font-weight: 700; }
  .blog-nojs-nav a { text-decoration: underline; text-underline-offset: 3px; }
}

/* A quiet introduction leads into the featured story. */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: #faf9f6;
}
.blog-hero::before, .blog-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blog-hero::before {
  width: 300px;
  height: 300px;
  right: -120px;
  top: -150px;
  background: #eee8fa;
}
.blog-hero::after {
  width: 130px;
  height: 130px;
  left: -70px;
  bottom: -65px;
  background: #f8e5d8;
}
.blog-hero-inner {
  position: relative;
  width: min(1280px, calc(100% - 112px));
  margin: 0 auto;
  padding: 80px 0 88px;
  text-align: center;
}
.blog-hero .eyebrow, .blog-library .eyebrow, .blog-related .eyebrow { color: #7666a6; }
.blog-hero h1 {
  max-width: 900px;
  margin: 20px auto 18px;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.08;
}
.blog-hero h1 em { color: #806bc8; font-style: normal; }
.blog-hero-inner > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted, #626476);
  font-size: 18px;
  line-height: 1.75;
}

.blog-featured { padding: 54px 0 0; }
.blog-featured > .blog-featured-card {
  width: min(1280px, calc(100% - 112px));
  margin-left: auto;
  margin-right: auto;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eeebef;
  border-radius: 18px;
  background: #f5f1fb;
}
.blog-featured-media { min-width: 0; min-height: 380px; background: #e8e1f7; }
.blog-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}
.blog-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 62px);
}
.blog-featured-copy h2, .blog-featured-copy h3 {
  max-width: 570px;
  margin: 17px 0 15px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.17;
  font-weight: 800;
}
.blog-featured-copy p {
  max-width: 520px;
  margin: 0 0 25px;
  color: var(--muted, #626476);
  font-size: 16px;
  line-height: 1.75;
}
.blog-featured-copy a:not(.button) {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #c2b2e8;
  text-underline-offset: 5px;
}
.blog-featured-copy a:not(.button):hover { color: #5e4ca9; }

/* Browse controls and card collection. */
.blog-library { padding: 88px 0 110px; }
.blog-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 30px;
}
.blog-library-heading h2, .blog-related h2 {
  margin: 12px 0 0;
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.13;
}
.blog-library-heading p, .blog-related > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted, #626476);
  font-size: 15px;
  line-height: 1.7;
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 30px;
  padding: 23px 0;
  border-top: 1px solid #eae7e9;
  border-bottom: 1px solid #eae7e9;
}
.blog-search-label {
  display: block;
  color: #59576a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
#blog-search {
  display: block;
  width: min(100%, 340px);
  min-width: min(280px, 100%);
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 15px;
  border: 1px solid #ddd9e3;
  border-radius: 9px;
  background: #fff;
  color: #24263d;
  font: 400 15px var(--font, 'DM Sans', sans-serif);
  -webkit-appearance: none;
  appearance: none;
}
#blog-search::placeholder { color: #777383; opacity: 1; }
#blog-search:focus { border-color: #8d77cd; }
.blog-topic-label { display: block; color: #59576a; font-size: 12px; font-weight: 700; line-height: 1.4; }
#blog-topic-select { display: block; width: min(100%, 340px); min-width: 220px; min-height: 48px; margin-top: 7px; padding: 10px 14px; border: 1px solid #ddd9e3; border-radius: 9px; background: #fff; color: #24263d; font: 400 15px var(--font, 'DM Sans', sans-serif); }
.blog-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.blog-filters button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #e5e1e9;
  border-radius: 999px;
  background: #fff;
  color: #514d60;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.blog-filters button:hover { border-color: #c8b9e6; background: #f6f2fb; color: #59458f; }
.blog-filters button[aria-pressed='true'],
.blog-filters button.is-active, .blog-filters button.active {
  border-color: #7764c9;
  background: #eee8f8;
  color: #4f3d87;
}
#blog-result-count {
  min-height: 1.5em;
  margin: 24px 0 18px;
  color: #686575;
  font-size: 13px;
  line-height: 1.5;
}
.blog-grid, .blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eae7eb;
  border-radius: 15px;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.blog-card:hover, .blog-card:focus-within {
  border-color: #d8ccec;
  box-shadow: 0 14px 34px rgba(64, 53, 92, .09);
  transform: translateY(-3px);
}
.blog-card-link { display: flex; height: 100%; flex-direction: column; color: inherit; }
.blog-card-link:focus-visible { outline-offset: -4px; border-radius: 15px; }
.blog-card-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee8f8;
}
.blog-card:nth-child(4n+2) .blog-card-visual { background: #f9e4d9; }
.blog-card:nth-child(4n+3) .blog-card-visual { background: #f8eecf; }
.blog-card:nth-child(4n+4) .blog-card-visual { background: #e4efe5; }
.blog-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.blog-card:hover .blog-card-visual img { transform: scale(1.035); }
.blog-card-category {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: #594985;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(36, 38, 61, .08);
}
.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 25px 25px;
}
.blog-card-meta {
  color: #726d7e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
.blog-card-body h3 {
  margin: 11px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.blog-card-body p {
  margin: 0 0 22px;
  color: #626476;
  font-size: 14px;
  line-height: 1.7;
}
.blog-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #5e4ca9;
  font-size: 13px;
  font-weight: 800;
}
.blog-card-action span { font-size: 17px; }
.blog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 25px;
  border: 1px solid #eee8f2;
  border-radius: 14px;
  background: #faf8fc;
  color: #5c5868;
  line-height: 1.65;
  text-align: center;
}
.blog-pagination, .blog-show-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}
.blog-pagination a, .blog-pagination button, .blog-pagination [aria-current='page'],
.blog-show-more {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #e4dfea;
  border-radius: 8px;
  background: #fff;
  color: #4d475d;
  font: 700 14px var(--font, 'DM Sans', sans-serif);
  line-height: 1.25;
  text-align: center;
}
.blog-pagination a:hover, .blog-pagination button:hover, .blog-show-more:hover {
  border-color: #bca9e1;
  background: #f4effa;
}
.blog-pagination [aria-current='page'] { border-color: #7764c9; background: #eee8f8; color: #4f3d87; }
.blog-show-more { min-width: 148px; cursor: pointer; }

/* Reading page. The body remains a comfortable measure on large screens. */
.blog-article-hero { padding: 58px 0 68px; background: #faf9f6; }
.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 38px;
  color: #6f6a7b;
  font-size: 13px;
  line-height: 1.5;
}
.blog-breadcrumbs a { color: #5e4ca9; text-decoration: underline; text-underline-offset: 3px; }
.blog-breadcrumbs a:hover { color: #3c2d71; }
.blog-article-hero h1 {
  max-width: 970px;
  margin: 16px 0 20px;
  font-size: clamp(39px, 4.8vw, 64px);
  line-height: 1.12;
  font-weight: 800;
}
.blog-article-hero h1 em { color: #806bc8; font-style: normal; }
.blog-article-hero p {
  max-width: 740px;
  margin: 0 0 21px;
  color: #626476;
  font-size: 18px;
  line-height: 1.7;
}
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 18px;
  color: #686475;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.blog-article-image { overflow: hidden; margin: 0; border-radius: 18px; background: #eee8f8; }
img.blog-article-image, .blog-article-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
}
.blog-article-image figcaption { padding: 10px 16px 12px; color: #625d6c; font-size: 13px; line-height: 1.5; }
.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(150px, 200px);
  justify-content: center;
  align-items: start;
  gap: clamp(38px, 6vw, 90px);
  padding-top: 68px;
  padding-bottom: 100px;
}
.blog-article-body { grid-column: 1; min-width: 0; font-size: 17px; line-height: 1.85; color: #444657; overflow-wrap: break-word; }
.blog-article-body > :first-child { margin-top: 0; }
.blog-article-body > :last-child { margin-bottom: 0; }
.blog-article-body p, .blog-article-body ul, .blog-article-body ol { margin: 0 0 1.45em; }
.blog-article-body h2, .blog-article-body h3, .blog-article-body h4 {
  scroll-margin-top: 110px;
  font-weight: 800;
  line-height: 1.25;
}
.blog-article-body h2 { margin: 1.65em 0 .58em; font-size: clamp(28px, 2.7vw, 35px); }
.blog-article-body h3 { margin: 1.5em 0 .55em; font-size: 24px; }
.blog-article-body h4 { margin: 1.4em 0 .5em; font-size: 19px; }
.blog-article-body ul, .blog-article-body ol { padding-left: 1.5em; }
.blog-article-body li { padding-left: .2em; margin: .42em 0; }
.blog-article-body li::marker { color: #8670c6; }
.blog-article-body a { color: #59458f; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.blog-article-body a:hover { color: #382861; }
.blog-article-body strong { color: #24263d; }
.blog-article-body blockquote {
  margin: 2em 0;
  padding: 27px 30px;
  border-left: 4px solid #9b84d6;
  border-radius: 0 12px 12px 0;
  background: #f3eef9;
  color: #403951;
  font-family: var(--display, 'Plus Jakarta Sans', sans-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}
.blog-article-body blockquote > :last-child { margin-bottom: 0; }
.blog-article-body blockquote cite { display: block; margin-top: 14px; color: #6d6380; font: 600 13px var(--font, 'DM Sans', sans-serif); }
.blog-article-body figure { margin: 2em 0; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.blog-image-unavailable { display: block; padding: 16px; border: 1px solid #e4dfea; border-radius: 10px; background: #faf8fc; color: #625d6c; font-size: 14px; line-height: 1.5; }
.blog-article-body figcaption { margin-top: 10px; color: #746f7e; font-size: 13px; line-height: 1.5; }
.blog-article-body hr { height: 1px; margin: 2.5em 0; border: 0; background: #e9e5e9; }
.blog-article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 2em 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.blog-article-body th, .blog-article-body td { min-width: 130px; padding: 13px 16px; border: 1px solid #e6e2e8; text-align: left; vertical-align: top; }
.blog-article-body th { background: #f1ecf8; color: #363247; font-weight: 800; }
.blog-article-body tr:nth-child(even) td { background: #fbfaf8; }
.blog-article-body code { padding: .1em .3em; border-radius: 4px; background: #f2eef6; font-size: .9em; }
.blog-article-body pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 10px; background: #f6f3f7; }
.blog-article-body pre code { padding: 0; background: transparent; }
.blog-share { grid-column: 2; grid-row: 1; position: sticky; top: 112px; min-width: 0; color: #696475; font-size: 13px; font-weight: 700; }
.blog-share > p:not([data-blog-share-status]), .blog-share > h2, .blog-share > h3 { margin: 0 0 12px; font: 800 11px var(--display, 'Plus Jakarta Sans', sans-serif); letter-spacing: .09em; text-transform: uppercase; color: #706a7c; }
.blog-share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-share-links a, .blog-share-links button, .blog-share > button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #e2dde7;
  border-radius: 8px;
  background: #fff;
  color: #5c4e80;
  font: 700 13px var(--font, 'DM Sans', sans-serif);
  line-height: 1.25;
  cursor: pointer;
}
.blog-share-links a:hover, .blog-share-links button:hover, .blog-share > button:hover { background: #f4effa; border-color: #c7b7e4; }
.blog-share-links svg { width: 17px; height: 17px; }
[data-blog-share-status] { display: block; margin-top: 12px; color: #5f596c; font-size: 12px; font-weight: 400; line-height: 1.5; }
.blog-related { padding: 78px 0 100px; background: #faf9f6; }
.blog-related h2 { margin-bottom: 30px; }
.blog-related-grid { gap: 24px; }

@media (max-width: 1100px) {
  .blog-hero-inner, .blog-featured > .blog-featured-card { width: min(1280px, calc(100% - 70px)); }
  .blog-featured-card { grid-template-columns: 1fr 1fr; }
  .blog-featured-media, .blog-featured-media img { min-height: 330px; }
  .blog-grid, .blog-related-grid { gap: 18px; }
}
@media (max-width: 800px) {
  .blog-hero-inner, .blog-featured > .blog-featured-card { width: calc(100% - 48px); }
  .blog-hero-inner { padding: 66px 0 72px; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-media, .blog-featured-media img { min-height: 0; }
  .blog-featured-media img { aspect-ratio: 16 / 9; }
  .blog-featured-copy { padding: 36px; }
  .blog-library { padding: 72px 0 80px; }
  .blog-grid, .blog-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-article-hero { padding: 45px 0 55px; }
  .blog-article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 50px; padding-bottom: 75px; }
  .blog-article-body { grid-column: 1; }
  .blog-share { grid-column: 1; grid-row: auto; position: static; padding-top: 22px; border-top: 1px solid #eae7e9; }
  .blog-related { padding: 65px 0 75px; }
}
@media (max-width: 520px) {
  .blog-hero-inner, .blog-featured > .blog-featured-card { width: calc(100% - 36px); }
  .blog-hero-inner { padding: 52px 0 60px; }
  .blog-hero h1 { font-size: 42px; }
  .blog-hero-inner > p, .blog-article-hero p { font-size: 16px; }
  .blog-featured { padding-top: 30px; }
  .blog-featured-copy { padding: 28px 24px 32px; }
  .blog-featured-copy h2, .blog-featured-copy h3 { font-size: 29px; }
  .blog-featured-copy p { font-size: 15px; }
  .blog-library { padding: 58px 0 70px; }
  .blog-library-heading h2, .blog-related h2 { font-size: 34px; }
  .blog-toolbar { align-items: stretch; }
  .blog-search-label, #blog-search { width: 100%; }
  .blog-topic-label, #blog-topic-select { width: 100%; }
  .blog-filters { gap: 7px; }
  .blog-filters button { padding-left: 13px; padding-right: 13px; }
  .blog-grid, .blog-related-grid { grid-template-columns: 1fr; }
  .blog-card-body { padding: 22px; }
  .blog-article-hero h1 { font-size: 39px; }
  .blog-breadcrumbs { margin-bottom: 28px; }
  .blog-article-layout { padding-top: 40px; padding-bottom: 65px; }
  .blog-article-body { font-size: 16px; line-height: 1.8; }
  .blog-article-body blockquote { padding: 22px; font-size: 17px; }
  .blog-article-body th, .blog-article-body td { padding: 11px 12px; }
  .blog-related { padding: 58px 0 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-main *, .blog-main *::before, .blog-main *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .blog-card:hover, .blog-card:focus-within, .blog-card:hover .blog-card-visual img { transform: none; }
}
