.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

:where(a, button, summary):focus-visible {
  outline: 3px solid rgba(80, 70, 229, 0.32);
  outline-offset: 3px;
}

section[id], article[id] {
  scroll-margin-top: 100px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #18a06e;
  box-shadow: 0 0 0 4px rgba(24, 160, 110, 0.12);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.topic-links a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 750;
}

.topic-links a:hover {
  border-color: #bbb7ff;
  background: #f4f3ff;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid #d6d3ff;
  border-radius: 50%;
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 28px rgba(37, 33, 105, 0.16);
  cursor: pointer;
  font-size: 1.15rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.guide-content details[open] {
  border-color: #c9c6ff;
  background: #fbfbff;
}

.guide-content details p {
  margin: 12px 0 2px;
}

.provider-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 34px;
}

.provider-choices > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.provider-choices p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

.security-note {
  border-left-color: #107854;
  background: #f3fbf7;
}

.installation-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.installation-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.installation-card.recommended {
  border-color: #bdb9ff;
  background: #fbfbff;
  box-shadow: 0 12px 30px rgba(37, 33, 105, 0.07);
}

.installation-card h3 {
  margin: 8px 0 16px;
}

.installation-card ol {
  padding-left: 20px;
}

.path-label, .availability {
  display: inline-block;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.path-label {
  padding: 4px 9px;
  background: #eceaff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.availability {
  padding: 7px 10px;
  border: 1px dashed #bdb9ff;
}

.download-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

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

.checksum-link {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

@media (max-width: 560px) {
  .provider-choices, .installation-paths { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
