/* TakeoffQS Help — generated; do not edit by hand */

/* Space Grotesk is the brand's primary family (frontend/pubspec.yaml: "matching
   takeoffqs.com"), served from help/assets/brand rather than fetched, for the
   same reason the app bundles it — no first-load font flash.

   Three weights, because three is what this stylesheet asks for: 400 body, 600
   the sidebar's current page and card titles, 700 the header brand and headings.
   The repo also carries Medium 500 and the whole Outfit family; neither is
   referenced here, and shipping an unreferenced font is 32KB a reader pays for
   nothing. TTF rather than WOFF2 to avoid adding a font-conversion step to the
   build; at 32KB a weight the saving would not pay for the dependency. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/brand/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/brand/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/brand/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --brand: #0970F1;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --surface: #f8fafc;
  --header-bg: #ffffff;
  --max: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: #334155;
    --bg: #0b1220;
    --surface: #111827;
    --header-bg: #0f172a;
  }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Two logo files, swapped by scheme rather than recoloured: the wordmark is a
   two-tone lockup (dark type, blue QS), so a CSS filter would wreck the blue.
   The dark-scheme header sits on brandInk, where the dark-on-light logo would be
   invisible. Both are the app's own files, held byte-identical to them by
   TestBrandAssetsMatchTheAppOriginals. */
.brand img { height: 1.75rem; width: auto; display: block; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); }
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 2rem;
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
.sidebar {
  font-size: 0.92rem;
}
.sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.sidebar li { margin: 0.25rem 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--brand); }
.sidebar a[aria-current="page"] { color: var(--brand); font-weight: 600; }
main { min-width: 0; }
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumb a { color: var(--muted); }
article h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.lead { color: var(--muted); margin: 0 0 1.5rem; font-size: 1.05rem; }
.prose :is(h2, h3, h4) { margin-top: 1.75rem; line-height: 1.3; }
.prose p, .prose ul, .prose ol { margin: 0.75rem 0; }
.prose img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.table-scroll {
  width: 100%;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
}
.prose table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.prose th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.prose th, .prose td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th + th, .prose td + td { border-left: 1px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .prose table { font-size: 0.9rem; }
  .prose table:has(> thead > tr > th:nth-child(3)) { min-width: 34rem; }
  .prose th, .prose td { padding: 0.65rem 0.75rem; }
}
.card-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.card-list li {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  margin: 0 0 0.75rem;
  background: var(--surface);
}
.card-list a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}
.card-list a:hover { color: var(--brand); }
.card-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.start-here {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem 1.25rem;
  margin: 1.5rem 0 2rem;
  background: #f8fafc;
}
.start-here h2 { margin: 0.25rem 0 0.5rem; font-size: 1.1rem; }
.start-here ol { margin: 0; padding-left: 1.4rem; }
.start-here li { margin: 0.5rem 0; }
.start-here li p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }
.article-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.ask { margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--muted); }
.article-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.article-nav a {
  flex: 1 1 14rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
}
.article-nav a:hover { border-color: var(--brand); color: var(--brand); }
.article-nav span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.nav-next { text-align: right; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.25rem;
  text-align: center;
}
