/* The entry stays small; existing tutorial content is revealed on demand. */
.getting-editor-tabs {
  display: flex;
  gap: 8px;
  margin: 0 clamp(22px, 5vw, 75px) 18px;
  border-bottom: 1px solid var(--line);
}
.getting-editor-tabs button {
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  font: inherit;
  cursor: pointer;
}

.getting-editor-tabs button[aria-selected="true"] {
  border-bottom-color: var(--teal);
  color: var(--ink);
  font-weight: 700;
}

.getting-editors [hidden] {
  display: none !important;
}

.getting-quick-admin {
  background: var(--theme-surface);
}

.getting-quick-edit-step {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.getting-quick-edit-step > summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.getting-quick-admin fieldset {
  min-width: 0;
}

.getting-quick-edit-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.getting-quick-admin .input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 16px;
}

.getting-quick-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.getting-quick-save .btn {
  min-height: 44px;
}

.getting-quick-save [role="status"] {
  color: var(--ink);
  font-size: 14px;
}

.getting-editor-tabs button:focus-visible,
.getting-quick-admin summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .getting-quick-admin {
    margin-inline: 16px;
    padding: 16px;
  }
  .getting-quick-edit-links { grid-template-columns: 1fr; }
}

.getting-choice,
.getting-quick,
.getting-version-nav {
  box-sizing: border-box;
  width: min(100%, 860px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  color: var(--ink);
}

.getting-choice {
  container: getting-choice / inline-size;
  width: min(100%, 1200px);
  padding-block: 36px 40px;
}

.getting-choice-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  margin-top: 28px;
}

.getting-choice-layout > * {
  min-width: 0;
}

.getting-choice h1,
.getting-quick h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
}

.getting-choice header > p,
.getting-quick header > p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}

.getting-choice-options {
  display: grid;
  gap: 16px;
  margin: 0;
}

.getting-membership-section {
  margin-top: 8px;
}

.getting-membership-notice {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.getting-membership-notice > strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.getting-membership-notice p {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.75;
}

.getting-membership-notice b {
  color: var(--ink);
  font-weight: 500;
}

.getting-membership-shop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.getting-membership-shop > span {
  color: var(--soft);
}

.getting-membership-shop a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.getting-membership-shop a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.getting-membership-shop svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.getting-plan-entry {
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--teal) 25%, var(--line));
  background: color-mix(in srgb, var(--teal) 3%, var(--theme-surface));
}

.getting-plan-entry > span {
  padding: 4px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--teal) 10%, var(--theme-surface));
  color: var(--teal);
  font-size: 12px;
}

.getting-plan-entry > strong {
  font-size: 18px;
}

.getting-plan-entry > a {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.getting-plan-entry .getting-membership-notice {
  margin-bottom: 4px;
}

.getting-plan-entry .getting-membership-shop {
  margin-top: 4px;
}

.getting-choice-memberships {
  margin-top: 4px;
}

.getting-membership-paid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.getting-membership-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

.getting-membership-button strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.getting-membership-button span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
}

.getting-membership-button svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.getting-membership-button:disabled {
  background: color-mix(in srgb, var(--soft) 5%, var(--theme-surface));
  color: var(--soft);
  cursor: not-allowed;
}

.getting-membership-button.is-paid:is(a, button:enabled) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, var(--theme-surface));
}

.getting-membership-button.is-paid:is(a, button:enabled) span {
  color: var(--teal);
  font-weight: 600;
}

.getting-membership-button.is-paid:is(a, button:enabled):hover {
  background: color-mix(in srgb, var(--teal) 13%, var(--theme-surface));
}

.getting-membership-trial {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.getting-membership-button.is-trial {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  width: 100%;
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.getting-membership-button.is-trial strong {
  font-size: 14px;
}

.getting-membership-button.is-trial span {
  width: auto;
  color: var(--soft);
}

.getting-membership-button.is-trial:hover span {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.getting-membership-section > .getting-membership-shop {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  padding-inline: 4px;
}

.getting-membership-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  z-index: 1;
}

@media (max-width: 480px) {
  .getting-membership-paid {
    gap: 8px;
  }
  .getting-membership-button.is-paid {
    min-height: 96px;
    padding: 12px;
  }
  .getting-membership-button.is-paid strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .getting-membership-button { transition: none; }
}

.getting-membership-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  max-width: none;
  max-height: 85dvh;
  margin: auto;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--ink);
  box-shadow: 0 18px 60px #10171930;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.getting-membership-dialog::backdrop { background: #10171959; }
.getting-membership-dialog header { display: flex; align-items: center; gap: 12px; }
.getting-membership-dialog h2 { flex: 1; margin: 0; font-size: 20px; }
.getting-membership-dialog header button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
.getting-membership-dialog header button:hover { color: var(--teal); }
.getting-membership-dialog header svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.getting-membership-dialog p { color: var(--soft); font-size: 14px; line-height: 1.7; }
.getting-membership-dialog a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); text-underline-offset: 4px; }
.getting-membership-dialog img { display: block; max-width: 100%; max-height: 50dvh; width: auto; height: auto; margin: 16px auto; object-fit: contain; }
.getting-membership-dialog [hidden] { display: none !important; }
.getting-choice-memberships button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.getting-choice-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--theme-surface);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .18s ease, background-color .18s ease;
}

.getting-choice-link.is-quick {
  border-color: var(--teal);
  background: var(--theme-surface-muted);
}

.getting-choice-link strong,
.getting-choice-link > span > span {
  display: block;
}

.getting-choice-link strong {
  margin-bottom: 7px;
  font-size: 24px;
  line-height: 1.3;
}

.getting-choice-link > span > span {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.getting-choice-link svg,
.getting-quick-action svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.getting-choice-link:hover {
  border-color: var(--teal);
  background: var(--theme-hover);
}

.getting-choice-help {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

@container getting-choice (min-width: 780px) {
  .getting-choice-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
  }

  .getting-choice-help {
    padding: 0 0 0 32px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .getting-choice-link {
    padding: 24px;
  }
}

.getting-editor-shared-note {
  margin: 8px 0 16px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.75;
}

.getting-remote {
  box-sizing: border-box;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 24px clamp(20px, 4vw, 40px) 48px;
  color: var(--ink);
}

.getting-remote-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 16px;
  color: var(--soft);
  font-size: 14px;
  text-underline-offset: 4px;
}

.getting-remote h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.getting-remote header p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}

.getting-remote > .markdown-content {
  max-width: 72ch;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.getting-remote .markdown-content img {
  max-width: 100%;
  height: auto;
}

.getting-remote :is(pre, code) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.getting-remote .markdown-content a {
  color: var(--teal);
  text-underline-offset: 4px;
}

.getting-remote a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.getting-remote ::selection {
  background: var(--ink);
  color: var(--theme-surface);
}

.getting-remote-admin .getting-remote-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.getting-version-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px 0;
  font-size: 14px;
}

.getting-version-nav > div {
  display: flex;
  gap: 8px;
}

.getting-version-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--soft);
  text-decoration: none;
}

.getting-version-nav a[aria-current="page"] {
  border-radius: 8px;
  background: var(--theme-surface-muted);
  color: var(--ink);
  font-weight: 700;
}

.getting-version-nav.is-quick {
  width: min(100%, 1200px);
}

.getting-quick {
  container: getting-quick / inline-size;
  width: min(100%, 1200px);
  padding-block: 16px 48px;
}

.getting-quick-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  margin-top: 20px;
}

.getting-quick-layout > * {
  min-width: 0;
}

.getting-quick-reference {
  overflow-wrap: anywhere;
}

.getting-quick-reference .getting-quick-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}

@container getting-quick (min-width: 780px) {
  .getting-quick-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
  }

  .getting-quick-reference {
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }
}

.getting-quick-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.getting-quick-steps > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
}

.getting-quick-number {
  padding-top: 1px;
  color: var(--teal);
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.getting-quick-summary-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.5;
}

.getting-quick-summary-copy > span {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.getting-quick-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.getting-quick-disclosure > summary::-webkit-details-marker {
  display: none;
}

.getting-quick-disclosure > summary svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .18s ease;
}

.getting-quick-disclosure[open] > summary svg {
  transform: rotate(180deg);
}

.getting-quick-expanded {
  margin-block: 6px 12px;
  padding: 18px;
  background: var(--theme-surface);
  overflow-wrap: anywhere;
}

.getting-quick-expanded .markdown-content {
  max-width: 72ch;
  font-size: 15px;
}

.getting-quick-expanded .markdown-content > :first-child {
  margin-top: 0;
}

.getting-quick-expanded .markdown-content h1,
.getting-quick-expanded .markdown-content h2 {
  font-size: 20px;
}

.getting-quick-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-block: 16px;
}

.getting-quick-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 12px;
}

.getting-quick-resource-actions:empty {
  display: none;
}

.getting-quick-resource-actions a,
.getting-quick-resource-actions button,
.getting-quick-action,
.getting-quick-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--theme-surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.getting-quick-action {
  border-color: transparent;
  background: var(--ink);
  color: var(--theme-surface);
}

.getting-quick-extra {
  margin-top: 12px;
}

.getting-quick .getting-plan-entry > p,
.getting-quick .getting-plan-entry > small {
  font-size: 14px;
}

.getting-quick .getting-plan-entry > span {
  font-size: 12px;
}

.getting-quick .getting-plan-entry > a {
  min-height: 44px;
  font-size: 14px;
}

.getting-quick-extra > summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}

.getting-quick-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
}

.getting-choice a:focus-visible,
.getting-version-nav a:focus-visible,
.getting-quick a:focus-visible,
.getting-quick button:focus-visible,
.getting-quick summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.getting-version-nav a:hover,
.getting-quick summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.getting-quick-resource-actions a:hover,
.getting-quick-resource-actions button:hover,
.getting-quick-footer a:hover {
  background: var(--theme-hover);
}

.getting-quick-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.getting-choice ::selection,
.getting-quick ::selection {
  background: var(--ink);
  color: var(--theme-surface);
}

@media (max-width: 600px) {
  .getting-choice {
    padding-block: 24px 32px;
  }

  .getting-choice-link {
    padding: 20px;
  }

  .getting-choice-link strong {
    font-size: 22px;
  }

  .getting-version-nav {
    gap: 8px;
  }

  .getting-version-nav a {
    padding-inline: 6px;
  }

  .getting-quick {
    padding-top: 20px;
  }

  .getting-quick-steps > li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
  }

  .getting-quick-expanded {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .getting-choice-link,
  .getting-quick-disclosure > summary svg {
    transition: none;
  }
}
