/* Built: 2025-09-30T19:29:52.804517888Z  Version: f74fde11-4602-4d02-ba34-eeddbdac436f */

/* -------------------------------------------------------------------------- */
/* typography */
:root {
    --font-sans: "Lato Latin", "Lato", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --font-symbol: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

    --lh: 1.6;

    /* NB this is specific to Lato font */
    --font-weight-thin:    100;
    --font-weight-light:   300;
    --font-weight-regular: 400;
    --font-weight-medium:  600;
    --font-weight-bold:    700;
    --font-weight-black:   900;

    --all-caps-space: .08em;
}

/* NB this is specific to Lato font */
.weight-thin    { font-weight: var(--font-weight-thin); }
.weight-light   { font-weight: var(--font-weight-light); }
.weight-regular { font-weight: var(--font-weight-regular); }
.weight-medium  { font-weight: var(--font-weight-medium); }
.weight-bold    { font-weight: var(--font-weight-bold); }
.weight-black   { font-weight: var(--font-weight-black); }

.mono   { font-family: var(--font-mono); }
.sans   { font-family: var(--font-sans); }
.symbol { font-family: var(--font-symbol); }


/* -------------------------------------------------------------------------- */
/* spacing scale */
:root {
    /* spacing scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    /* layout */
    --maxw: 72rem;     /* overall container max width */
    --readw: 62ch;     /* ideal text line length */
}

/* spacing utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-7 { margin-top: var(--space-7) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-7 { margin-bottom: var(--space-7) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.pad-1 { padding: var(--space-1) !important; }
.pad-2 { padding: var(--space-2) !important; }
.pad-3 { padding: var(--space-3) !important; }
.pad-4 { padding: var(--space-4) !important; }
.pad-5 { padding: var(--space-5) !important; }
.pad-6 { padding: var(--space-6) !important; }
.pad-7 { padding: var(--space-7) !important; }
.pad-8 { padding: var(--space-8) !important; }

/* -------------------------------------------------------------------------- */
/* hide-only-visually helper */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; border: 0; padding: 0;
}

/* -------------------------------------------------------------------------- */
/* baseline reset */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: var(--lh);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased; /* subpixel-antialiased; */
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas { max-width: 100%; height: auto; }
img { display: block; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
}

a {
    color: var(--link);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

code, pre, kbd, samp {
    font-family: var(--font-mono);
    font-size: 0.925em;
}
pre {
    background: var(--surface);
    padding: var(--space-4);
    border-radius: 8px;
    overflow: auto;
    border: 1px solid var(--border);
}

/* -------------------------------------------------------------------------- */
/* motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------------------- */
/* Print styles */
@media print {
    :root {
        --bg: #ffffff;
        --text: #000000;
        --border: #d1d5db;
    }
    body {
        background: #fff;
        color: #000;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
    .btn, .badge {
        box-shadow: none;
    }
    /* .footer { */
    /*     border-top: 0; */
    /* } */
}

/* -----------------------------------------------------------------------------
   Font subsetting strategy

   This file declares each weight/style twice under the SAME family name:
   1) a tiny Latin+punctuation subset (@font-face with unicode-range=…)
   2) the full face (no unicode-range) as a transparent fallback

   How it works:
   - The browser loads only the tiny WOFF2 for common text.
   - If a page needs a codepoint outside the subset, it automatically fetches
     the matching full face for that weight/style—no visual jump in metrics.
   - Kerning/ligatures are preserved (we didn’t strip layout features).
   - We serve WOFF2 with font-display: swap for fast first paint.

   Payload impact (potential, with all faces available):
   - Lato Latin (18 faces): ~245 KB tiny vs ~788 KB full → 543 KB saved (69%)
   - 13,600 bytes / face vs 43,800
   - typically load 5 faces: 68 KB vs 219 KB  → 151 KB saved (69%)


   Actual page cost is typically lower (only used weights/styles download), but
   this setup substantially reduces worst-case payload while remaining seamless.
------------------------------------------------------------------------------- */

/* to check glyph coverage, run in the browser console */

/* (function () { */
/*         const allowed = [ */
/*             [0x0020,0x007E],0x00A0,0x00A7,0x00A9,0x00AC,0x00AD,0x00AE,0x00B0,0x00B1,0x00B7,0x00D7,0x2010,0x2013,0x2014,0x2018,0x2019,0x201C,0x201D,0x2022,0x2026,0x2039,0x203A,0x2122,0x2212 */
/*         ]; */
/*         const inAllowed = cp => allowed.some(a => Array.isArray(a) ? (cp>=a[0] && cp<=a[1]) : cp===a); */
/*         const body = document.querySelector('body'); */
/*         const text = body ? body.innerText : ""; */
/*         const bad = []; */
/*         for (const ch of text) { */
/*             const cp = ch.codePointAt(0); */
/*             if (!inAllowed(cp)) bad.push([ch, "U+"+cp.toString(16).toUpperCase()]); */
/*         } */
/*         console.table(bad); */
/*     })(); */

/* Glyph names: ['.notdef', */
/* 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', */

/* 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',  */

/* 'zero', 'one', 'two', 'three', four', 'five', 'six', 'seven', 'eight', 'nine',  */

/* 'plus', 'plusminus', 'minus', 'multiply', 'equal', 'greater', 'less', 'logicalnot', */

/* 'emdash', 'endash', 'hyphen', */

/* 'ellipsis',  */

/* 'quotedbl', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright', 'quotesinglbase', 'quotesingle', -- 'quotesinglbase' U+201A not needed */

/* 'guilsinglleft', 'guilsinglright', - breadcrumb links */

/* 'ampersand', 'asterisk', 'at', 'backslash',  */

/* 'bar', 'braceleft', 'braceright', 'bracketleft', 'bracketright', 'parenleft', 'parenright', 'numbersign',  */

/* 'bullet', 'periodcentered',  */

/* 'asciicircum', 'asciitilde', 'grave',   */

/* 'copyright', 'degree', 'registered', 'section', 'trademark',  */

/* 'colon', 'comma', 'dollar', 'exclam', 'percent', 'period', 'question',  'semicolon', 'slash', 'space', 'underscore', */

/* 'uniFB00', 'uniFB01', 'uniFB02', 'uniFB03', 'uniFB04', */

/* ''glyph00058', 'glyph00059', 'glyph00061', 'glyph00062', 'glyph00081', 'glyph00082', 'glyph00083', 'glyph00084', 'glyph00087', 'glyph00088', 'glyph00119', 'glyph00121', 'glyph00122', 'glyph00123', 'glyph00125', 'glyph00279', 'glyph00429', 'glyph00437', ] */

/* elisp code to generate the CSS definitions:*/

/* (defun lato/make-face (weight name italic) */
/*   (let ((fname (if italic */
/*                    (if (string= name "Regular") */
/*                        "Italic" */
/*                        (format "%sItalic" name)) */
/*                  name)) */
/*         (shape (if italic "italic" "normal"))) */
/*    (format " */
/* /\* -------------------------------------------------------------------------- *\/ */
/* /\* %s *\/ */

/* @font-face { */
/*     font-family: 'Lato Latin'; */
/*     font-style: %s; */
/*     font-weight: %d; */
/*     font-display: swap; */
/*     src: url('../fonts/lato-latin/LatoLatin-%s.woff2') format('woff2'); */
/* } */
/* @font-face { */
/*     font-family: 'Lato Latin'; */
/*     font-style: %s; */
/*     font-weight: %d; */
/*     font-display: swap; */
/*     unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212; */
/*     src: url('../fonts/lato-tiny/LatoTiny-%s.woff2') format('woff2'); */
/* } */
/* " */
/*            fname */
/*            shape weight fname */
/*            shape weight fname))) */

/* (let ((weights '((100 . "Hairline") */
/*                  (200 . "Thin") */
/*                  (300 . "Light") */
/*                  (400 . "Regular") */
/*                  (500 . "Medium") */
/*                  (600 . "Semibold") */
/*                  (700 . "Bold") */
/*                  (800 . "Heavy") */
/*                  (900 . "Black")))) */

/*   (insert "\n\n") */
/*   (--each weights */
/*     (let ((weight (car it)) */
/*           (name (cdr it))) */

/*       (insert (lato/make-face weight name nil)) */
/*       (insert (lato/make-face weight name t)) */
/*       (insert "\n")))) */


/* -------------------------------------------------------------------------- */
/* Hairline */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Hairline.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Hairline.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* HairlineItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 100;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-HairlineItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 100;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-HairlineItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Thin */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Thin.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Thin.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* ThinItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-ThinItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-ThinItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Light */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Light.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* LightItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-LightItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-LightItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Regular */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Regular.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* Italic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Italic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Medium */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Medium.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* MediumItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-MediumItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-MediumItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Semibold */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Semibold.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Semibold.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* SemiboldItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-SemiboldItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-SemiboldItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Bold */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;

    src: url('../fonts/lato-tiny/LatoTiny-Bold.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* BoldItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-BoldItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-BoldItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Heavy */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Heavy.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Heavy.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* HeavyItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-HeavyItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-HeavyItalic.woff2') format('woff2');
}


/* -------------------------------------------------------------------------- */
/* Black */

@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-Black.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-Black.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* BlackItalic */

@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/lato-latin/LatoLatin-BlackItalic.woff2') format('woff2');
}
@font-face {
    font-family: 'Lato Latin';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    unicode-range: U+0020-007E,U+00A0,U+00A7,U+00A9,U+00AC,U+00AD,U+00AE,U+00B0,U+00B1,U+00B7,U+00D7,U+2010,U+2013,U+2014,U+2018,U+2019,U+201C,U+201D,U+2022,U+2026,U+2039,U+203A,U+2122,U+2212;
    src: url('../fonts/lato-tiny/LatoTiny-BlackItalic.woff2') format('woff2');
}

:root {
    /* color steps */
    /* --accent-900: #002814; */
    /* --accent-800: #00331a; */
    /* --accent-700: #004225; */
    /* --accent-600: #0a5a39; */
    /* --accent-500: #1f7a53; */
    /* --accent-400: #2f9e6e; */
    /* --accent-300: #56c092; */
    /* --accent-200: #8bd7b5; */
    /* --accent-100: #c4ecdc; */
    /* --accent-50:  #e8f7ef; */

    --accent-900: #0c1d16;
    --accent-800: #113224;
    --accent-700: #145136;
    --accent-600: #1f7a53;
    --accent-500: #2f9e6e;
    --accent-400: #56c092;
    --accent-300: #8bd7b5;
    --accent-200: #bfeada;
    --accent-100: #e7f7f0;
    --accent-50:  #f2fbf7;
}

/* color system (light) */
:root {
    --bg:         #f9f8f7;
    --text:       #101418;
    --muted-text: #4b5563;
    --border:     #e5e7eb;
    --surface:    #f7fafc;

    --accent:          var(--accent-700);
    --highlight:       var(--accent-50);
    --accent-contrast: #f4f3f2;

    --link:            var(--accent-700);
    --link-hover:      var(--accent-600);
    --focus:           var(--accent-500);
    --accent-muted-bg: var(--accent-50);
    --accent-border:   var(--accent-400);

    --pos: #0f9d58;
    --neu: #64748b;
    --warn:#f9ae8b;
    --neg: #d93025;

    --shadow-0: 0 1px 2px  rgba(0, 0, 0, 0.05);
    --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.12);

    --chart-fg: var(--text);
    --chart-grid: color-mix(in srgb, var(--text) 12%, transparent);

    --chart-1: var(--accent-300);
    --chart-2: #4f46e5;
    --chart-3: #e11d48;
    --chart-4: #0ea5e9;
    --chart-5: #f59e0b;
    --chart-6: #ef4444;
    --chart-7: #a855f7;
    --chart-8: #14b8a6;
    --chart-9: #16a34a;

    --alert-bg:     #FDE8E8;
    --alert-border: #F8B4B4;
    --alert-text:   #9B1C1C;
    --alert-icon:   #C81E1E;

    color-scheme: light dark;
}

/* color system (dark) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:         #0b0f14;
        --text:       #e7edf3;
        --muted-text: #9aa7b4;
        --border:     #1f2937;
        --surface:    #0f141b;

        --accent:          var(--accent-500);
        --highlight:       var(--accent-800);
        --accent-contrast: #ffffff;

        --link:            var(--accent-400);
        --link-hover:      var(--accent-300);
        --focus:           var(--accent-400);
        --accent-muted-bg: color-mix(in srgb, var(--accent) 14%, transparent);
        --accent-border:   var(--accent-500);

        --pos: #34d399;
        --neu: #94a3b8;
        --warn:#f59e0b;
        --neg: #f87171;

        --shadow-0: 0 1px 2px  rgba(0, 0, 0, 0.6);
        --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.6);
        --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.5);

        --chart-fg: var(--text);
        --chart-grid: color-mix(in srgb, var(--text) 12%, transparent);

        --chart-1: var(--accent-300);
        --chart-2: #6366f1;
        --chart-3: #fb7185;
        --chart-4: #38bdf8;
        --chart-5: #f59e0b;
        --chart-6: #f87171;
        --chart-7: #c084fc;
        --chart-8: #2dd4bf;
        --chart-9: #22c55e;

        --chart-grid: color-mix(in srgb, var(--text) 20%, transparent);

        --alert-bg:     #2B1010;
        --alert-border: #7F1D1D;
        --alert-text:   #FECACA;
        --alert-icon:   #FCA5A5;
    }
}

/* -------------------------------------------------------------------------- */
/* Global mappings */
body {
    font-weight: var(--font-weight-regular);
}

h1, h2, h3, h4 {
    line-height: 1.15;
    margin: 0 0 var(--space-4);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1vw + 0.5rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-4); color: var(--text); }

h2 {
    /* h2 defaults to a spaced low small caps */
    font-weight: var(--font-weight-black);
    text-transform: lowercase;
    letter-spacing: 0.1em;
    font-variant-caps: small-caps;
}
h2.plain {
    text-transform: none;
    font-variant-caps: normal;
    letter-spacing: -0.01em;    /*normal*/
}

h3 {
    font-weight: var(--font-weight-medium);
}

.hero-inner h1 {
    font-weight: var(--font-weight-black);
}


p.subhead {
    color: var(--muted-text);
    font-size: clamp(1.05rem, 1vw + 0.5rem, 1.25rem);
    max-width: var(--readw);
}
p.note {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted-text);
    text-align: center;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Text utilities & weights */

.kicker  {
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    font-size: .8rem;
    color: var(--muted-text);
}
.small { font-size: .92rem; }
.emph { font-style: italic; }

.spaced-all-caps {
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    font-weight: var(--font-weight-bold);
}

.muted, figcaption { font-weight: var(--font-weight-light); }
.kicker, .overline { font-weight: var(--font-weight-medium); }

/* Brand/logo styles */
.logo-pre  {
    font-weight: var(--font-weight-black);
    text-transform: capitalize;
    letter-spacing: -0.01em;
    font-variant-caps: normal;
    color: var(--accent-600);
}
.logo-post {
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-variant-caps: normal;
    color: var(--accent-300);
}
.logo      {
    display: inline-flex;
    /* gap: .125em; */
    gap: 0.05em;
}

a.brand { background: none; display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; }
a.brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.logo--nav { font-size: 1.5rem; line-height: 1; }

/* -------------------------------------------------------------------------- */
/* Links */
a {
  position: relative;
  color: var(--link);
  border-radius: 6px;
  padding: 0 .12em; /* room for highlight */
  transition: background-size .18s ease, color .18s ease, box-shadow .18s ease;
  background-image: linear-gradient(transparent 60%, color-mix(in srgb, var(--link) 18%, transparent) 0);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}
a:hover,
a:focus-visible {
  background-size: 100% 100%;
  outline: 0;
}
a:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--link) 35%, transparent);
}

/* External link arrow: add class=\"ext\" */
a.ext::after {
  content: "↗";
  font-family: var(--font-symbol);
  font-size: .9em;
  margin-left: .25em;
  transition: transform .18s ease;
}
a.ext:hover::after,
a.ext:focus-visible::after { transform: translate(2px,-2px); }

/* Follow-me arrow: add class=\"with-arrow\" where you want motion */
.with-arrow::after {
  content: " →";
  font-family: var(--font-symbol);
  transition: transform .18s ease;
}
.with-arrow:hover::after,
.with-arrow:focus-visible::after { transform: translateX(3px); }

/* -------------------------------------------------------------------------- */
/* sticky topnav height */
/* (JS may refine this at runtime based on actual rendered size) */
:root {
    --header-h: 56px;           /* mobile */
    --anchor-gap: 16px;         /* room under the header when jumping */
}
@media (min-width: 48rem) {
    :root { --header-h: 64px; } /* desktop */
}

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

main > .container > section {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
}
main > .container > section:first-child {
    border-top: 0;
}

/* -------------------------------------------------------------------------- */
/* bands */

.band {
    padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band--tint {
    background: var(--accent-muted-bg);
    border-block: 1px solid var(--border);
    padding-left: 4em !important;
}

/* -------------------------------------------------------------------------- */
/* header & footer */

.site-header {
    /* fixed position at the of page */
    min-height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 20;

    backdrop-filter: saturate(180%) blur(6px);
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0;
}

nav a {
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--accent);
}

.site-header ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-header li { display: flex; align-items: center; }

.footer .container { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 48rem) {
    .footer .container { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer {
    padding: var(--space-6) 0;
    color: var(--muted-text);
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: var(--font-weight-light);
}

/* -------------------------------------------------------------------------- */
/* hero section */

section#hero {
    padding: clamp(3rem, 8vw, 8rem) 0;
}
section#hero .subhead {
    margin-top: var(--space-3);
}

/* Utilities --------------------------------------------------------------- */

.no-wrap { white-space: nowrap; }

.indent {margin-left: var(--space-8);}
.indent-half {margin-left: var(--space-6);}

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }  /* optional, handy */

.lead {
    font-size: 1.125rem;
    color: var(--muted-text);
    font-weight: var(--font-weight-light);
}
.muted { color: var(--muted-text); }

.max-read { max-width: var(--readw); }
.read { width: var(--readw); }
.max-w-720 { max-width: 720px; }
.fit { width: fit-content; max-width: 100%; }

.spacer { height: var(--space-6); }

/* -------------------------------------------------------------------------- */
/* surfaces / cards */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: var(--space-5);
}
.card:hover { box-shadow: var(--shadow-2); }

.card {
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
}

/* footer block sits at the bottom; center contents */
.card__footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);    /* room if you add a button next to the badge */
}

/* description list inside cards */
dl .card dt {
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}
dl .card dd {
    margin: 0;
    color: var(--muted-text);
}

.fill {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border-radius: 10px;
}
.fill.plain {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted-text);
}
.fill.highlight {
    border: 1px solid var(--accent-300);
    background: var(--highlight);
    color: var(--text);
}

/* -------------------------------------------------------------------------- */
/* Grid */

.grid {
    display: grid;
    gap: var(--space-5);
    padding: 0 20px;
}
@media (min-width: 48rem) {
    .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------- */
/* KPIs */

.kpi-row {
    display:grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0,1fr));
}
.kpi-row.autofit {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr))
}
@media (max-width: 900px) {
    .kpi-row {
        grid-template-columns: 1fr;
    }
}

.kpi {
    text-align: center;
    padding: 1rem;
}
.kpi .value {
    font-weight: var(--font-weight-black);
    color: var(--accent);
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    line-height: 1.05;
}
.kpi .label {
    font-weight: var(--font-weight-medium);
    margin-top: .25rem;
}
.kpi .note {
    font-weight: var(--font-weight-light);
    color: var(--muted-text);
    margin-top: .1rem;
}


/* -------------------------------------------------------------------------- */
/* Buttons */

button.btn {
    font-size: inherit;
    border-radius: 10px;
}

.button-list { display: inline-flex; gap: 1em; }

.btn, .btn-primary { font-weight: var(--font-weight-bold); }

.btn {
    display: inline-block;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-0);
}
.btn:hover { box-shadow: var(--shadow-2); }
.btn-primary {
    color: var(--accent-contrast);
    background: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 86%, black);
}
.btn-primary:hover { background: var(--accent-600); }
.btn-primary:active { background: var(--accent-700); }

.btn-ghost {
    background: transparent;
    /* border-color: var(--border); */
    color: var(--link);
    border: 1px solid var(--accent-border);
}
.btn-ghost:hover { background: var(--accent-muted-bg); }

/* -------------------------------------------------------------------------- */
/* Badges (e.g. signal labels)  */

.badge          { font-weight: var(--font-weight-bold); }

.badge {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted-text);
}
/* Badges/labels */
.badge--primary {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: color-mix(in srgb, var(--accent) 80%, black);
}
.badge--pos { background: color-mix(in srgb, var(--pos) 12%, var(--surface)); color: var(--pos); border-color: color-mix(in srgb, var(--pos) 35%, var(--border)); }
.badge--neu { background: color-mix(in srgb, var(--neu) 12%, var(--surface)); color: var(--neu); border-color: color-mix(in srgb, var(--neu) 35%, var(--border)); }
.badge--neg { background: color-mix(in srgb, var(--neg) 12%, var(--surface)); color: var(--neg); border-color: color-mix(in srgb, var(--neg) 35%, var(--border)); }

/* -------------------------------------------------------------------------- */
/* FAQ */

.faq dt         { font-weight: var(--font-weight-medium); }
.faq dd         { font-weight: var(--font-weight-regular); }


/* -------------------------------------------------------------------------- */
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-5) 0;
    font-size: 0.95rem;
}
th, td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
thead th {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}
td.trunc {
    max-width: 28rem;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
td ul.compact-list {
    list-style-position: inside;
    margin: 0px;
    padding: 0px;
}
td ul.compact-list li {
    list-style: disc inside;
    margin: 0px;
}

/* -------------------------------------------------------------------------- */
/* lists  */

/* mini list with centered custom markers (• or →) */
.list-mini { list-style: none; padding: 0; margin: 0 0 0 0; }
.list-mini li {
    display: grid;
    grid-template-columns: 1.15rem 1fr;  /* marker column + text */
    column-gap: .5rem;
    align-items: center;                  /* vertically center marker vs text block */
    margin: .25rem 0;
}

/* default bullet */
.list-mini li::before {
    content: "•";
    justify-self: center;                 /* center bullet in its column */
    font-size: .7em;                      /* smaller bullet */
    line-height: 1;
    color: var(--muted-text);
}

/* arrow item: full-size arrow */
.list-mini li.arrow::before {
    content: "→";
    font-family: var(--font-symbol);
    font-size: 1em;
    /* inherit follows the color of the parent */
    /* currentColor follows closest color property value */
    color: currentColor;
}

/* -------------------------------------------------------------------------- */
/* bullets  */

.bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: .6rem;
}
.bullets li strong {
    font-weight: var(--font-weight-medium);
}

/* -------------------------------------------------------------------------- */
/* chips (or tags) */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .6rem;
    margin-top: .75rem;
}

.chip {
    padding: .35rem 1.0rem;
    border-radius: 999px;
    background: var(--accent-muted-bg);
    border: 1px solid var(--accent-border);
    font-weight: var(--font-weight-medium);
}

/* -------------------------------------------------------------------------- */
/* metrics */
table.thread-stats {
    margin-left: var(--space-8);
    width: 25%;
    border: 1px solid var(--border);
}

table.thread-stats td.key {
    text-align: right;
    font-weight: var(--font-weight-bold);
}

/* -------------------------------------------------------------------------- */
/* admin app */
form.fancy {
    display: flex;
    flex-direction: column;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    padding: var(--space-5);

    margin: 3rem auto;
    max-width: 600px;
}

form.fancy h2 {
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
}

form.fancy h3 {
    /* font-weight: var(--font-weight-light); */
}

form.fancy label {
    margin-bottom: 0.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text);
}

form.fancy input,
form.fancy select{
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* form button, form.fancy button { */
/*     padding: 0.5rem 1rem; */
/*     background-color: var(--accent); */
/*     color: var(--accent-contrast); */
/*     border: none; */
/*     border-radius: 4px; */
/*     cursor: pointer; */
/*     font-weight: bold; */
/* } */

form button:hover, form.fancy button:hover {
    background-color: var(--accent-600);
}

form button:active, form.fancy button:active {
    background-color: var(--accent-700);
}

table.workers {
    font-size: 80%;
}

button.inline {
    display: inline-block;
    color: inherit;

    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-0);
    background-color: var(--accent-100);
    border: 1px solid var(--boder);

    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s, box-shadow 0.2s;

    font-weight: var(--font-weight-light);
    font-size: 90%;
}
button.inline:hover {
    background-color: var(--accent-400);
}
button.inline:active,
button.inline:focus {
    background-color: var(--accent-600);
    box-shadow: var(--shadow-1);
}

/* -------------------------------------------------------------------------- */
/* alerts */
/* Component */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: var(--space-4);
    color: var(--alert-text);
    background: var(--alert-bg);
    border: 1px solid var(--alert-border);
    border-radius: 10px;
    box-shadow: var(--shadow-2);
}

.alert .alert__icon {
    flex: none;
    margin-top: 2px;
    color: var(--alert-icon);
}


/* -------------------------------------------------------------------------- */
/* stytch login */
div.oauth, div.email-magic-link {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

span.oauth-logo {
    width: 24px;
    height: 24px;
}

span.oauth-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: var(--space-1);
}

div.form-divider {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

div.form-divider span.left,
div.form-divider span.right{
    flex-grow: 1;
    border-bottom: 2px solid var(--muted-text);
}
div.form-divider span.left {
    margin-right: var(--space-3);
}
div.form-divider span.right {
    margin-left: var(--space-3);
}
div.form-divider span.text {
    flex-grow: 0;
}

/* ──────────────────────────────────────────────────────────
   Section Navigation (left rail)
   ────────────────────────────────────────────────────────── */

.section-nav__group {
    margin-bottom: .5rem;
}

.section-nav__group-title {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    color: var(--muted-text);
    margin: .4rem .25rem .25rem;
}

.section-nav__group .section-nav__list {
    margin-left: .25rem;
    /* ADD THIS IF NOT USING PROGRESS METER */
    /* border-left: 1px dashed color-mix(in srgb, var(--muted-text) 30%, transparent); */
    padding-left: .5rem;
}


.section-nav {
  position: fixed;
  /* align to left edge of the .container */
  /* 220px width */
  /* 20px margin */
  left: max(12px, calc((100vw - var(--maxw)) / 2 + 8px - 220px - 20px));
  top: calc(var(--header-h, 64px) + 12px);
  width: 220px;
  z-index: 15;
  display: grid;
  align-content: start;
  color: var(--muted-text);
  pointer-events: none; /* links re-enable pointer events */
}

.section-nav__inner {
  pointer-events: auto;
  padding: 0;
}

.section-nav__title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: var(--all-caps-space);
  margin-bottom: .25rem;
  color: var(--muted-text);
}

.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .2rem;
}

/* link items */
.section-nav__list a {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  gap: .5rem;
  padding: .25rem .25rem;
  border-radius: 6px;
  color: var(--muted-text);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.section-nav__list a:hover,
.section-nav__list a:focus-visible {
  background: color-mix(in srgb, var(--link) 8%, transparent);
  color: var(--link);
  outline: none;
}

.section-nav__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--muted-text) 55%, transparent);
  justify-self: center;
  transition: background-color .15s ease, transform .15s ease;
}

/* active state */
.section-nav__list a.is-active,
.section-nav__list a[aria-current="true"] {
  color: var(--accent);
  font-weight: var(--font-weight-medium);
}
.section-nav__list a.is-active .section-nav__dot,
.section-nav__list a[aria-current="true"] .section-nav__dot {
  background: var(--accent);
  transform: scale(1.2);
}

/* hide on smaller viewports */
@media (max-width: 1100px) {
  .section-nav { display: none; }
}


/* Progress meter */
.section-nav__inner { position: relative; }

.section-nav__progress {
    position: absolute;
    left: -10px;
    top: 26px;                 /* below "On this page" title */
    bottom: 8px;
    width: 2px;
    pointer-events: none;
}

.section-nav__progress .track {
    position: absolute; inset: 0;
    background: color-mix(in srgb, var(--muted-text) 25%, transparent);
    border-radius: 2px;
    opacity: .8;
}

.section-nav__progress .bar {
    position: absolute; left: 0; right: 0; top: 0;
    height: 0;                   /* JS sets this */
    background: var(--accent);
    border-radius: 2px;
    transition: height .15s linear;
}

/* -------------------------------------------------------------------------- */
/* scroll reveal */

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* optional variants via data attributes */
.reveal[data-reveal="slide-left"]  { transform: translateX(16px); }
.reveal[data-reveal="slide-right"] { transform: translateX(-16px); }
.reveal[data-reveal="zoom-in"]     { transform: scale(.975); }
.reveal[data-reveal="lift"]     { transform: translateY(24px); }
.reveal[data-reveal="tilt-in"]  { transform: rotate(-1.25deg) translateY(10px); }
.reveal[data-reveal="pop"]      { transform: scale(.9); transition-timing-function: cubic-bezier(.2,.8,.2,1); }

/* Let group children use variant poses without needing .reveal */
.reveal-group > *[data-reveal="slide-left"]  { transform: translateX(16px); }
.reveal-group > *[data-reveal="slide-right"] { transform: translateX(-16px); }
.reveal-group > *[data-reveal="zoom-in"]     { transform: scale(.975); }
.reveal-group > *[data-reveal="lift"]  { transform: translateY(24px); }
.reveal-group > *[data-reveal="tilt-in"] { transform: rotate(-1.25deg) translateY(10px); }
.reveal-group > *[data-reveal="pop"]     { transform: scale(.9); transition-timing-function: cubic-bezier(.2,.8,.2,1); }

/* stagger groups: add .reveal-group to a container */

.stagger-fast   { --stagger: 50ms; }
.stagger-normal { --stagger: 70ms; }   /* default */
.stagger-slow   { --stagger: 110ms; }

.reveal-group > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}
.reveal-group.is-visible > * {
    opacity: 1;
    transform: none;
}
.reveal-group.is-visible > * {
    /* simple stagger without JS—uses nth-child */
    transition-delay: calc( var(--stagger, 70ms) * (var(--index, 0)) );
}
.reveal-group.is-visible > *:nth-child(1) { --index: 0; }
.reveal-group.is-visible > *:nth-child(2) { --index: 1; }
.reveal-group.is-visible > *:nth-child(3) { --index: 2; }
.reveal-group.is-visible > *:nth-child(4) { --index: 3; }
.reveal-group.is-visible > *:nth-child(5) { --index: 4; }
.reveal-group.is-visible > *:nth-child(6) { --index: 5; }
.reveal-group.is-visible > *:nth-child(7) { --index: 6; }
.reveal-group.is-visible > *:nth-child(8) { --index: 7; }
.reveal-group.is-visible > *:nth-child(9) { --index: 8; }
.reveal-group.is-visible > *:nth-child(10) { --index: 9; }

/* honor reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-group > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* -------------------------------------------------------------------------- */
/* fold scrolling */

/* main is the scrolling element so that TOC and aside elements stay
   fixed on the page */
main.snap {
    /* Make it scroll */
    height: 100vh;              /* fallback */
    height: 100dvh;             /* dynamic on modern mobile */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS momentum */

    /* Snap + anchor offset live on the scroller */
    scroll-snap-type: none;
    scroll-behavior: smooth;       /* for programmatic jumps */
}

/* TODO: write a JS function which applies this class when we're
 * inside a "fold" section, but removes it otherwise.  makes it a
 * "hard snap" for the fold sections, which is nice. */
main.snap.snap-hard { scroll-snap-type: y mandatory; }

/* "fold" sections fill the page */
main.snap > .container > .fold {
    /* fill the viewport minus the header */
    height: calc(100vh  - var(--header-h)); /* fallback */
    height: calc(100dvh - var(--header-h));
    overflow: clip;             /* clip prevents content affecting size calcs */

    scroll-snap-align: start;   /* snap to the top edge of the scroller */
    scroll-snap-stop: always;   /* make them grabby */
}

main.snap > .container > section:not(.fold) {
    scroll-snap-align: start;
}

/* 4) Native anchors land nicely anywhere on the page */
[id] { scroll-margin-top: var(--header-h); }

/* 5) If you use content-visibility elsewhere, ensure targets reveal immediately */
[id]:target { content-visibility: visible; contain-intrinsic-size: auto; }


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

.fold {
    display: flex;
    align-items: center;
    position: relative;
    padding-block: clamp(2rem, 6vw, 8rem);
}

.fold .hero-inner {
    max-width: var(--readw);
}

/* crisp seam into below-the-fold content */
.below-fold {
    margin-top: -1px;                 /* avoid 1px gap from subpixel rounding */
    border-top: 1px solid var(--border);
}

/* -------------------------------------------------------------------------- */
/* scroll cue */

.scroll-cue {
    position: absolute;
    left: 50%;
    /* bottom: var(--space-5); */
    bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
}
.scroll-cue::after {
    content: "↓";
    font-family: var(--font-symbol);
    display: block;
    text-align: center;
    margin-top: 0.25rem;
    animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue::after { animation: none; }
}

/* -------------------------------------------------------------------------- */
/* sticky CTA button */

.sticky-cta {
    position: sticky;
    bottom: var(--space-4);
    display: flex;
    justify-content: center;
    z-index: 10;
}
.sticky-cta { opacity: 0; transition: opacity .2s ease; }
body.past-tldr .sticky-cta { opacity: 1; }

.sticky-cta .btn { box-shadow: var(--shadow-2); }
@media (min-width: 48rem) { .sticky-cta { display: none; } } /* mobile only */

/* details */

details { margin: var(--space-3) 0; }
summary { cursor: pointer; font-weight: var(--font-weight-medium); }
summary::-webkit-details-marker { display: none; }

/* case studies -------------------------------------------- */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.case-body {
    overflow: hidden;
    will-change: height;
}
/* case body starts closed */
.case-body { height: 0; }
/* when the details is open, height should be natural */
details.case[open] .case-body { height: auto; }

@media (prefers-reduced-motion: no-preference) {
    .case-body {
        transition: height 500ms ease;
    }
}

.case {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.case summary {
    cursor: pointer;
    list-style: none;
}
.case summary::-webkit-details-marker { display: none; }

.indent-0 { margin-left: 0; }
.indent-1 { margin-left: 2rem; }
.indent-2 { margin-left: 4rem; }

/* plots */
div.bar-schematic {
    height: 280px;
    max-width: 600px;
}

.line-schematic { width: 100%; height: 300px; }

figure { margin: 0; }
figcaption { color: var(--muted-text); font-size: .95rem; }

.legend { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.legend .item { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted-text); }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; }
.legend .sw1 { background: var(--chart-1); }   /* dataset 1 */
.legend .sw2 { background: var(--chart-2); }   /* dataset 2 */
.legend .sw3 { background: var(--chart-3); }   /* dataset 3 */
.legend .sw4 { background: var(--chart-4); }   /* dataset 4 */
.legend .sw5 { background: var(--chart-5); }   /* dataset 5 */
.legend .sw6 { background: var(--chart-6); }   /* dataset 6 */
.legend .sw7 { background: var(--chart-7); }   /* dataset 7 */
.legend .sw8 { background: var(--chart-8); }   /* dataset 8 */

/* ──────────────────────────────────────────────────────────
   Error pages (404/500)
   ────────────────────────────────────────────────────────── */

.error {
  /* centered, breathable, looks good even if nav is sticky */
  min-height: min(70vh, 680px);
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  display: grid;
  grid-auto-rows: min-content;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.error .kicker {
  color: var(--accent);
}

.error h1 {
  font-weight: var(--font-weight-black);
  font-size: clamp(1.75rem, 5.2vw, 2.5rem);
  line-height: 1.1;
  margin: 0.25rem 0 0.25rem;
}

.error p.max-read {
  max-width: 62ch;
}

.error .btn + .btn {
  margin-left: .5rem;
}

/* Optional decorative illustration badge (use by adding <div class="error-illus"></div>) */
.error-illus {
  width: clamp(72px, 10vw, 120px);
  height: clamp(72px, 10vw, 120px);
  border-radius: 999px;
  background: var(--accent-muted-bg);
  border: 2px solid var(--accent-400, #2f9e6e);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: var(--font-weight-black);
  font-family: var(--font-sans);
  user-select: none;
}

/* If you want big code numerals inside the badge, add data-code="404" or "500" on the .error section */
.error[data-code="400"] .error-illus::after { content: "400"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="401"] .error-illus::after { content: "401"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="403"] .error-illus::after { content: "403"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="404"] .error-illus::after { content: "404"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="405"] .error-illus::after { content: "405"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="406"] .error-illus::after { content: "406"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="409"] .error-illus::after { content: "409"; font-size: clamp(28px, 5vw, 40px); }
.error[data-code="500"] .error-illus::after { content: "500"; font-size: clamp(28px, 5vw, 40px); }

@media (prefers-color-scheme: dark) {
  .error-illus { border-color: var(--accent-500); }
}

/* Keep links legible inside error pages */
.error a { text-decoration: none; }

/* Tighten vertical rhythm on small screens */
@media (max-width: 520px) {
  .error { gap: 0.6rem; }
  .error .btn + .btn { margin-left: .4rem; }
}
