/* Squizzy hosted help: the colours and type of the Squizzy front page, quieter for reading. */
@font-face { font-family: "Fredoka"; src: url("../site/fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../site/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../site/fonts/nunito-italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; }
:root { --plum: #2a1830; --ink-2: #5d4a5f; --paper: #fff6ea; --coral: #ff5f45; --coral-ink: #c2381f; --amber: #ffb21e; --amber-soft: #fff0cc; --green: #3cc47c; --line: #ecd9c2; }
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--plum); font: 450 17px/1.65 "Nunito", system-ui, sans-serif; }
a { color: var(--plum); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--plum); }
:focus-visible { outline: 3px solid #8a4fd1; outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 800; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc((100% - 1180px) / 2)); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.3rem "Fredoka", system-ui, sans-serif; text-decoration: none; }
.brand img { border-radius: 8px; }
.grow { flex: 1; }
.cta { font: 600 .95rem "Fredoka", system-ui, sans-serif; text-decoration: none; background: var(--coral-ink); color: #fff; padding: .45em 1.05em; border-radius: 999px; box-shadow: 0 3px 0 var(--plum); }
.wrap { width: min(100% - 32px, 1180px); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 36px 0 60px; }
.toc { position: sticky; top: 86px; align-self: start; }
.toc h2 { font: 600 1.1rem "Fredoka", system-ui, sans-serif; margin: 0 0 10px; }
.toc h2 a { text-decoration: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li a { display: block; padding: 6px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.toc li a:hover { background: #fff; color: var(--plum); }
.toc li a[aria-current] { background: var(--plum); color: #fff; }
main { min-width: 0; max-width: 46em; }
h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: 2.4rem; margin: 0 0 .4em; }
main h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; padding-top: .2em; }
main h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: #fff; border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
pre { background: var(--plum); color: #fff; padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
pre code { background: none; border: 0; color: inherit; padding: 0; }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--amber-soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
blockquote { margin: 1.2em 0; padding: 12px 16px; background: #fff; border-left: 5px solid var(--green); border-radius: 0 12px 12px 0; }
blockquote p { margin: 0; }
.topics { list-style: none; padding: 0; display: grid; gap: 12px; }
.topics a { display: grid; gap: 2px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 2px solid var(--line); text-decoration: none; }
.topics a:hover { border-color: var(--plum); }
.topics strong { font: 600 1.15rem "Fredoka", system-ui, sans-serif; }
.topics span { color: var(--ink-2); font-size: .95rem; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager .next { margin-left: auto; text-align: right; }
.pager a { font-weight: 800; }
.foot { text-align: center; padding: 28px 16px 40px; color: var(--ink-2); font-size: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .wrap { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc li a { background: #fff; border: 1px solid var(--line); }
  h1 { font-size: 2rem; }
  table { display: block; overflow-x: auto; }
}
