/* Sterenn OS website. Colors come from the logo and the default theme. */

/* Inter (SIL Open Font License, fonts/OFL.txt), served with the site so the
   text looks the same on every system. The latin-ext file only loads for
   the characters it holds. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #050a1a;
  --bg-raised: #08102a;
  --surface: #0d1630;
  --card: #0a1330;
  --border: #1c2a52;
  --border-soft: rgb(127 170 255 / .14);
  --border-strong: rgb(127 170 255 / .3);
  --text: #eef5ff;
  --muted: #a3b5d8;
  --accent: #4f8dff;
  --accent-strong: #2f6bff;
  --accent-light: #8fc4ff;
  --radius: 14px;
  --radius-large: 14px;
  --header: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16.5px/1.65 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-light); text-underline-offset: .18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

h1, h2, h3 { text-wrap: balance; }

code { font-family: var(--mono); font-size: .9em; }
kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: 500 .85em var(--font);
  white-space: nowrap;
}

/* Keyboard and screen reader users can jump over the top bar */
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus { transform: none; color: #fff; }

/* Top bar: stays at the top, frosted glass like the COSMIC panel */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgb(5 10 26 / .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.top {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1200px;
  height: var(--header);
  margin: 0 auto;
  padding: 0 24px;
}

.top a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}

.top .links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.top .text {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}

.top .text:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.top .text[aria-current] { color: var(--text); }

.top .tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Icon buttons in the top bar: language menu, GitHub, menu */
.top .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .04em;
  transition: color .15s, background-color .15s;
}

.top .icon:hover,
.top details[open] > .icon {
  color: var(--text);
  background: rgb(255 255 255 / .08);
}

.top .button.small { margin-left: 6px; }

/* Language and site menus: native <details>, so they work without
   JavaScript */
.top details { position: relative; }

.top summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.top summary::-webkit-details-marker { display: none; }

.top details ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(0 0 0 / .5);
}

.top details li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.top details li a:hover,
.top details li a:focus-visible { background: rgb(255 255 255 / .08); }

.top details li a[aria-current] { color: var(--accent-light); }

/* The site menu only shows when the links do not fit */
.menu { display: none; }

@media (max-width: 880px) {
  .top { gap: 12px; }
  .top .links { display: none; }
  .menu { display: block; }
}

@media (max-width: 560px) {
  :root { --header: 58px; }
  .top { padding: 0 10px 0 16px; }
  .top .tools { gap: 0; }
  .top .icon > span { display: none; }
  .top .github { display: none; }
}

@media (max-width: 380px) {
  .brand .name { display: none; }
}

/* Buttons: compact, flat, slightly rounded */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 10px;
  background: rgb(255 255 255 / .04);
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}

.button:hover {
  border-color: rgb(255 255 255 / .28);
  background: rgb(255 255 255 / .08);
  color: var(--text);
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button.primary:hover {
  border-color: #4a7fff;
  background: #4a7fff;
  color: #fff;
}

.button.small {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .88rem;
}

.top .button.small { color: #fff; }

/* Center the label on its capital letters, not on the line box, which
   keeps room for descenders and makes the label look too high. */
@supports (text-box: trim-both cap alphabetic) {
  .button,
  .top .icon span,
  .copy {
    text-box: trim-both cap alphabetic;
  }

  .copy {
    padding-block: 10px;
    line-height: 1;
  }
}

/* Home: hero, centered text over the app window */

.hero { padding: 112px 0 0; }

.hero-text {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.036em;
  text-wrap: balance;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero .lead { margin: 0 auto; }
.hero .actions { justify-content: center; margin-top: 36px; }

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The whole desktop at the top of the home page */
.desktop {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 40px 100px rgb(0 0 0 / .6);
}

.desktop img { display: block; width: 100%; height: auto; }

.hero-shot {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 24px;
}

/* An app window alone, at its real size, on the page background */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.stage .win {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 80px rgb(0 0 0 / .6), 0 6px 18px rgb(0 0 0 / .4);
}

/* Two windows: the second one in front, lower right */
.stage.duo { padding-bottom: 40px; }
.stage.duo .win:first-child { margin-right: 22%; }

.stage .win-over {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 30%;
}

/* What the user can count on, under the screenshot */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 0;
  padding: 32px 24px 0;
  list-style: none;
  color: var(--muted);
  font-size: .92rem;
}

.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { flex: none; }

/* Home: sections */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.section { padding-top: 120px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
}

.section > h2,
.chapter > h2 {
  max-width: 20em;
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section > .intro,
.chapter > .intro {
  max-width: 36em;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 1.14rem;
  text-wrap: pretty;
}

.section.center,
.chapter { text-align: center; }

.section.center > h2,
.section.center > .intro,
.chapter > h2,
.chapter > .intro { margin-right: auto; margin-left: auto; }

.section.center > .intro { margin-bottom: 0; }

/* One feature per chapter, with its app window */
.chapter {
  margin-top: 120px;
  padding-top: 120px;
  border-top: 1px solid var(--border-soft);
}

.section.center + .chapter { margin-top: 0; border-top: 0; padding-top: 88px; }

/* Smaller features: an icon, a title, a sentence, no frame */
.minis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-top: 120px;
  border-top: 1px solid var(--border-soft);
}

.minis h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.minis p { margin: 0; color: var(--muted); }
.minis code { color: var(--text); }

.mini-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgb(79 141 255 / .14);
  color: var(--accent-light);
}

.section > .more { margin-top: 40px; }
.minis + .more { padding-top: 0; }

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 24px 0 0;
  font-weight: 500;
}

.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

#install {
  margin-top: 120px;
  border-top: 1px solid var(--border-soft);
}

/* Download panel: the two editions side by side, one button */
.download {
  margin: 0 0 64px;
  padding: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--card);
}

.download h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -.015em;
}

.download > p { margin: 0 0 22px; color: var(--muted); }

.editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.edition {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.edition:hover { border-color: rgb(255 255 255 / .22); }

.edition:has(input:checked) {
  border-color: var(--accent-strong);
  background: rgb(47 107 255 / .08);
}

.edition:has(input:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.edition input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent-strong);
}

.edition strong { display: block; font-weight: 600; }
.edition small { display: block; color: var(--muted); font-size: .86rem; }

.edition .size {
  margin-left: auto;
  color: var(--muted);
  font-size: .86rem;
  white-space: nowrap;
}

.download .note-nvidia {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.fine,
.download .fine {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

/* Home: installation in three steps, separated by lines, no frames */
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps3 li {
  padding-top: 20px;
  border-top: 2px solid var(--border-soft);
  counter-increment: step;
}

.steps3 li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
}

.steps3 h3 { margin: 0 0 6px; font-size: 1.14rem; }
.steps3 p { margin: 0; color: var(--muted); }

/* Switching from another bootc system: folded, for those who need it */
.switch {
  margin: 48px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.switch > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.switch > summary::-webkit-details-marker { display: none; }
.switch > summary strong { color: var(--text); font-weight: 600; }

.switch > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}

.switch[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }

.switch > div { padding: 0 24px 20px; color: var(--muted); }
.switch p { margin: 0 0 10px; }

/* Questions (home page): one bordered list, a divider between answers */

.faq {
  margin: 40px 0 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}

.faq details + details { border-top: 1px solid var(--border-soft); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}

.faq details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }

.faq details > p { margin: 0; padding: 0 24px 20px; color: var(--muted); max-width: 72ch; }

/* Content pages */

.block {
  max-width: 760px;
  margin: 0 auto 56px;
}

.block h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.018em;
}

.block h3 {
  margin: 28px 0 8px;
  font-size: 1.1rem;
  color: var(--accent-light);
}

.block p, .block li { color: var(--muted); }
.block ol { padding-left: 1.3em; }
.block li { margin: 4px 0; }

.code {
  position: relative;
  margin: 12px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #070e24;
}

.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 44px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font: 500 .8rem var(--font);
  cursor: pointer;
}

.copy:hover { color: var(--text); border-color: var(--accent); }

/* Leave room for the copy button on wide screens only, where it can overlap */
@media (min-width: 640px) {
  .code pre { padding-right: 90px; }
}

@media (max-width: 639px) {
  .code pre { padding-top: 48px; }
}

.docs { padding-top: 48px; }

.docs h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.docs .block > p:first-of-type { font-size: 1.06rem; }

.commands { margin: 16px 0 0; }

.commands dt {
  margin: 16px 0 2px;
  color: var(--accent-light);
}

.commands dd {
  margin: 0;
  color: var(--muted);
}

/* Documentation and troubleshooting: a side menu of the sections, which
   follows the reading; on phones it folds into a bar */

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: center;
  gap: 56px;
}

.doc-layout .block { margin-right: 0; margin-left: 0; }

.doc-side {
  position: sticky;
  top: calc(var(--header) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header) - 48px);
  overflow-y: auto;
  padding-bottom: 24px;
  font-size: .92rem;
  scrollbar-width: thin;
}

.doc-toggle { display: none; }

.search-open {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 20px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.search-open:hover { border-color: var(--accent); color: var(--text); }
.search-open kbd { margin-left: auto; font-size: .75rem; }
.search-open[hidden] { display: none; }

.doc-nav .nav-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--text);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.doc-nav ul { margin: 0; padding: 0; list-style: none; }

.doc-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}

.doc-nav a:hover { color: var(--text); background: rgb(255 255 255 / .04); }

.doc-nav a[aria-current] {
  background: rgb(79 141 255 / .14);
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 960px) {
  .doc-layout { display: block; }

  .doc-side {
    position: sticky;
    top: var(--header);
    z-index: 20;
    max-height: none;
    margin: -48px -24px 32px;
    padding: 0;
    overflow: visible;
    border-bottom: 1px solid var(--border-soft);
    background: rgb(5 10 26 / .88);
    backdrop-filter: blur(14px);
  }

  .doc-side { display: flex; flex-wrap: wrap; align-items: center; }

  .doc-side .search-open {
    order: 1;
    flex: none;
    width: auto;
    min-height: 40px;
    margin: 0 16px 0 0;
    padding: 6px 12px;
  }

  .doc-side .search-open kbd { display: none; }
  .js .doc-side .doc-toggle { flex: 1; min-width: 0; }
  .doc-side .doc-nav { order: 2; flex-basis: 100%; }

  /* A heading reached from a link stays clear of the guide's bar */
  .doc-layout [id] { scroll-margin-top: 64px; }

  /* Without JavaScript the menu just stays open, above the text */
  .doc-side .doc-nav { padding: 16px 24px; }

  .js .doc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    border: 0;
    background: none;
    color: var(--text);
    font: 500 .95rem var(--font);
    cursor: pointer;
  }

  .doc-toggle small { flex: none; color: var(--muted); font-size: .82rem; }
  .doc-toggle span { flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }

  .doc-toggle::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
    transform: rotate(45deg) translateY(-3px);
  }

  .doc-side.open .doc-toggle::after { transform: rotate(-135deg) translateY(-3px); }

  .js .doc-side .doc-nav {
    display: none;
    max-height: calc(100vh - var(--header) - 60px);
    overflow-y: auto;
    padding-top: 4px;
    border-top: 1px solid var(--border-soft);
  }

  .js .doc-side.open .doc-nav { display: block; }
}

@media (max-width: 560px) {
  .doc-side { margin-right: -16px; margin-left: -16px; }
  .doc-side .search-open { margin-right: 12px; }
  .js .doc-toggle, .doc-side .doc-nav { padding-right: 16px; padding-left: 16px; }
}

/* Search (Pagefind index of the documentation) */
.search {
  width: min(640px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 64px));
  margin: 10vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgb(0 0 0 / .6);
}

.search::backdrop { background: rgb(2 5 14 / .7); backdrop-filter: blur(4px); }

.search form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 1.05rem var(--font);
  outline: none;
}

.search .close {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 500 .8rem var(--font);
  cursor: pointer;
}

.search ol {
  max-height: calc(min(640px, 100vh - 64px) - 64px);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
}

.search li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.search li a:hover,
.search li a:focus-visible { background: rgb(79 141 255 / .14); outline: none; }

.search li strong { display: block; font-weight: 600; }
.search li span { display: block; color: var(--muted); font-size: .9rem; }
.search mark { background: none; color: var(--accent-light); font-weight: 600; }

/* Guide pages: where you are, the steps of a task, the screenshots */

.docs .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
  list-style: none;
}

.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.docs .lead { margin: 0 0 40px; color: var(--muted); font-size: 1.12rem; }
.docs .lead:has(+ .shots-lang) { margin-bottom: 12px; }
.shots-lang { margin: 0 0 40px; color: var(--muted); font-size: .9rem; }

/* The words on a button or in a menu, as the screen shows them */
.block b { color: var(--text); font-weight: 600; }

.block ol.do {
  margin: 16px 0;
  padding: 0;
  list-style: none;
  counter-reset: do;
}

.block ol.do > li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 40px;
  counter-increment: do;
}

.do > li::before {
  content: counter(do);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent-light);
  font-size: .85rem;
  font-weight: 600;
}

.shot { margin: 24px 0 32px; }

.shot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .35);
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.shot img.opens { cursor: zoom-in; }
.shot .enlarge { margin-left: 6px; white-space: nowrap; }

.block .note { margin: 16px 0; }
.note strong:first-child { color: var(--text); }

/* For experienced users: folded under a task */
.switch.expert { margin: 20px 0 0; }

.related {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.related h2 { margin: 0 0 8px; font-size: 1.1rem; }
.related ul { margin: 0; padding-left: 1.2em; }

/* The guide's previous and next pages, then what it describes */
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.pager a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.pager a:hover, .pager a:focus-visible { border-color: var(--accent); }
.pager small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.pager .next { grid-column: 2; text-align: right; }
.doc-meta { margin-top: 24px; color: var(--muted); font-size: .9rem; }

/* The guide's home: a card per topic, with its most asked tasks */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 8px;
}

.topic {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.block .topic h2 { margin: 0 0 4px; font-size: 1.15rem; }
.topic h2 a { color: var(--text); text-decoration: none; }
.topic h2 a:hover { color: var(--accent-light); }
.topic p { margin: 0 0 10px; font-size: .95rem; }
.topic ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }

.doc-nav ul ul {
  margin: 2px 0 8px 12px;
  padding-left: 8px;
  border-left: 1px solid var(--border-soft);
}

.doc-nav ul ul a { padding-top: 3px; padding-bottom: 3px; font-size: .88rem; }
.search .empty { padding: 16px 12px; color: var(--muted); }

/* Install guide: what is needed, numbered steps, choices, boot keys, the
   NVIDIA key screen */

.needs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.needs div {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.needs strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.block .steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.block .steps > li {
  position: relative;
  margin: 0;
  padding: 0 0 28px 56px;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
}

.steps > li::after {
  content: "";
  position: absolute;
  top: 44px;
  bottom: 6px;
  left: 18px;
  width: 2px;
  background: var(--border);
}

.steps > li:last-child::after { display: none; }

.steps h2 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
  color: var(--accent-light);
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.choices div {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.block .choices h3 { margin: 0 0 4px; color: var(--text); }
.choices p { margin: 0; font-size: .95rem; }

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1d47c4;
  color: #dfe8ff;
  font-size: .75rem;
  font-weight: 600;
  vertical-align: 2px;
}

.note {
  padding: 12px 16px;
  border: 1px solid rgb(127 224 255 / .25);
  border-left: 4px solid var(--accent-light);
  border-radius: 0 12px 12px 0;
  background: rgb(127 224 255 / .05);
}

.note.warn {
  border-color: rgb(255 181 71 / .3);
  border-left-color: #ffb547;
  background: rgb(255 181 71 / .05);
}

.keys, .table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.keys th, .keys td, .table th, .table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.keys th, .table th { font-weight: 600; }
.table td strong { color: var(--text); }
.table { overflow-x: auto; }
.table table { min-width: 560px; }

@media (max-width: 600px) {
  .table table { min-width: 0; }
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 3px 0; border: 0; }
  .table td::before { content: attr(data-label); color: var(--text); font-weight: 600; }
}
.here { color: #7be3a4; }

.mok {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.mok figure { margin: 0; }

.mok svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  font: 12px var(--mono);
}

.mok figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.35;
}

/* Screenshots page */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 36px 24px;
  margin: 0 0 72px;
}

.gallery figure { margin: 0; }

/* One heading per group of screenshots */
.gallery-title {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.018em;
}

.gallery figcaption { margin-top: 12px; }
.gallery figcaption strong { color: var(--text); font-weight: 600; }
.gallery figcaption p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

.gallery a { display: block; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(0 0 0 / .45);
  transition: border-color .15s, transform .2s;
}

.gallery a:hover img,
.gallery a:focus-visible img { border-color: var(--accent); transform: translateY(-2px); }

.fine-print { font-size: .9rem; }

/* Full size screenshot viewer */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(2 5 14);
  color: var(--text);
}

/* The caption right under the image, the two centered together */
.lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox header {
  display: flex;
  align-self: stretch;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}

.lightbox button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(13 22 48 / .8);
  color: var(--text);
  font: 500 1rem var(--font);
  cursor: pointer;
}

.lightbox .frame {
  flex: 0 1 auto;
  min-height: 0;
  max-width: calc(100vw - 32px);
  margin: auto 16px 0;
  overflow: auto;
  border-radius: 10px;
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 170px);
  cursor: zoom-in;
}

.lightbox.zoomed .frame { align-self: stretch; flex: 1 1 auto; max-width: none; margin-top: 0; }
.lightbox.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox [data-zoom] { margin-right: auto; padding: 0 16px; }
.lightbox [data-zoom][aria-pressed="true"] { border-color: var(--accent); }
.lightbox [data-zoom][hidden] { display: none; }

.lightbox .caption {
  margin-bottom: auto;
  padding: 16px 16px 24px;
  color: var(--muted);
  text-align: center;
}

.lightbox .caption p { margin: 2px 0 0; }
.lightbox .caption strong { color: var(--text); }

/* Why Sterenn OS: one reason per section, text beside its screenshots */
.why .lead { margin: 0; font-size: 1.1rem; text-align: left; }

.reason {
  display: grid;
  gap: 24px 48px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto 80px;
}

@media (min-width: 900px) {
  .reason:has(.shots) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .reason:nth-of-type(odd) .shots { order: -1; }
}

.reason:not(:has(.shots)) { max-width: 760px; }

.reason h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
}

.reason p, .reason li { color: var(--muted); }
.reason ul { padding-left: 1.3em; }
.reason li { margin: 6px 0; }

.reason .shots { display: grid; gap: 20px; }
.reason figure { margin: 0; }

.reason img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 40px rgb(0 0 0 / .45);
  transition: border-color .15s;
}

.reason a:hover img, .reason a:focus-visible img { border-color: var(--accent); }

.reason figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.actions-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Footer */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  color: var(--muted);
  font-size: .92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.footer-cols .brand { color: var(--text); text-decoration: none; }
.footer-cols > div p { max-width: 22em; margin: 12px 0 0; }

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 7px 0; }
.site-footer li a { color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }

.legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--border-soft);
  font-size: .84rem;
}

.legal a { color: var(--muted); }

/* Read by screen readers, not shown */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Phones and tablets */

@media (max-width: 880px) {
  .minis, .steps3 { grid-template-columns: 1fr; gap: 32px; }
  .editions { grid-template-columns: 1fr; }
  /* Phones and tablets: one window, the width of the page */
  .stage.duo { padding-bottom: 0; }
  .stage.duo .win:first-child { margin-right: 0; }
  .stage .win-over { display: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  main { padding-right: 16px; padding-left: 16px; }
  .hero { padding-top: 56px; }
  .hero-text { padding: 0 16px; }
  .hero .actions { margin-top: 28px; }
  .hero-shot { margin-top: 40px; padding: 0 16px; }
  .desktop { border-radius: 8px; }
  .stage .win { border-radius: 8px; }
  .trust { flex-direction: column; align-items: center; gap: 10px; }
  .section { padding-top: 80px; }
  .chapter { margin-top: 72px; padding-top: 72px; }
  .section.center + .chapter { padding-top: 56px; }
  .section > .intro, .chapter > .intro { margin-bottom: 32px; font-size: 1.04rem; }
  .minis { padding-top: 72px; }
  #install { margin-top: 72px; }
  .download { padding: 20px; margin-bottom: 48px; }
  .download .button { width: 100%; }
  .switch > summary { padding: 16px 18px; }
  .switch > div { padding: 0 18px 18px; }
  .faq summary { padding: 16px 18px; }
  .faq details > p { padding: 0 18px 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .docs { padding-top: 40px; }
  .doc-side { margin-top: -40px; }
}

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

/* A stronger contrast asked for in the system's settings: lighter secondary
   text, borders that show */
@media (prefers-contrast: more) {
  :root {
    --border: #5b74b8;
    --border-soft: rgb(127 170 255 / .45);
    --border-strong: rgb(127 170 255 / .7);
    --muted: #d3def5;
  }
}

/* Forced colors (contrast themes): the browser drops our backgrounds, so
   what only a background showed gets an outline */
@media (forced-colors: active) {
  .edition:has(input:checked),
  .doc-nav a[aria-current],
  .top details li a:focus-visible,
  .search li a:focus-visible,
  .search input:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* The name next to the logo is a picture, drawn in white */
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .brand .name { filter: invert(1); }
}

/* On paper: black on white, without the menus, the footer and the buttons.
   Closed sections are printed too, and a link to another site shows its
   address. */
@media print {
  :root { color-scheme: light; }

  *,
  *::before,
  *::after {
    border-color: #999 !important;
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
  }

  body { font-size: 11pt; }

  .site-header,
  .site-footer,
  .skip,
  .doc-side,
  .search,
  .search-open,
  .lightbox,
  .copy,
  .button { display: none !important; }

  .doc-layout { display: block; }
  .hero { padding-top: 0; }

  details::details-content { content-visibility: visible; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }

  .code pre { overflow: visible; white-space: pre-wrap; }
  h1, h2, h3, summary { break-after: avoid; }
  pre, img, figure, tr, li { break-inside: avoid; }
}
