.study-home-hero .hero-copy h1 {
  font-size: clamp(2.35rem, 4.25vw, 4.3rem);
  line-height: 1.07;
  overflow-wrap: anywhere;
}
.study-home-image {
  overflow: hidden;
  border-radius: 18px;
  background: #e8eddf;
}
.study-home-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.home-topics .service-card-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-topics .service-card-new .text-link,
.home-resource-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}
.home-resources {
  background: #edf0e8;
  padding: 56px max(5%, calc((100vw - 1188px) / 2));
}
.home-resource-grid,
.sw .home-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.home-resource-grid {
  margin-top: 25px;
}
.home-resource-card {
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-resource-card h3 { font-size: 21px; }
.home-faq p { margin: 12px 0 20px; }
.home-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.home-faq summary { font-weight: 700; cursor: pointer; }
.sw a:focus-visible, .sw summary:focus-visible { outline: 2px solid #205a4d; outline-offset: 4px; }
@media (max-width: 700px) {
  .sw .site-header nav { justify-content: flex-start; flex-wrap: wrap; gap: 12px 16px; overflow: visible; }
  .sw .site-header nav a { font-size: 13px; }
  .home-resources { padding: 40px 6%; }
  .home-resource-grid, .sw .home-faq { grid-template-columns: 1fr; }
}

.resources-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 12px 5%;
  background: #e4ebdd;
}
.resources-shortcuts a,
.handbook-links a,
.handbook-source {
  color: #173c35;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.study-handbook {
  background: #edf0e8;
  color: #173c35;
}
.study-handbook header,
.study-handbook article {
  scroll-margin-top: 100px;
}
.study-handbook .section-heading { margin-bottom: 18px; }
.handbook-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 28px;
}
.handbook-lessons {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.handbook-lessons article {
  background: #fff;
  border: 1px solid #dce1d8;
  border-radius: 12px;
  padding: clamp(16px, 4vw, 28px);
}
.handbook-lessons h3 { margin: 0 0 12px; font-size: 1.25rem; }
.handbook-lessons p, .handbook-lessons ol { margin: 0 0 12px; }
.handbook-lessons p:last-child { margin-bottom: 0; }
.handbook-lessons ol { padding-left: 24px; }
.handbook-lessons li + li { margin-top: 8px; }
.handbook-lessons code { overflow-wrap: anywhere; }
.handbook-example { margin: 0 0 14px; padding: 12px 16px; background: #f4f6ee; border-radius: 8px; }
.handbook-example dt { font-weight: 700; }
.handbook-example dd { margin: 0 0 8px; }
.handbook-example dd:last-child { margin-bottom: 0; }
#study-handbook { scroll-margin-top: 100px; }

.sw .site-footer {
  background: #e2eee3;
  color: #173c35;
}
.sw .site-footer p { color: #36564a; }
.sw .site-footer a:not(.brand) {
  color: #184f42;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sw .site-footer a:hover { color: #0a3026; }
.sw a.resource-banner {
  background: #d9ebdf;
  border: 1px solid #aacbb8;
  color: #173c35;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sw a.resource-banner:hover { background: #c9e1d2; }
