@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-500-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-700-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-800-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hanken-grotesk-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/hanken-grotesk-400-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hanken-grotesk-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/hanken-grotesk-600-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hanken-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/hanken-grotesk-700-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: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-400-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: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-700-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;
}

/* Tallyr docs — shared stylesheet.
   Tokens lifted from the marketing pages so /docs reads as the same site:
   petrol teal #0C6E72, ink #14181C, Bricolage Grotesque + Hanken Grotesk +
   Space Mono. The marketing pages embed their fonts per page (~420 KB each);
   these are self-hosted once in docs/assets/fonts and cached across guides. */

:root {
  --teal: #0C6E72;
  --teal-dark: #095256;
  --teal-wash: #F0F6F6;
  --ink: #14181C;
  --body: #3F474E;
  --muted: #6B757E;
  --faint: #9AA4AD;
  --line: #E4E8EC;
  --line-soft: #EEF1F3;
  --paper: #FFFFFF;
  --shell: #F8F9FA;
  --amber: #9A6700;
  --gold: #D9A441;
  --amber-wash: #FFF8E6;
  --amber-line: #F0DFAE;
  --shadow: 0 1px 2px rgba(20, 24, 28, .04), 0 8px 24px rgba(20, 24, 28, .06);
  --radius: 14px;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; gap: 30px;
}
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.wordmark svg { display: block; flex-shrink: 0; }
.wordmark b {
  font-family: var(--display); font-weight: 800; font-size: 25px;
  color: var(--ink); letter-spacing: -.03em; line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--body); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.site-nav a[aria-current] { color: var(--teal); }
.head-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.head-cta a.plain { font-size: 15px; font-weight: 600; color: var(--body); text-decoration: none; }
.head-cta a.btn {
  font-size: 15px; font-weight: 700; color: #fff; background: var(--teal);
  text-decoration: none; padding: 11px 22px; border-radius: 10px;
}
.head-cta a.btn:hover { background: var(--teal-dark); }

/* ---------------------------------------------------------------- layout */

.docs-shell {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 56px;
  align-items: start;
}
.docs-side {
  position: sticky; top: 70px;
  max-height: calc(100vh - 70px); overflow-y: auto;
  padding: 40px 0 64px;
}
.docs-side__group { margin-bottom: 26px; }
.docs-side__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 10px;
}
.docs-side__group a {
  display: block; font-size: 14.5px; line-height: 1.45; color: var(--body);
  text-decoration: none; padding: 6px 12px; margin-left: -12px;
  border-radius: 8px; font-weight: 500;
}
.docs-side__group a:hover { background: var(--shell); color: var(--ink); }
.docs-side__group a[aria-current] {
  background: var(--teal-wash); color: var(--teal); font-weight: 700;
}
.docs-main { padding: 40px 0 96px; min-width: 0; }

/* ------------------------------------------------------------ page intro */

.crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs span { margin: 0 7px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 14px;
}
h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(34px, 5vw, 46px); line-height: 1.08; color: var(--ink);
}
.lede { font-size: 18.5px; line-height: 1.6; color: var(--muted); margin-top: 16px; max-width: 62ch; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-soft);
}
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--shell); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.chip b { color: var(--ink); font-weight: 700; }

/* "New" on a guide: the marketing pages' badge--new, in the guides' own sizes. */
.new-badge {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; text-transform: none; line-height: 1.5;
  color: var(--ink); background: var(--gold); border-radius: 999px;
  padding: 1px 8px; margin-left: 8px; vertical-align: 1px; white-space: nowrap;
}

/* --------------------------------------------------------------- content */

.docs-main h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: 26px; line-height: 1.2; color: var(--ink); margin: 52px 0 14px;
}
.docs-main h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  font-size: 19px; color: var(--ink); margin: 34px 0 10px;
}
.docs-main p { margin: 0 0 16px; max-width: 68ch; }
.docs-main ul, .docs-main ol { margin: 0 0 18px; padding-left: 22px; max-width: 66ch; }
.docs-main li { margin-bottom: 8px; }
.docs-main strong { color: var(--ink); font-weight: 700; }
kbd, .ui {
  font-family: var(--sans); font-weight: 700; color: var(--ink);
  background: var(--shell); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; font-size: .93em; white-space: nowrap;
}

/* ----------------------------------------------------------------- steps */

.steps { list-style: none; margin: 28px 0 0; padding: 0; max-width: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 18px;
  padding-bottom: 34px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  grid-column: 1; grid-row: 1 / span 3;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; z-index: 1;
}
.step::after {
  content: ''; position: absolute; left: 15.5px; top: 38px; bottom: 0;
  width: 1px; background: var(--line);
}
.step:last-child { padding-bottom: 8px; }
.step:last-child::after { display: none; }
.step > * { grid-column: 2; }
.step h3 {
  margin: 3px 0 8px; font-family: var(--display); font-weight: 700;
  font-size: 18.5px; letter-spacing: -.01em; color: var(--ink); line-height: 1.35;
}
.step p { margin-bottom: 12px; }
.step ul { margin-bottom: 12px; }

/* ------------------------------------------------------------ screenshots */

.shot { margin: 6px 0 20px; max-width: 300px; }
.shot img {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--shell);
}
.shot figcaption {
  font-size: 13px; color: var(--faint); line-height: 1.5;
  margin-top: 10px; padding-left: 2px;
}
.shot-row {
  display: flex; flex-wrap: wrap; gap: 22px; margin: 6px 0 20px;
}
.shot-row .shot { margin: 0; flex: 0 1 260px; }

/* ---------------------------------------------------------------- notes */

.note {
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  background: var(--teal-wash); border-radius: 10px;
  padding: 14px 18px; margin: 0 0 20px; max-width: 68ch;
}
.note.warn { border-left-color: #C08A00; background: var(--amber-wash); border-color: var(--amber-line); }
.note p { margin: 0; font-size: 15px; }
.note p + p { margin-top: 8px; }
.note b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 5px; }
.note.warn b { color: var(--amber); }

/* --------------------------------------------------------------- prereqs */

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 22px 24px; margin: 28px 0;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card ul { margin-bottom: 0; }

/* ------------------------------------------------------------ guide index */

.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px; margin: 24px 0 8px;
}
.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; background: var(--paper);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.guide-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card__n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--teal);
}
.guide-card__t {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  letter-spacing: -.015em; color: var(--ink); line-height: 1.25;
}
.guide-card__d { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ prev/next */

.pager {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-soft);
}
.pager a {
  flex: 1 1 240px; text-decoration: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
}
.pager a:hover { border-color: var(--teal); }
.pager span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 4px;
}
.pager b { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.pager a.next { text-align: right; }

/* ---------------------------------------------------------------- footer */

.site-foot { background: var(--ink); color: #fff; margin-top: 40px; }
.site-foot__in {
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 40px;
  display: flex; flex-direction: column; gap: 56px;
}
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col--brand { gap: 14px; min-width: 220px; }
.foot-col--brand .wordmark b { color: #fff; font-size: 26px; }
.foot-tag { font-size: 15px; color: #9AA4AD; line-height: 1.5; }
.foot-built { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: #5B6670; }
.foot-col > span.h { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #5B6670; }
.foot-col a { font-size: 15px; color: #C7CDD3; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid #262C31; padding-top: 28px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.foot-base > span { font-size: 13px; color: #5B6670; }
.foot-social { display: flex; gap: 22px; align-items: center; }
.foot-social a { font-size: 13px; font-weight: 600; color: #9AA4AD; text-decoration: none; }
.foot-social a.mail { font-family: var(--mono); font-size: 12px; }

/* --------------------------------------------------------------- responsive */

.side-toggle { display: none; }

@media (max-width: 900px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-side {
    position: static; max-height: none; overflow: visible;
    padding: 24px 0 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px;
  }
  .docs-side__inner { display: none; }
  .docs-side.open .docs-side__inner { display: block; padding-bottom: 20px; }
  .side-toggle {
    display: block; width: 100%; text-align: left; cursor: pointer;
    font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink);
    background: var(--shell); border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
  }
  .site-nav { display: none; }
  .docs-main { padding-top: 20px; }
}
@media (max-width: 560px) {
  .site-head__in { gap: 14px; padding: 0 18px; }
  .head-cta a.plain { display: none; }
  .docs-shell { padding: 0 18px; }
  .shot { max-width: 100%; }
  .shot-row .shot { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------- 404 */

.oops { max-width: 620px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; }
.oops h1 { font-size: clamp(40px, 7vw, 60px); }
.oops .lede { margin: 18px auto 0; }
.oops .oops-links {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px;
}
.oops .oops-links a {
  font-size: 15px; font-weight: 700; text-decoration: none; padding: 12px 22px;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink);
}
.oops .oops-links a.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.oops .oops-links a:hover { border-color: var(--teal); }
.oops svg { margin: 0 auto 28px; display: block; }
