/* Swift Lab Tutors v14: shared blog and editorial layouts. */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.main-nav a[aria-current="page"] {
  color: var(--teal-dark);
  font-weight: 850;
}

.main-nav a[aria-current="page"]::after {
  right: 0;
}

.button--sun {
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 10px 24px #c8a0192e;
}

.button--sun:hover {
  background: #ffe477;
  box-shadow: 0 14px 28px #c8a0193b;
}

.cta-supporting-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: #d8eee9;
  line-height: 1.7;
}

.blog-index-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  background:
    radial-gradient(circle at 88% 8%, #ffd95a52, transparent 27%),
    linear-gradient(145deg, var(--mint-light), var(--paper) 67%);
}

.blog-index-hero::after {
  content: "";
  position: absolute;
  right: -125px;
  bottom: -175px;
  width: 380px;
  height: 380px;
  border: 70px solid #0b796f0d;
  border-radius: 50%;
  pointer-events: none;
}

.blog-index-hero .shell {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-index-hero h1 {
  max-width: 900px;
  margin: 15px 0 25px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.01;
  letter-spacing: -.052em;
}

.blog-index-hero > .shell > p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.blog-cluster-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.blog-cluster-nav a {
  padding: 10px 16px;
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 7px 18px #10263c0b;
}

.blog-cluster-nav a:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.content-hubs {
  padding: 96px 0 104px;
  background: #fff;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.hub-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, #f4fbf8, #fffdf8);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.hub-card:hover {
  border-color: #8ccfc5;
  box-shadow: 0 20px 48px #10263c14;
  transform: translateY(-4px);
}

.hub-card > span,
.blog-card > span,
.blog-list-heading > span {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 850;
}

.hub-card > strong {
  max-width: 520px;
  margin-top: 16px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.18;
}

.hub-card > p {
  max-width: 560px;
  margin: 15px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hub-card > small {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.blog-list-section {
  padding: 95px 0 102px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.blog-list-section:nth-of-type(even) {
  background: #f0faf7;
}

.blog-list-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 30px;
  align-items: end;
  margin-bottom: 38px;
}

.blog-list-heading > span {
  grid-column: 1 / -1;
}

.blog-list-heading h2 {
  margin: 0;
  font-size: clamp(35px, 4.5vw, 55px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.blog-list-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 30px #10263c08;
}

.blog-card h2 {
  margin: 15px 0 0;
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.28;
}

.blog-card h2 a:hover {
  color: var(--teal-dark);
}

.blog-card > p {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.blog-card-link {
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.editorial-strip {
  padding: 84px 0;
  background: #fff;
}

.editorial-strip > .shell {
  display: flex;
  gap: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 43px 46px;
  background: #f7f3e9;
  border: 1px solid #e9e0ca;
  border-radius: 24px;
}

.editorial-strip h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 3.6vw, 45px);
  line-height: 1.07;
  letter-spacing: -.04em;
}

.editorial-strip p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.blog-article-hero .seo-hero-grid {
  align-items: start;
}

.blog-article-hero .seo-check-card {
  margin-top: 48px;
}

.article-note {
  margin-bottom: 50px;
  padding: 22px 24px;
  background: var(--mint-light);
  border: 1px solid #d5eae4;
  border-left: 5px solid var(--teal);
  border-radius: 14px;
}

.article-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 13px;
}

.article-note p {
  font-size: 14px;
  line-height: 1.7;
}

.seo-side-nav .side-nav-service {
  color: var(--ink);
  background: var(--sun);
  border-top-color: #e8c94f;
  font-weight: 850;
}

.seo-side-nav .side-nav-service:hover {
  background: #ffe477;
}

.editorial-hero > .shell {
  max-width: 980px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}

.editorial-hero h1 {
  max-width: 850px;
}

.editorial-hero > .shell > p {
  max-width: 780px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.seo-article-body a:not(.button) {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-strip > .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 780px) {
  .blog-index-hero {
    padding: 57px 0 67px;
  }

  .blog-index-hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .blog-index-hero > .shell > p,
  .editorial-hero > .shell > p {
    font-size: 16px;
  }

  .content-hubs,
  .blog-list-section {
    padding: 74px 0 80px;
  }

  .hub-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hub-card,
  .blog-card {
    min-height: 0;
  }

  .blog-list-heading {
    grid-template-columns: 1fr;
  }

  .blog-list-heading > p {
    margin-top: 5px;
  }

  .editorial-strip {
    padding: 70px 0;
  }

  .editorial-strip > .shell {
    padding: 33px 27px;
  }

  .editorial-strip .button {
    width: 100%;
  }

  .blog-article-hero .seo-check-card {
    margin-top: 0;
  }

  .editorial-hero > .shell {
    max-width: none;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .blog-cluster-nav a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .hub-card,
  .blog-card {
    padding: 24px 21px;
  }

  .hub-card > strong {
    font-size: 25px;
  }
}

/* Article lists use visible, brand-consistent markers. */
body.seo-page .seo-article-body ul,
body.seo-page .seo-article-body ol {
  margin: 22px 0 28px;
  padding-left: 1.45rem;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

body.seo-page .seo-article-body ul {
  list-style: disc outside;
}

body.seo-page .seo-article-body ol {
  list-style: decimal outside;
}

body.seo-page .seo-article-body li {
  display: list-item;
  padding-left: .3rem;
}

body.seo-page .seo-article-body li + li {
  margin-top: 10px;
}

body.seo-page .seo-article-body li::marker {
  color: var(--teal);
  font-weight: 800;
}

/* Each content list starts with a short sentence that explains its purpose. */
body.seo-page .seo-article-body .article-list-intro {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.65;
}

body.seo-page .seo-article-body .article-list-intro + ul,
body.seo-page .seo-article-body .article-list-intro + ol {
  margin-top: 0;
}

@media (max-width: 780px) {
  body.seo-page .seo-article-body ul,
  body.seo-page .seo-article-body ol {
    margin: 18px 0 24px;
    padding-left: 1.3rem;
  }
}
