.content-page .site-header {
  position: relative;
  background: var(--forest-deep);
}

.content-page .desktop-nav a[aria-current="page"] {
  color: var(--white);
}

.content-page .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.content-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 92px;
  background: var(--forest);
  color: var(--white);
}

.content-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 68%);
}

.content-hero::after {
  position: absolute;
  top: -180px;
  right: -110px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(216, 255, 114, 0.2);
  border-radius: 50%;
  content: "";
}

.content-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.77rem;
  font-weight: 650;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.3);
}

.content-hero .eyebrow {
  color: var(--lime);
}

.content-hero h1 {
  max-width: 810px;
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 6vw, 5.15rem);
}

.content-lead {
  max-width: 750px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.content-meta {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  font-weight: 650;
}

.content-main {
  padding: 84px 0 112px;
  background: var(--paper);
}

.content-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 230px minmax(0, 800px);
  gap: clamp(48px, 7vw, 92px);
}

.content-toc {
  position: sticky;
  top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.content-toc > strong {
  display: block;
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-toc ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.content-toc a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.content-toc a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.prose {
  min-width: 0;
}

.prose > :first-child {
  margin-top: 0;
}

.prose section {
  scroll-margin-top: 28px;
}

.prose section + section,
.prose > h2:not(:first-child) {
  margin-top: 58px;
  padding-top: 51px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 20px;
  color: var(--forest-deep);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
}

.prose h3 {
  margin-top: 34px;
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 1.3rem;
}

.prose h4 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.prose p,
.prose li,
.prose dd {
  color: var(--ink-soft);
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin-bottom: 20px;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 8px;
}

.prose a:not(.button) {
  color: var(--forest-light);
  font-weight: 650;
}

.prose a:not(.button):hover {
  color: var(--positive);
}

.prose strong {
  color: var(--ink);
}

.prose code {
  padding: 0.08em 0.34em;
  border-radius: 4px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.9em;
}

.intro-card,
.notice-card {
  margin-bottom: 34px;
  padding: 24px 26px;
  border: 1px solid #cbd8d2;
  border-left: 4px solid var(--forest-light);
  border-radius: var(--radius-sm);
  background: #f2f7f4;
}

.intro-card p:last-child,
.notice-card p:last-child,
.notice-card ul:last-child {
  margin-bottom: 0;
}

.notice-card-lime {
  border-color: #d4e5a9;
  border-left-color: #9bc13d;
  background: #f6fbe9;
}

.notice-card-warm {
  border-color: #e7d3ae;
  border-left-color: var(--warning);
  background: #fff8e9;
}

.definition-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.definition-list > div {
  display: grid;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(145px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
}

.definition-list dt {
  color: var(--ink);
  font-weight: 750;
}

.definition-list dd {
  margin: 0;
}

.card-grid {
  display: grid;
  margin: 28px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.content-card h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card-label {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 100px;
  background: var(--lime-soft);
  color: var(--forest);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-list {
  display: grid;
  margin: 28px 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.method-list li {
  position: relative;
  margin: 0;
  padding: 22px 22px 22px 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.method-list span {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--forest);
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 850;
  place-items: center;
}

.method-list strong {
  display: block;
  margin-bottom: 5px;
}

.method-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.score-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  text-align: left;
}

.score-table th,
.score-table td {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.score-table th {
  background: var(--cream);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.score-table td {
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.score-table tr:last-child td {
  border-bottom: 0;
}

.contact-grid {
  display: grid;
  margin: 30px 0 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  min-height: 210px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-direction: column;
}

.contact-card h2 {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  font-size: 1.5rem;
}

.contact-card p {
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.contact-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.support-details {
  padding: 29px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.support-details h2,
.support-details strong {
  color: var(--white);
}

.support-details h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.support-details p,
.support-details li {
  color: rgba(255, 255, 255, 0.7);
}

.support-details a:not(.button) {
  color: var(--lime);
}

.error-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 90px 0;
  background: var(--forest);
  color: var(--white);
  place-items: center;
}

.error-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--lime);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.error-card > p {
  max-width: 580px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.error-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.error-actions .button-secondary:hover {
  border-color: var(--lime);
  background: rgba(216, 255, 114, 0.08);
}

@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .content-toc {
    position: static;
  }

  .content-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .content-hero {
    padding: 67px 0 72px;
  }

  .content-hero::after {
    display: none;
  }

  .content-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.15rem);
  }

  .content-main {
    padding: 64px 0 82px;
  }

  .content-toc ul,
  .card-grid,
  .method-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .prose section + section,
  .prose > h2:not(:first-child) {
    margin-top: 44px;
    padding-top: 39px;
  }

  .intro-card,
  .notice-card,
  .support-details {
    padding: 21px;
  }

  .error-main {
    min-height: calc(100vh - 70px);
    padding: 70px 0;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .button {
    width: 100%;
  }
}

@media print {
  .content-page .site-header,
  .content-page .site-footer,
  .content-toc,
  .button {
    display: none !important;
  }

  .content-hero {
    padding: 0 0 28px;
    background: transparent;
    color: #000;
  }

  .content-hero::before,
  .content-hero::after,
  .breadcrumb {
    display: none;
  }

  .content-hero .eyebrow,
  .content-hero .content-lead,
  .content-meta {
    color: #333;
  }

  .content-main {
    padding: 0;
  }

  .content-layout {
    display: block;
  }

  .prose section + section {
    break-before: auto;
  }
}
