/* The shared header and footer (engine/sitenav.mjs). Identical on every page of carbonado.app and the forum, so every
   rule sets its own font, size, colour and spacing and never relies on the page's styles. Selectors carry two classes
   so a page's element rules (header a, footer nav ...) can't reach in. The forum theme copies this file. */
.sn-head, .sn-foot { --sn-bg: #000; --sn-panel: #0f0f0e; --sn-hover: #1b1b1a; --sn-line: #262625; --sn-ink: #f2f2f0; --sn-dim: #a3a3a0; --sn-faint: #74746f;
  font: 400 15px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--sn-ink); background: var(--sn-bg);
  -webkit-font-smoothing: antialiased; letter-spacing: normal; text-transform: none; text-align: left; box-sizing: border-box; }
.sn-head *, .sn-foot * { box-sizing: border-box; }
.sn-head .sn-frame, .sn-foot .sn-frame { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .sn-head .sn-frame, .sn-foot .sn-frame { padding: 0 24px; } }
@media (min-width: 1100px) { .sn-head .sn-frame, .sn-foot .sn-frame { padding: 0 32px; } }
.sn-head a, .sn-foot a { color: var(--sn-ink); text-decoration: none; background: none; border: 0; }
.sn-head img, .sn-foot img { display: block; flex: none; border-radius: 22.5%; margin: 0; max-width: none; }
.sn-head h2, .sn-foot h2 { margin: 0; padding: 0; border: 0; font-family: inherit; font-style: normal; font-weight: 600; font-size: 12px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--sn-faint); }
.sn-head details.sn-menu, .sn-head details.sn-burger { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }

/* Header */
.sn-head.sn-head { display: block; position: sticky; top: 0; z-index: 60; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--sn-line); width: 100%; }
.sn-head .sn-frame { display: flex; align-items: center; gap: 6px; height: 56px; }
@media (min-width: 720px) { .sn-head .sn-frame { height: 64px; } }
.sn-head .sn-logo { display: inline-flex; align-items: center; gap: 12px; margin: 0 18px 0 0; padding: 0; white-space: nowrap; }
.sn-head .sn-logo svg { width: 26px; height: 26px; flex: none; color: var(--sn-ink); }
.sn-head .sn-logo span { font-family: inherit; font-style: normal; font-weight: 500; font-size: 12.5px; line-height: 1; letter-spacing: .26em; text-transform: uppercase; color: var(--sn-ink); }
.sn-head .sn-nav { display: none; align-items: center; gap: 2px; margin: 0; padding: 0; }
@media (min-width: 820px) { .sn-head .sn-nav { display: flex; } }
.sn-head .sn-menu { position: relative; }
.sn-head .sn-menu > summary, .sn-head .sn-burger > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  font-family: inherit; font-style: normal; font-weight: 500; font-size: 15px; line-height: 1; color: var(--sn-dim); background: none; border: 0; box-shadow: none; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sn-head summary::-webkit-details-marker { display: none; }
.sn-head .sn-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sn-head .sn-menu > summary:hover, .sn-head .sn-menu[open] > summary { color: var(--sn-ink); background: var(--sn-hover); }
.sn-head .sn-menu.sn-on > summary { color: var(--sn-ink); box-shadow: inset 0 -2px 0 var(--sn-ink); border-radius: 10px 10px 0 0; }
.sn-head summary:focus-visible, .sn-head a:focus-visible, .sn-foot a:focus-visible { outline: 2px solid var(--sn-ink); outline-offset: 2px; }
.sn-head .sn-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: 8px; background: var(--sn-panel); border: 1px solid var(--sn-line); border-radius: 16px; box-shadow: 0 16px 40px rgb(0 0 0 / .5); }
.sn-head .sn-panel.sn-wide { width: 400px; }
.sn-head .sn-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-family: inherit; font-style: normal; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--sn-ink); }
.sn-head .sn-row:hover { background: var(--sn-hover); }
.sn-head .sn-plain { padding: 10px; }
.sn-head .sn-t { display: block; min-width: 0; }
.sn-head .sn-s { display: block; margin-top: 2px; font-family: inherit; font-style: normal; font-weight: 400; font-size: 13px; line-height: 1.35; color: var(--sn-dim); }
.sn-head .sn-ext, .sn-foot .sn-ext { margin-left: 5px; font-weight: 400; color: var(--sn-faint); }
.sn-head .sn-grow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; min-height: 44px; }
.sn-head .sn-gname { font-family: inherit; font-style: normal; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--sn-ink); min-width: 104px; }
.sn-head .sn-glinks { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.sn-head .sn-glinks a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--sn-line); border-radius: 999px; font-family: inherit; font-style: normal; font-weight: 500; font-size: 14px; line-height: 1; color: var(--sn-ink); }
.sn-head .sn-glinks a:hover { background: var(--sn-hover); border-color: #3a3a38; }
.sn-head details.sn-burger { margin-left: auto; }
@media (min-width: 820px) { .sn-head .sn-burger { display: none; } }
.sn-head .sn-burger > summary { padding: 0 10px; margin-right: -10px; }
.sn-head .sn-burger > summary::after { content: none; display: none; }
.sn-head .sn-bars { width: 20px; height: 14px; display: grid; align-content: space-between; }
.sn-head .sn-bars i { display: block; height: 2px; background: var(--sn-ink); border-radius: 2px; }
.sn-head .sn-burger[open] .sn-bars i:nth-child(2) { opacity: 0; }
.sn-head .sn-burger[open] .sn-bars i:first-child { transform: translateY(6px) rotate(45deg); }
.sn-head .sn-burger[open] .sn-bars i:last-child { transform: translateY(-6px) rotate(-45deg); }
.sn-head .sn-sheet { position: fixed; top: 56px; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 6px 40px; background: var(--sn-bg); border-top: 1px solid var(--sn-line); }
.sn-head .sn-sheet h2 { margin: 20px 10px 6px; }
.sn-head .sn-sheet .sn-grow { flex-wrap: wrap; }

/* Footer */
.sn-foot.sn-foot { display: block; margin: 0; padding: 56px 0 40px; border: 0; border-top: 1px solid var(--sn-line); width: 100%; }
.sn-foot .sn-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
@media (min-width: 720px) { .sn-foot .sn-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .sn-foot .sn-cols { grid-template-columns: repeat(5, 1fr); } }
.sn-foot .sn-col h2 { margin: 0 0 14px; }
.sn-foot ul { list-style: none; margin: 0; padding: 0; }
.sn-foot li { margin: 0; padding: 0; }
.sn-foot li a { display: inline-block; padding: 5px 0; font-family: inherit; font-style: normal; font-weight: 400; font-size: 14.5px; line-height: 1.4; color: var(--sn-dim); }
.sn-foot li a:hover { color: var(--sn-ink); text-decoration: underline; text-underline-offset: 3px; }
.sn-foot .sn-base { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--sn-line); font-family: inherit; font-style: normal; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--sn-faint); }
.sn-foot .sn-mark svg { width: 22px; height: 22px; display: block; color: var(--sn-dim); }
.sn-foot .sn-base a { color: var(--sn-dim); }
.sn-foot .sn-base a:last-child { margin-left: auto; }
/* A page's own sign-up button at the right of the bar (only the creators page has one). */
.sn-head a.sn-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sn-ink); color: #000; font-family: inherit; font-style: normal; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; }
.sn-head a.sn-cta:hover { background: #fff; }
.sn-head a.sn-cta + details.sn-burger { margin-left: 4px; }
@media (max-width: 719px) { .sn-head a.sn-cta { min-height: 36px; padding: 0 12px; font-size: 13px; } }
@media (max-width: 439px) { .sn-head .sn-frame:has(.sn-cta) .sn-logo span { display: none; } }
