.nhs-guides-hero {
  padding-bottom: 24px;
}

.nhs-guides-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
  color: #dbeafe;
  font-weight: 600;
}

.nhs-guides-shell {
  margin-top: 28px;
}

.nhs-guides-toc-card {
  padding: 22px;
  margin-bottom: 24px;
}

.nhs-guides-toc-card h2,
.nhs-guides-more-card h2 {
  margin: 0 0 14px;
}

.nhs-guides-toc {
  display: grid;
  gap: 6px;
}

.nhs-guides-toc-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 0;
  color: #27466f;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nhs-guides-toc-number {
  color: var(--nhs-blue, #005eb8);
  font-weight: 800;
  white-space: nowrap;
}

.nhs-guides-toc-link:hover,
.nhs-guides-toc-link:focus-visible,
.nhs-guides-toc-link.is-active {
  color: #0f4c97;
  text-decoration: none;
}

.nhs-guides-toc-link.level-3 {
  font-size: 14px;
  padding-left: 18px;
}

.nhs-guides-toc-text {
  min-width: 0;
}

.nhs-guides-toc-card-top {
  position: static;
}

.nhs-guides-article-card {
  overflow: hidden;
  padding: 22px;
}

.nhs-guides-content {
  color: #24364d;
  font-size: 17px;
  line-height: 1.75;
}

.nhs-guides-content > *:first-child {
  margin-top: 0;
}

.nhs-guides-content > *:last-child {
  margin-bottom: 0;
}

.nhs-guides-content h2,
.nhs-guides-content h3 {
  color: #0b2242;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.nhs-guides-content h2 {
  margin: 34px 0 14px;
  font-size: 30px;
}

.nhs-guides-content h3 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.nhs-guides-content p,
.nhs-guides-content ul,
.nhs-guides-content ol,
.nhs-guides-content table,
.nhs-guides-content figure,
.nhs-guides-content blockquote,
.nhs-guides-content hr {
  margin: 0 0 18px;
}

.nhs-guides-content a {
  color: var(--nhs-blue, #005eb8);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.nhs-guides-content ul,
.nhs-guides-content ol {
  padding-left: 22px;
}

.nhs-guides-table-scroll {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 94, 184, 0.45) rgba(219, 231, 246, 0.9);
}

.nhs-guides-table-scroll table,
.nhs-guides-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dbe7f6;
}

.nhs-guides-table-scroll table {
  margin: 0;
}

.nhs-guides-content th,
.nhs-guides-content td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5eef9;
  text-align: left;
  vertical-align: top;
}

.nhs-guides-content tr:last-child td {
  border-bottom: 0;
}

.nhs-guides-content blockquote {
  padding: 16px 18px;
  border-left: 4px solid #0f4c97;
  background: #f6f9ff;
  border-radius: 0 14px 14px 0;
}

.nhs-guides-content .nhs-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--nhs-blue, #005eb8);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}

.nhs-guides-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  cursor: zoom-in;
  box-shadow: 0 14px 28px rgba(10, 31, 51, 0.14);
}

.nhs-guides-card + .nhs-guides-card {
  margin-top: 16px;
}

.nhs-guides-card-copy h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
}

.nhs-guides-card-copy h2 a {
  color: #0b2242;
  text-decoration: none;
}

.nhs-guides-card-date {
  margin: 0 0 10px;
  color: #5f738f;
  font-weight: 600;
}

.nhs-guides-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--nhs-blue, #005eb8);
  font-weight: 700;
  text-decoration: none;
}

.nhs-guides-more-shell {
  margin-bottom: 40px;
}

.nhs-guides-more-list {
  display: grid;
  gap: 12px;
}

.nhs-guides-more-list a {
  color: var(--nhs-blue, #005eb8);
  font-weight: 600;
  text-decoration: none;
}

.nhs-guides-content p > strong + a,
.nhs-guides-content p > span + a,
.nhs-guides-content p > strong + span + a {
  margin-left: 4px;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 980px) {
}

@media (max-width: 720px) {
  .nhs-guides-shell {
    margin-top: 22px;
  }

  .nhs-guides-toc-card,
  .nhs-guides-article-card {
    padding: 18px;
  }

  .nhs-guides-toc-link {
    gap: 8px;
  }

  .nhs-guides-content {
    font-size: 16px;
  }

  .nhs-guides-content h2 {
    font-size: 26px;
  }

  .nhs-guides-content h3 {
    font-size: 20px;
  }

  .nhs-guides-content th,
  .nhs-guides-content td {
    min-width: 132px;
    padding: 11px 12px;
    font-size: 15px;
  }
}
