/* NOD install guide (start.html). Loaded after styles.css and pages.css, so the colours, fonts and light or dark theme come from them.
   Without scripts the page is a plain numbered list. With scripts (class "js" on the page) it shows one step at a time. */
.sg [hidden] { display: none !important; }
.page.sg { padding-left: 24px; padding-right: 24px; } /* .page in styles.css zeroes the side padding that .wrap gives */
.sg section { padding: 0; } /* styles.css gives every section 84px of room above and below */
.sg-need { margin: -6px 0 18px; }
.sg-ns { margin: 0 0 20px; }
.sg-jump { margin: 0 0 22px; }
.js .sg-jump { display: none; }
.sg code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--glass); overflow-wrap: anywhere; }

.sg-guide { max-width: 760px; scroll-margin-top: 84px; }
.sg-guide:focus { outline: none; }
.sg-path h2 { margin: 1.4em 0 0.5em; font-size: 1.6rem; }
.js .sg-path { display: none; }
.js .sg-path.on { display: block; }
.js .sg-path > h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The steps. As a list each one has a number badge; one at a time the badge is replaced by the "Step 3 of 8" line. */
.sg-steps { counter-reset: sg; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sg-steps > li { counter-increment: sg; position: relative; padding: 22px 22px 22px 70px; border-radius: var(--radius); }
.sg-steps > li::before { content: counter(sg); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; color: var(--accent); border: 1px solid var(--line); background: var(--glass-strong); }
.js .sg-steps > li { padding: 24px; }
.js .sg-steps > li::before { display: none; }
.sg-h { margin: 0 0 0.55em; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; }
.sg-h:focus { outline: none; }
.sg-steps > li p { margin: 0 0 0.9em; }
.sg-steps > li > :last-child { margin-bottom: 0; }
.sg-sub, .sg-tour, .sg-facts, .sg-asks { margin: 0 0 1em; padding-left: 1.3em; }
.sg-sub li, .sg-tour li, .sg-facts li, .sg-asks li { margin-bottom: 0.6em; }
.sg-asks { list-style: none; padding-left: 0; }
.sg-asks li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass); }
.sg-asks em { display: block; font-style: normal; font-size: 0.92rem; color: var(--muted); margin: 2px 0 4px; }
.sg-stuck { margin-top: 1.1em !important; font-size: 0.95rem; }
.sg-stuck a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.sg-help { margin-top: 1.1em !important; }

/* Download buttons: filled in by site.js (the link, "Download free" or "Coming soon") from assets/config.js */
.sg-dl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; padding: 12px 22px;
  margin: 6px 0 16px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; text-align: center;
  font-weight: 600; box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform 0.2s, background 0.2s; }
.sg-dl b { font-size: 1.12rem; font-weight: 650; }
.sg-dl span { font-size: 0.88rem; font-weight: 500; }
.sg-dl small { font-size: 0.82rem; font-weight: 500; opacity: 0.85; }
.sg-dl code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.sg-dl:hover { background: var(--btn-hover); transform: translateY(-1px); }
.sg-dl[aria-disabled="true"] { background: var(--glass); color: var(--muted); border: 1px solid var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.sg-for > p { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--muted); }

/* Mac step 1 answers */
.sg-fs { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.sg-fs legend { padding: 0; margin: 0 0 8px; font-weight: 650; }
.sg-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--glass); cursor: pointer; }
.sg-opt input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.sg-opt:hover { background: var(--glass-strong); }
.sg-opt:has(input:checked) { border-color: var(--accent); background: var(--glass-strong); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.sg-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sg-err { margin: 6px 0 0; font-weight: 600; color: var(--err); }

/* Progress, the buttons and the switch */
.sg-top { margin-bottom: 14px; scroll-margin-top: 76px; }
.sg-prog { margin: 0 0 8px; font-size: 1.05rem; font-weight: 650; }
.sg-bar { height: 8px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
.sg-on { margin: 10px 0 0; }
.sg-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--accent);
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sg-link:hover { text-decoration-thickness: 2px; }
.sg-nav { display: flex; gap: 12px; margin-top: 18px; }
.sg-nav .btn { min-height: 58px; font-size: 1.08rem; }
.sg-back { min-width: 104px; }
.sg-next { flex: 1 1 auto; }
.sg-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.sg-acts .btn { min-height: 52px; }
.sg .btn svg { width: 20px; height: 20px; flex: none; }

/* Picking the computer, and the note for phones and tablets */
.sg-pick, .sg-phone { margin-bottom: 18px; }
.sg-pick h2, .sg-phone h2 { font-size: 1.6rem; margin-bottom: 0.4em; }
.sg-oses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.sg-os { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 150px; padding: 22px; text-align: left;
  font: inherit; color: var(--text); cursor: pointer; border-radius: var(--radius); }
.sg-os svg { width: 34px; height: 34px; margin-bottom: 8px; color: var(--accent); }
.sg-os b { font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; }
.sg-os span { color: var(--muted); font-size: 0.95rem; }
.sg-os:hover { background: var(--glass-strong); }
.sg-os.rec { border: 2px solid var(--accent); }
.sg-tagline { margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 0.82rem; font-weight: 650;
  background: var(--btn-bg); color: var(--btn-text); }
.sg-phone { padding: 24px; }
.sg-st:empty { display: none; }
.sg-st { margin: 8px 0 0; color: var(--muted); }
.sg-addr { margin: 12px 0 4px; color: var(--muted); }
.sg-addr b { display: block; margin-top: 2px; font-size: 1.1rem; color: var(--text); overflow-wrap: anywhere; user-select: all; }

/* The fixes */
.sg-fixes { max-width: 760px; margin-top: 56px; }
.sg-fixes h2 { margin-bottom: 0.3em; }
.sg-fixgroup h3 { margin: 1.4em 0 0.6em; font-size: 1.2rem; color: var(--accent); }
.sg-fix { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); scroll-margin-top: 84px; }
.sg-fix h4 { margin: 0 0 0.4em; font-size: 1.05rem; line-height: 1.3; }
.sg-fix p { margin: 0 0 0.7em; }
.sg-fix > :last-child { margin-bottom: 0; }
.sg-fix:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }

@media (max-width: 560px) {
  .sg-oses { grid-template-columns: 1fr; }
  .sg-os { min-height: 0; }
  .sg-steps > li, .js .sg-steps > li { padding: 20px 18px; }
  .sg-steps > li { padding-left: 62px; }
  .js .sg-steps > li { padding-left: 18px; }
  .sg-steps > li::before { left: 14px; }
  .sg-h { font-size: 1.32rem; }
  .sg-acts .btn { width: 100%; }
}
@media (min-width: 640px) {
  .sg-next { flex: 0 1 340px; margin-left: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .sg-in { animation: sg-in 0.22s ease-out; }
  @keyframes sg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .sg-bar i { transition: width 0.3s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .sg-dl { transition: none; } .sg-dl:hover { transform: none; } }
