.documentation-page {
  background: var(--score-surface);
  color: var(--score-text);
  font-family: var(--score-font);
}

.documentation-page,
.documentation-page * {
  box-sizing: border-box;
}

.documentation-page h2,
.documentation-page h3,
.documentation-page p {
  margin-top: 0;
}

.documentation-start {
  padding: 44px 0;
  background: var(--score-surface);
}

.documentation-start-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-left: 22px;
  border-left: 4px solid var(--score-orange);
}

.documentation-start-inner > div {
  max-width: 760px;
}

.documentation-eyebrow {
  margin-bottom: 9px;
  color: var(--score-orange-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.documentation-start h2,
.documentation-section-heading h2 {
  margin-bottom: 10px;
  color: var(--score-text);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.documentation-start p:last-child,
.documentation-section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--score-body);
  line-height: 1.7;
}

.documentation-primary-link {
  display: inline-flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--score-orange-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.documentation-primary-link:hover {
  transform: translateY(-1px);
  background: #963b00;
  color: #fff;
}

.documentation-primary-link:focus-visible,
.documentation-repository a:focus-visible,
.documentation-link:focus-visible {
  outline: 3px solid var(--score-orange);
  outline-offset: 3px;
}

.documentation-map {
  padding: 48px 0 54px;
  background: var(--score-surface);
}

.documentation-section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

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

.documentation-repository {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(25, 57, 103, 0.12);
  border-top: 3px solid var(--score-blue);
  border-radius: 6px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.documentation-repository:hover,
.documentation-repository:focus-within {
  border-color: rgba(184, 74, 0, 0.35);
  border-top-color: var(--score-orange-dark);
  box-shadow: 0 8px 20px rgba(25, 57, 103, 0.07);
  transform: translateY(-2px);
}

.documentation-repository h3,
.documentation-topic h3 {
  margin-bottom: 8px;
  color: var(--score-text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.documentation-repository p {
  min-height: 76px;
  margin-bottom: 16px;
  color: var(--score-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

.documentation-repository a,
.documentation-link-action {
  color: var(--score-orange-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.documentation-repository a:hover,
.documentation-link:hover .documentation-link-action {
  color: #963b00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.documentation-index {
  padding: 56px 0 72px;
  background: var(--score-surface);
}

.documentation-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--score-border);
}

.documentation-topic-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  color: var(--score-navy-2);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}

.documentation-topic-nav a span {
  color: var(--score-orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.documentation-topic-nav a:hover,
.documentation-topic-nav a:focus-visible {
  border-bottom-color: var(--score-orange);
  color: var(--score-blue);
}

.documentation-topic-grid {
  display: grid;
}

.documentation-topic {
  display: grid;
  grid-template-columns: minmax(245px, 0.72fr) minmax(0, 1.8fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--score-border);
  scroll-margin-top: 24px;
}

.documentation-topic-intro {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.documentation-topic-number {
  flex: 0 0 auto;
  color: var(--score-orange-dark);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.documentation-topic h3 {
  margin: 0 0 8px;
  color: var(--score-text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
}

.documentation-topic-description {
  margin: 0;
  color: var(--score-body);
  font-size: 0.91rem;
  line-height: 1.6;
}

.documentation-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.documentation-link-list--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.documentation-link {
  display: flex;
  min-width: 0;
  min-height: 124px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(25, 57, 103, 0.1);
  border-left: 3px solid var(--score-blue);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.documentation-link:hover {
  border-color: rgba(184, 74, 0, 0.35);
  border-left-color: var(--score-orange-dark);
  box-shadow: 0 8px 20px rgba(25, 57, 103, 0.07);
  transform: translateY(-2px);
}

.documentation-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.documentation-link-copy strong {
  color: var(--score-text);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.documentation-link-copy > span {
  color: var(--score-body);
  font-size: 0.86rem;
  line-height: 1.55;
}

.documentation-link-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--score-orange-dark);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.documentation-link-action > span {
  transition: transform 150ms ease;
}

.documentation-link:hover .documentation-link-action > span {
  transform: translateX(3px);
}

.documentation-link:focus-visible {
  outline: 3px solid var(--score-orange);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .documentation-repository-grid {
    grid-template-columns: 1fr;
  }

  .documentation-repository p {
    min-height: 0;
  }

  .documentation-topic {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
    gap: 22px;
  }

  .documentation-link-list {
    grid-template-columns: 1fr;
  }

  .documentation-link-list--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .documentation-start,
  .documentation-index {
    padding: 36px 0 44px;
  }

  .documentation-start-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-left: 16px;
  }

  .documentation-start h2,
  .documentation-section-heading h2 {
    font-size: 1.5rem;
  }

  .documentation-map {
    padding: 38px 0 42px;
  }

  .documentation-topic-grid {
    grid-template-columns: 1fr;
  }

  .documentation-topic-nav {
    gap: 0 16px;
    margin-bottom: 4px;
  }

  .documentation-topic-nav a {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .documentation-topic {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .documentation-link-list {
    grid-template-columns: 1fr;
  }

  .documentation-link {
    min-height: 0;
  }

  .documentation-link-action {
    margin-top: auto;
  }
}