/* The header and footer are the site's shared chrome (/resource-nav.css); the page starts below
   the floating header. */
.setup-main {
  width: min(100% - 2 * var(--gutter), 770px);
  margin: calc(76px + clamp(42px, 6vw, 84px)) auto 56px;
}

.setup-intro h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.setup-intro p {
  max-width: 46ch;
  margin-top: 14px;
  font-size: clamp(16px, 2.4vw, 20px);
}

.setup-hosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
  margin-block: 26px 32px;
}

.setup-host {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  padding: clamp(12px, 2.5vw, 22px);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 12px;
  background: var(--paper);
  text-decoration: none;
}

.setup-host:hover,
.setup-host[aria-current] {
  border-color: var(--accent-ink);
  background: var(--raised);
}

.setup-host strong {
  font-size: clamp(16px, 2.6vw, 23px);
  line-height: 1.2;
}

.setup-host-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(34px, 5vw, 46px);
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--bg);
}

.setup-host-icon svg {
  width: clamp(18px, 2.8vw, 24px);
}

.setup-arrow {
  margin-inline-start: auto;
  color: var(--secondary);
}

.setup-install {
  margin-bottom: 28px;
  padding: clamp(18px, 4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.setup-install h2,
.setup-next h2 {
  font-size: clamp(25px, 3.8vw, 34px);
  text-wrap: initial;
}

.setup-install h2 {
  scroll-margin-top: 20px;
}

.setup-install p {
  margin: 10px 0 14px;
  max-width: 63ch;
}

.setup-install a:not(.key-btn),
.setup-install summary {
  color: var(--link);
}

.setup-open:focus-visible {
  clip-path: none;
}

.setup-install summary {
  width: fit-content;
  padding-block: 8px;
  cursor: pointer;
  text-decoration: underline;
}

.setup-install-steps,
.setup-install-help p,
.setup-steps p {
  font-size: 15px;
}

.setup-copy + .setup-open {
  margin-top: 10px;
}

.setup-install-steps {
  margin-top: 14px;
  padding-inline-start: 20px;
  list-style: decimal;
  color: var(--secondary);
}

.setup-install-steps li + li {
  margin-top: 4px;
}

.setup-shot {
  width: min(100%, 552px);
  margin: 5px 0 10px;
}

.setup-shot--menu {
  width: min(100%, 228px);
}

.setup-shot > a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line-soft);
}

.setup-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.setup-shot figcaption {
  margin-top: 5px;
  font-size: 13px;
}

.setup-shot-marker {
  position: absolute;
  pointer-events: none;
  border: 2px solid var(--link);
  border-radius: 5px;
}

:is(.setup-shot-marker--menu, .setup-shot-marker--url, .setup-shot-marker--create)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  color: var(--link);
  font-size: clamp(12px, 2vw, 20px);
  font-weight: 700;
  line-height: 1;
}

.setup-shot-marker--menu {
  inset: 70% 9% 9% 9%;
}

.setup-shot--form :is(.setup-shot-marker--name, .setup-shot-marker--url, .setup-shot-marker--oauth) {
  left: 4.1%;
  right: 3.7%;
  height: 5.1%;
}

.setup-shot-marker--name { top: 17.1%; }
.setup-shot-marker--url { top: 38.5%; }
.setup-shot-marker--oauth { top: 48.2%; }

.setup-shot-marker--acknowledgement {
  inset: 81.5% auto auto 6%;
  width: 5%;
  height: 3.6%;
}

.setup-shot-marker--create {
  inset: 91.2% 3.7% 3.2% 70.4%;
  border-radius: 100px;
}

.setup-shot-marker--create::after {
  content: "↓";
  top: auto;
  right: 12%;
  bottom: 100%;
  transform: none;
}

.setup-install-help {
  margin-top: 12px;
  padding-top: 5px;
  border-top: 1px solid var(--line-soft);
}

.setup-provider {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.setup-provider svg {
  width: 15px;
  height: 15px;
}

.setup-copy {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.setup-copy code,
.setup-copy p {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.setup-copy code {
  align-self: center;
  font-size: 14px;
}

.setup-copy button {
  flex: none;
  min-height: 44px;
  padding-inline: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.setup-copy button:hover {
  border-color: var(--accent-ink);
}

.setup-next {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.setup-steps {
  counter-reset: setup;
  margin-top: 16px;
}

.setup-steps > li {
  position: relative;
  padding: 12px 0 14px 40px;
  counter-increment: setup;
}

.setup-steps > li::before {
  content: counter(setup);
  display: grid;
  place-items: center;
  position: absolute;
  top: 12px;
  left: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.setup-steps h3 {
  margin-bottom: 4px;
  font-size: 19px;
  text-wrap: initial;
}

.setup-prompt {
  margin-top: 12px;
}

.setup-prompt p {
  flex: 1 1 36ch;
}

.setup-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .setup-arrow {
    display: none;
  }
}
