/* Shared by every page. */
body { margin: 0; background: var(--sn-bg); color: var(--sn-fg); font-family: var(--sn-font-body); }
a { color: inherit; }
img { max-width: 100%; }
.skip {
  position: absolute; left: 20px; top: -60px; z-index: 10; padding: 8px 12px;
  border-radius: 6px; background: var(--sn-fg); color: var(--sn-bg);
}
.skip:focus { top: 12px; }

.sn-brand img { width: 26px; height: 26px; }
.sn-nav .get { padding: 5px 10px; border: 1px solid var(--sn-border-strong); border-radius: 6px; color: var(--sn-fg); }
.sn-nav .get:hover { border-color: var(--sn-fg-muted); }

pre.command { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 10px 10px 16px; border: 1px solid var(--sn-border-strong); border-radius: 8px; background: var(--sn-bg-elev-1); }
pre.command code { flex: 1; min-width: 0; overflow-x: auto; color: var(--sn-fg); font-family: var(--sn-font-mono); font-size: var(--sn-text-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.command .sn-copy-btn { flex-shrink: 0; }

.shot { display: block; width: 100%; height: auto; border: 1px solid var(--sn-border-strong); border-radius: 10px; }
/* The status page shot goes on to its incidents. Beside the text, its bars are enough. */
.shot.status { aspect-ratio: 1720 / 1570; object-fit: cover; object-position: top; }

/* Light and dark pictures. The theme is the OS's until someone picks one with the toggle,
   which drops data-theme for dark and sets it to light. */
:root .on-light, :root .on-dark { display: none; }
:root[data-theme="light"] .on-light, :root:not([data-theme]) .on-dark { display: block; }
@media (prefers-color-scheme: light) { :root[data-theme="system"] .on-light { display: block; } }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .on-dark { display: block; } }
.sn-header .sn-theme-toggle { margin-right: -6px; }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--sn-ease), transform 0.6s var(--sn-ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Links inside text look like links. */
p a, li a { text-decoration: underline; text-decoration-color: var(--sn-border-strong); text-underline-offset: 3px; transition: text-decoration-color var(--sn-transition); }
p a:hover, li a:hover { text-decoration-color: currentColor; }

.sn-nav .gh { display: inline-flex; padding: 4px; }

/* Every code block gets a copy button in its corner. */
pre:has(> .copy) { position: relative; padding-right: 52px !important; }
pre > .copy { position: absolute; top: 8px; right: 8px; }
