/* Built: 2026-11-24T04:39:59.812950Z  Version: fcae3e6de67f24f4 */

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

   Bitstream Charter (4 faces): full faces load transparently.
   (Subset removed as payload savings were minimal, ~3-4kb per font).
------------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/* regular */

@font-face {
    font-family: 'Bitstream Charter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/public/fonts/charter/charter_regular-v01.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* bold */

@font-face {
    font-family: 'Bitstream Charter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/public/fonts/charter/charter_bold-v01.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* italic */

@font-face {
    font-family: 'Bitstream Charter';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/public/fonts/charter/charter_italic-v01.woff2') format('woff2');
}

/* -------------------------------------------------------------------------- */
/* bold italic */

@font-face {
    font-family: 'Bitstream Charter';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('/public/fonts/charter/charter_bold_italic-v01.woff2') format('woff2');
}
@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_2_thin-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_2_thin_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_2_thin_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_2_thin_italic_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_3_book-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_3_book_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_3_book_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_3_book_italic_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_4_medium-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_4_medium_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_4_medium_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_4_medium_italic_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_6_semibold-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_6_semibold_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_6_semibold_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_6_semibold_italic_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_7_bold-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_7_bold_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_7_bold_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_7_bold_italic_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_8_black-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_8_black_tiny-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    size-adjust: 110%;
    src: url('/public/fonts/concourse/concourse_ot_8_black_italic-v01.woff2') format('woff2');
}

@font-face {
    font-family: 'Concourse';
    font-style: italic;
    font-weight: 800;
    font-display: swap;
    size-adjust: 110%;
    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+2190-2199, U+2212;
    src: url('/public/fonts/concourse-tiny/concourse_ot_8_black_italic_tiny-v01.woff2') format('woff2');
}
/* -------------------------------------------------------------------------- */
/* typography */
:root {
    --font-serif: "Bitstream Charter", Georgia, "Times New Roman", Times, serif;
    --font-sans: "Concourse", 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";

    --font-weight-hairline: 100;
    --font-weight-thin:     200; /*2 = thin*/
    --font-weight-light:    300;
    --font-weight-regular:  400; /*3 = book*/
    --font-weight-medium:   500; /*4 = medium*/
    --font-weight-heavy:    600; /*6 = semibold*/
    --font-weight-bold:     700; /*7 = bold*/
    --font-weight-black:    800; /*8 = black*/

    --all-caps-space: .08em;
    --all-caps-word-space: 0.12em;

    --line-height-serif: 1.45;
    --line-height-sans: 1.35;

    --font-size-hugge:   36pt;
    --font-size-huge:    24pt;
    --font-size-bigger:  21pt;
    --font-size-big:     18pt;
    --font-size-larger:  16pt;
    --font-size-large:   14pt;
    --font-size-normal:  12pt;
    --font-size-small:   10pt;
    --font-size-smaller: 9pt;
    --font-size-tiny:    8pt;

    --border-radius: 10px;
    --border-radius-large: 14px;

    --hover-transition: 0.2s ease-in-out;
}

.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-heavy   { font-weight: var(--font-weight-heavy);   }
.weight-bold    { font-weight: var(--font-weight-bold);    }
.weight-black   { font-weight: var(--font-weight-black);   }

.size-hugge   { font-size: var(--font-size-hugge);   }
.size-huge    { font-size: var(--font-size-huge);    }
.size-bigger  { font-size: var(--font-size-bigger);  }
.size-big     { font-size: var(--font-size-big);     }
.size-larger  { font-size: var(--font-size-larger);  }
.size-large   { font-size: var(--font-size-large);   }
.size-normal  { font-size: var(--font-size-normal);  }
.size-small   { font-size: var(--font-size-small);   }
.size-smaller { font-size: var(--font-size-smaller); }
.size-tiny    { font-size: var(--font-size-tiny);    }

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

/* TODO: font size scale */

/* -------------------------------------------------------------------------- */
/* 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 */
    --truncw: 31ch;
}

/* 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; }

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

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: var(--space-1) !important; }
.mr-2 { margin-right: var(--space-2) !important; }
.mr-3 { margin-right: var(--space-3) !important; }
.mr-4 { margin-right: var(--space-4) !important; }
.mr-5 { margin-right: var(--space-5) !important; }
.mr-6 { margin-right: var(--space-6) !important; }
.mr-7 { margin-right: var(--space-7) !important; }
.mr-8 { margin-right: 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 */

/* Visually hide while keeping content accessible to assistive tech.
   Use for: skip links, helper text for screen readers, form controls that
   are "re-skinned" (e.g., radio inputs behind custom tabs), and any content
   that should be announced but not seen.
   Why: avoids display:none/visibility:hidden (which remove from the
   accessibility tree) while keeping elements focusable and operable. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;

  /* `clip` is deprecated but still broad; `clip-path` is the modern form. */
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* Same as above, but only hidden when *not* focused/active.
   Use for: "Skip to content" links that should appear when tabbed to. */
.visually-hidden-focusable:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

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

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

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

:focus-visible {
    outline: none;
    /* outline: 2px solid var(--focus); */
    /* outline-offset: 3px; */
    box-shadow: var(--focus-ring);
}

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

code, pre, kbd, samp {
    font-family: var(--font-mono);
    font-size: var(--font-size-small);
}
pre {
    /* background: var(--surface); */
    background: var(--bg);
    padding: var(--space-4);
    border-radius: var(--border-radius);
    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; */
    /* } */
}

:root {

    --brand-0: #e3f2ec;
    --brand-10: #c8e4d8;
    --brand-20: #acd7c5;
    --brand-30: #91cab1;
    --brand-40: #75bd9e;
    --brand-50: #5aaf8a;
    --brand-100: #50a580;
    --brand-200: #499775;
    --brand-300: #428a6b;
    --brand-400: #3c7c60;
    --brand-500: #326750;
    /*hunter green*/
    --brand-600: #2e604b;
    --brand-700: #285340;
    --brand-800: #214535;
    --brand-900: #1b372b;

    --brand: var(--brand-500);
    --brand-dark: var(--brand-700);
    --brand-light: var(--brand-300);

    /* Neutral scale */
    --neutral-20: #f3f5f7;
    --neutral-30: #e7ebee;
    --neutral-40: #dbe2e6;
    --neutral-50: #ced8de;
    --neutral-100: #b6c4cd;
    --neutral-200: #9eb1bd;
    --neutral-300: #869dac;
    --neutral-400: #6d899c;
    --neutral-500: #5b7486;
    --neutral-600: #4a5f6d;
    --neutral-700: #36454f;
    /*charcoal*/
    --neutral-800: #29353d;
    --neutral-900: #192024;


    /* surface */
    --surface-0: #fdfbf7;
    /*baby powder*/
    --surface-1: #fbf7ef;
    /*floral white*/
    --surface-50: #faf4e8;
    --surface-100: #f8efde;
    /*old lace*/
    --surface-200: #f4e6cd;
    --surface-300: #f1debc;
    --surface-400: #edd6ab;
    --surface-500: #eace9a;
    --surface-600: #e6c689;
    --surface-700: #e2bd78;
    --surface-800: #dfb568;
    --surface-900: #dbad57;


    --dsurface-0: #91dff3;
    --dsurface-10: #6cd5ef;
    --dsurface-20: #47caeb;
    --dsurface-30: #23bfe7;
    --dsurface-40: #16a6ca;
    --dsurface-50: #1398b9;
    --dsurface-100: #1188a6;
    --dsurface-200: #107994;
    /*cerulean*/
    --dsurface-300: #0e6a81;
    --dsurface-400: #0c5b6f;
    --dsurface-500: #0a4c5c;
    --dsurface-600: #073642;
    /*midnight green*/
    --dsurface-700: #062d37;
    --dsurface-800: #041e25;
    --dsurface-900: #020f12;

    /* TODO: alert scale */

    /* for plots */
    --plot-brand: var(--brand-500);
    --plot-goldenrod: #b8860b;
    /* darkgoldenrod */
    --plot-firebrick: #b22222;
    --plot-midnight: #191970;

    color-scheme: light dark;
}

/* ---------- Color system (light) ---------- */
:root {
    /* Base */
    --bg: var(--surface-0);
    --text: var(--neutral-800);
    --muted-text: var(--neutral-400);
    --border: var(--surface-200);
    --border-strong: var(--surface-400);
    --neutral-border: var(--neutral-100);
    --light-surface: var(--surface-50);
    --dark-surface: var(--surface-200);
    --contrast-surface: var(--dark-surface);
    --surface: var(--surface-100);
    --select-arrow: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    --navbar: var(--neutral-700);
    --navbar-text: #f4f7f9;
    /* --navbar-text: var(--brand-0); */

    /* Accent */
    --accent: var(--brand-600);
    --accent-hover: var(--brand-800);
    --accent-active: var(--brand-900);
    --accent-contrast: #ffffff;
    --highlight: var(--brand-50);
    --accent-muted-bg: var(--brand-10);
    --accent-muted-solid: var(--brand-10);
    --accent-border: var(--brand-400);
    --accent-muted-border: var(--brand-200);

    /* secondary */
    --secondary: var(--neutral-50);
    --secondary-hover: var(--neutral-100);
    --secondary-active: var(--neutral-200);

    /* Links & focus */
    --link: var(--brand-700);
    --link-hover: var(--brand-600);
    --link-hover-bg: var(--brand-0);
    --focus: var(--brand-500);
    --focus-ring: 0 0 4px 2px color-mix(in srgb, var(--focus) 75%, transparent);

    /* Controls */
    --control: var(--surface-200);
    --control-hover: var(--surface-300);
    --control-active: var(--surface-400);
    --control-border: var(--surface-500);
    --control-fg: var(--neutral-800);
    --neutral-control: var(--neutral-50);

    /* Status */
    --pos: #148f6a;
    --neu: #64748b;
    --warn: #b26e2d;
    --neg: #b5382f;

    /* Shadows */
    --shadow-0: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-1: 4px 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-2: 8px 16px 32px rgba(0, 0, 0, 0.12);

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

    --chart-1: var(--plot-brand);
    --chart-2: var(--plot-goldenrod);
    --chart-3: var(--plot-firebrick);
    --chart-4: var(--plot-midnight);
    --chart-5: #a855f7;
    --chart-6: #16a34a;
    --chart-7: #f59e0b;
    --chart-8: #e11d48;
    --chart-9: #4f46e5;
    /* --chart-4:    #0ea5e9; */
    /* --chart-6:    #ef4444; */
    /* --chart-8:    #14b8a6; */

    /* Alerts (subtle on light) */
    --alert-bg: #fdecec;
    --alert-border: #f3b3b3;
    --alert-text: #7f1d1d;
    --alert-icon: #b91c1c;

    /* Success messages (subtle on light) */
    --success-bg: #ecfdf3;
    --success-border: #86efac;
    --success-text: #14532d;
    --success-icon: #16a34a;
}

/* ---------- Color system (dark variables macro) ---------- */
:root[data-theme="dark"] {
    /* Base */
    --bg: var(--dsurface-700);
    --text: #e7edf3;
    --muted-text: #9aa7b4;
    --border: var(--dsurface-500);
    --border-strong: var(--dsurface-400);
    --light-surface: var(--dsurface-500);
    --dark-surface: var(--dsurface-800);
    --contrast-surface: var(--light-surface);
    --surface: var(--dsurface-600);
    --select-arrow: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    --navbar: var(--neutral-700);
    --navbar-text: #dbe3ea;

    /* Accent */
    --accent: var(--brand-300);
    --accent-contrast: #ffffff;
    --highlight: var(--brand-800);
    --accent-muted-bg: color-mix(in srgb, var(--accent) 18%, transparent);
    --accent-muted-solid: color-mix(in srgb, var(--accent) 18%, var(--bg));
    --accent-border: var(--brand-500);

    /* secondary */
    --secondary: var(--neutral-800);
    --secondary-hover: var(--neutral-700);
    --secondary-active: var(--neutral-600);

    /* Links & focus */
    --link: var(--brand-300);
    --link-hover: var(--brand-200);
    --link-hover-bg: color-mix(in srgb, var(--brand-300) 30%, transparent);
    --focus: var(--brand-300);
    --focus-ring: 0 0 6px 3px color-mix(in srgb, var(--focus) 90%, transparent);

    /* Controls */
    --control-fg: var(--text);
    --control: color-mix(in srgb, var(--dsurface-500) 50%, var(--dsurface-600));
    --control-hover: var(--dsurface-500);
    --control-active: var(--dsurface-600);
    --control-border: var(--dsurface-300);

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

    /* Shadows */
    --shadow-0: 0 1px 2px rgba(0, 0, 0, 0.55);
    --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.55);
    --shadow-2: 0 16px 32px rgba(0, 0, 0, 0.50);

    /* Charts */
    --chart-fg: var(--text);
    --chart-grid: color-mix(in srgb, var(--text) 22%, transparent);
    /* keep same hues, lift luminance for contrast on dark */
    --chart-1: color-mix(in srgb, var(--plot-brand) 78%, #ffffff);
    --chart-2: color-mix(in srgb, var(--plot-goldenrod) 78%, #ffffff);
    --chart-3: color-mix(in srgb, var(--plot-firebrick) 78%, #ffffff);
    --chart-4: color-mix(in srgb, var(--plot-midnight) 78%, #ffffff);

    --chart-5: #c084fc;
    --chart-6: #22c55e;
    --chart-7: #f87171;
    --chart-8: #38bdf8;
    --chart-9: #f59e0b;
    /* --chart-2:    #6366f1; */
    /* --chart-3:    #fb7185; */
    /* --chart-8:    #2dd4bf; */

    /* Alerts (high-contrast on dark) */
    --alert-bg: #3f1414;
    --alert-border: #991b1b;
    --alert-text: #fecaca;
    --alert-icon: #f87171;

    /* Success messages (high-contrast on dark) */
    --success-bg: #0f2417;
    --success-border: #166534;
    --success-text: #bbf7d0;
    --success-icon: #86efac;
}

/* ---------- Color system (dark default) ---------- */
/* Duplicated for no-JS environments: this ensures the site properly respects
   OS-level dark mode even when JavaScript is completely disabled. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        /* Base */
        --bg: var(--dsurface-700);
        --text: #e7edf3;
        --muted-text: #9aa7b4;
        --border: var(--dsurface-500);
        --border-strong: var(--dsurface-400);
        --light-surface: var(--dsurface-500);
        --dark-surface: var(--dsurface-800);
        --contrast-surface: var(--light-surface);
        --surface: var(--dsurface-600);
        --select-arrow: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
        --navbar: var(--neutral-700);
        --navbar-text: #dbe3ea;

        /* Accent */
        --accent: var(--brand-300);
        --accent-contrast: #ffffff;
        --highlight: var(--brand-800);
        --accent-muted-bg: color-mix(in srgb, var(--accent) 18%, transparent);
        --accent-muted-solid: color-mix(in srgb, var(--accent) 18%, var(--bg));
        --accent-border: var(--brand-500);

        /* secondary */
        --secondary: var(--neutral-800);
        --secondary-hover: var(--neutral-700);
        --secondary-active: var(--neutral-600);

        /* Links & focus */
        --link: var(--brand-300);
        --link-hover: var(--brand-200);
        --link-hover-bg: color-mix(in srgb, var(--brand-300) 15%, transparent);
        --focus: var(--brand-300);
        --focus-ring: 0 0 6px 3px color-mix(in srgb, var(--focus) 90%, transparent);

        /* Controls */
        --control-fg: var(--text);
        --control: color-mix(in srgb, var(--dsurface-500) 50%, var(--dsurface-600));
        --control-hover: var(--dsurface-500);
        --control-active: var(--dsurface-800);
        --control-border: var(--dsurface-300);

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

        /* Shadows */
        --shadow-0: 0 1px 2px rgba(0, 0, 0, 0.55);
        --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.55);
        --shadow-2: 0 16px 32px rgba(0, 0, 0, 0.50);

        /* Charts */
        --chart-fg: var(--text);
        --chart-grid: color-mix(in srgb, var(--text) 22%, transparent);
        --chart-1: color-mix(in srgb, var(--plot-brand) 78%, #ffffff);
        --chart-2: color-mix(in srgb, var(--plot-goldenrod) 78%, #ffffff);
        --chart-3: color-mix(in srgb, var(--plot-firebrick) 78%, #ffffff);
        --chart-4: color-mix(in srgb, var(--plot-midnight) 78%, #ffffff);

        --chart-5: #c084fc;
        --chart-6: #22c55e;
        --chart-7: #f87171;
        --chart-8: #38bdf8;
        --chart-9: #f59e0b;

        /* Alerts (high-contrast on dark) */
        --alert-bg: #3f1414;
        --alert-border: #991b1b;
        --alert-text: #fecaca;
        --alert-icon: #f87171;

        /* Success messages (high-contrast on dark) */
        --success-bg: #0f2417;
        --success-border: #166534;
        --success-text: #bbf7d0;
        --success-icon: #86efac;
    }
}

/* ---------- Theme Image Toggles ---------- */
.dark-logo {
    display: none;
}

.light-logo {
    display: inline-block;
}

:root[data-theme="dark"] .light-logo {
    display: none;
}

:root[data-theme="dark"] .dark-logo {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .light-logo {
        display: none;
    }

    :root:not([data-theme="light"]) .dark-logo {
        display: inline-block;
    }
}

/* -------------------------------------------------------------------------- */
/* Global mappings */

html, body {
    font-size: var(--font-size-normal);
}

body {
    font-weight: var(--font-weight-regular);
    /* -webkit-font-smoothing: subpixel-antialiased; NB set in base.css */
}

h1, h2, h3, h4 {
    line-height: 1.15;
    margin: 0 0 var(--space-4);
    letter-spacing: -0.01em;
}
h1 { font-size: var(--font-size-hugge); }
h2 { font-size: var(--font-size-huge); }
h3 { font-size: var(--font-size-big); }
h4 { font-size: var(--font-size-large); }

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

h1 {
    margin-top: var(--space-6);
    text-align: center;
}

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; */
    font-style: italic;
}
h2.plain {
    text-transform: none;
    font-variant-caps: normal;
    letter-spacing: -0.01em;    /*normal*/
}

h3 {
    font-weight: var(--font-weight-bold);
    font-style: italic;
}

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

/* -------------------------------------------------------------------------- */
/* paragraph types */

.subhead {
    color: var(--muted-text);
    font-size: var(--font-size-larger);
    max-width: var(--readw);
}
.note {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--neutral-border);
    border-radius: var(--border-radius);
    /* background: var(--surface); */
    background: color-mix(in srgb, var(--accent) 6%, transparent);
    color: var(--muted-text);
    font-size: var(--font-size-small);
    font-style: italic;
}
.note strong {
    color: color-mix(in srgb, var(--text) 85%, transparent);
    font-style: normal;
}

.note p:last-child {
    margin-bottom: 0;
}

.hint {
    margin: var(--space-2) 0 0;
    color: var(--muted-text);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-small);
}


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

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

.spaced-all-caps {
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    word-spacing: var(--all-caps-word-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: 700;
    text-transform: capitalize;
    letter-spacing: -0.01em;
    font-variant-caps: normal;
    color: var(--accent-600);
}
.logo-post {
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-variant-caps: normal;
    color: var(--accent-300);
}
.kern-a {
    margin-left: -0.08em;
    margin-right: -0.08em;
}
.logo      {
    font-family: var(--font-sans);
    font-style: normal;

    display: inline-flex;
    /* gap: .125em; */
    gap: 0.05em;
}

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

/* -------------------------------------------------------------------------- */
/* 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: 1.5px solid var(--neutral-border);
}
main > .container > section:first-child {
    border-top: 0;
}

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

.band {
    padding-block: var(--space-8);
}
.band--tint {
    background: var(--accent-muted-bg);
    border-block: 1.5px solid var(--neutral-border);
    padding-left: var(--space-8) !important;
}

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

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

    background: var(--navbar);
    color: var(--navbar-text);
    border-bottom: 1.5px solid var(--neutral-border);

    font-family: var(--font-sans);
    font-size: var(--font-size-small);
}

.site-header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
}

@media (max-width: 72rem){      /* NB should match --maxw but variables dont resolve here*/
    .site-header nav {
        padding: var(--space-3) var(--space-3);
    }
}

.site-header nav a {
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--navbar-text);
    /* background-image: linear-gradient(transparent 30%, color-mix(in srgb, var(--navbar-text) 40%, transparent)); */
    background-image: none;
    text-decoration: none;
}
.site-header nav a:hover {
    background: color-mix(in srgb, var(--navbar-text) 20%, transparent);
    box-shadow: 0 0 25px color-mix(in srgb, var(--navbar-text) 50%, transparent);
    text-decoration: none;
}



.site-header a.btn-primary:hover {
    background: var(--brand-400);
}

.site-header a.btn-primary:active {
    background: var(--brand-300);
}

.site-header ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.site-header li { display: flex; align-items: center; }

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

.footer {
    margin-top: var(--space-7);
    padding: var(--space-6) 0;
    color: var(--muted-text);
    border-top: 1.5px solid var(--neutral-border);
    font-size: var(--font-size-small);
    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: var(--font-size-large);
    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); }

@media (max-width: 950px) {
    .hide-tablet {
        display: none!important;
    }
}

@media (max-width: 600px) {
    .hide-mobile {
        display: none!important;
    }
}

.wordspace {
    margin-right: var(--all-caps-word-space);
}

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


.button-list { display: inline-flex; gap: var(--space-4); }

/* NB copy the same styling twice */
button.btn {
    appearance: none;

    font-size: var(--font-size-smaller);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);

    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    word-spacing: var(--all-caps-word-space);
    font-weight: var(--font-weight-heavy);
}
.btn {
    font-size: var(--font-size-smaller);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);

    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    word-spacing: var(--all-caps-word-space);
    font-weight: var(--font-weight-heavy);
}
.btn-primary, .btn-ghost {
    font-weight: var(--font-weight-heavy);
}

.btn {
    /* display: inline-block; */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    border: 1.5px solid transparent;
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-0);
    transition: var(--hover-transition);
}
.btn-big{
    padding: var(--space-3) var(--space-4);
}
.btn:hover { box-shadow: var(--shadow-1); }
.btn-primary {
    color: var(--accent-contrast);
    background: var(--accent);
    border: 1.5px solid color-mix(in srgb, var(--accent) 86%, black);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1.5px solid var(--text);
}

a.btn:hover {
    text-decoration: none!important;
}

.btn-secondary:hover  { background: var(--secondary-hover); }
.btn-secondary:active { background: var(--secondary-active); }

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


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

    padding: var(--space-1) var(--space-2);
    border-radius: var(--space-2);
    box-shadow: var(--shadow-0);
    background-color: var(--secondary);
    border: 1.5px solid var(--neutral-border);

    text-align: center;
    white-space: nowrap;
    transition: var(--hover-transition);

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


/* -------------------------------------------------------------------------- */
/* Semantic Action Buttons */

/* Destructive Action */
.btn-danger,
a.inline.btn-danger,
button.inline.btn-danger {
    background: var(--alert-bg);
    color: var(--alert-text);
    border: 1.5px solid var(--alert-border);
}
.btn-danger:hover,
a.inline.btn-danger:hover,
button.inline.btn-danger:hover {
    background: color-mix(in srgb, var(--alert-bg) 85%, var(--alert-icon));
    border-color: var(--alert-icon);
    color: var(--alert-text);
}
.btn-danger:active,
a.inline.btn-danger:active,
button.inline.btn-danger:active {
    background: color-mix(in srgb, var(--alert-bg) 70%, var(--alert-icon));
}

/* Warning Action */
.btn-warn,
a.inline.btn-warn,
button.inline.btn-warn {
    background: transparent;
    color: var(--warn);
    border: 1.5px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.btn-warn:hover,
a.inline.btn-warn:hover,
button.inline.btn-warn:hover {
    background: color-mix(in srgb, var(--warn) 10%, transparent);
    border-color: var(--warn);
}
.btn-warn:active,
a.inline.btn-warn:active,
button.inline.btn-warn:active {
    background: color-mix(in srgb, var(--warn) 20%, transparent);
}

/* Neutral Action */
.btn-neu,
a.inline.btn-neu,
button.inline.btn-neu {
    background: transparent;
    color: var(--link);
    border: 1.5px solid var(--accent-border);
}
.btn-neu:hover,
a.inline.btn-neu:hover,
button.inline.btn-neu:hover {
    background: color-mix(in srgb, var(--link) 10%, transparent);
    border-color: var(--neu);
}
.btn-neu:active,
a.inline.btn-neu:active,
button.inline.btn-neu:active {
    background: color-mix(in srgb, var(--link) 20%, transparent);
}

/* Ensure pause/unpause buttons align perfectly in the actions column */
.btn-status-toggle {
    min-width: 115px;
}

/* -------------------------------------------------------------------------- */
/* text input */

input[type=datetime-local],
input[type=number],
input[type=tel],
input[type=text],
input[type=email],
input[type=password],
select,
textarea {
    width: 100%;
    padding: var(--space-3);
    box-sizing: border-box;

    background: var(--bg);
    color: var(--text);
    font-size: var(--font-size-smaller);

    border: 1.5px solid var(--neutral-border);
    border-radius: var(--space-2);
}

input[type=datetime-local]::placeholder,
input[type=number]::placeholder,
input[type=tel]::placeholder,
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
textarea::placeholder {
    color: var(--muted-text);
    opacity: 1;
    /* Firefox defaults to lower opacity */
}

input[type=tel],
input[type=text],
input[type=password] {
    font-family: var(--font-mono);
}

textarea {
    resize: vertical;
    min-height: 9rem;
}

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

/* -------------------------------------------------------------------------- */
/* select */

select {
    -webkit-appearance: none;
    /* removes default styles for some browsers */
    -moz-appearance: none;
    appearance: none;

    padding: var(--space-2);

    font-size: var(--font-size-smaller);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-regular);

    border: 1.5px solid var(--neutral-border);
    border-radius: var(--border-radius);
    background-color: var(--bg);

    /* Add custom dropdown arrow */
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 10px center;


    /* width: 100%; */
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* fieldset */

fieldset {
    border-radius: var(--border-radius);
    border: 1.5px solid var(--muted-text);
    color: var(--text);
    box-shadow: var(--shadow-0);
}

.field {
    margin-block: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

fieldset .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
}
/* -------------------------------------------------------------------------- */
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-5) 0;
    font-size: var(--font-size-small);
    font-family: var(--font-sans);
}
th {
    text-transform: uppercase;
    letter-spacing: var(--all-caps-space);
    word-spacing: var(--all-caps-word-space);
    font-weight: var(--font-weight-heavy);
}
th, td {
    padding: var(--space-3) var(--space-3);
    border-bottom: 1.5px solid var(--neutral-border);
    text-align: left;
}
thead th {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 1;
}
td.trunc {
    max-width: var(--truncw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
td ul.compact-list {
    list-style-position: inside;
    margin: 0;
    padding: 0;
}
td ul.compact-list li {
    list-style: disc inside;
    margin: 0;
}

/* special handling for tables inside card elements */

.card thead th {
    background: var(--contrast-surface);
}

/* Round the top-left corner of the first header cell */
.card thead th:first-child {
    border-top-left-radius: var(--border-radius, 8px);
}

/* Round the top-right corner of the last header cell */
.card thead th:last-child {
    border-top-right-radius: var(--border-radius, 8px);
}

:root { color-scheme: light; }
@media screen {
  .site-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
  .site-page > main { flex: 1 0 auto; width: 100%; }
  .site-page > .site-header, .site-page > .site-footer { flex-shrink: 0; }
}
.site-footer { margin-top: 3rem; border-top: 1px solid #d8ddd4; color: #66705f; font-family: var(--font-sans); font-size: .75rem; }
.site-footer > .container { padding-block: 1rem; }
.site-footer a { color: inherit; text-decoration: underline; }
.site-footer a:hover { color: #344f2b; }
.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.table-scroll { overflow-x: auto; }
.collection-table, .artifact-table { width: 100%; border-collapse: collapse; }
.collection-table th, .collection-table td, .artifact-table th, .artifact-table td { padding: .85rem .7rem; border-bottom: 1px solid #d8ddd4; text-align: left; }
.collection-table th:first-child, .artifact-table th:first-child { width: 40%; }
.catalog-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; }
.catalog-filters .catalog-search { flex: 1 1 20rem; }
.catalog-filters label { margin: 0; }
.collection-table th a, .artifact-table th a { color: inherit; text-decoration: none; }
.collection-table th a:hover, .artifact-table th a:hover { text-decoration: underline; }
.collection-table th[aria-sort]:not([aria-sort="none"]) a, .artifact-table th[aria-sort]:not([aria-sort="none"]) a { color: #405238; }
.file-picker-link { display: inline-flex; align-items: center; margin: .3rem 0; color: #54734b; font-size: .85rem; text-decoration: underline; text-underline-offset: .15rem; cursor: pointer; }
.file-picker-link:focus-within { outline: 2px solid #54734b; outline-offset: 3px; }
.optional-bibliography { margin: .1rem 0 .9rem; }
.member-note { color: #54734b; font-size: .8rem; }
.export-link { color: #54734b; }
.discovery-paper > summary { cursor: pointer; padding: .7rem .9rem; }
.discovery-paper > summary .paper-heading { display: inline-flex; width: calc(100% - 1.3rem); vertical-align: top; }
.discovery-paper > summary .paper-title { flex: 1; min-width: 0; }
.discovery-paper > summary h3 { margin: 0; font-size: 1rem; }
.discovery-paper > summary .paper-meta { font-size: .78rem; }
.discovery-paper[open] > summary { border-bottom: 1px solid #e4e7df; }
.discovery-paper-body { padding: .8rem 1rem; }
.paper-page-link { font-size: .8rem; margin: .65rem 0 0; }
.explorer-filters { margin: 1rem 0; padding-bottom: .35rem; }
.explorer-topic > summary { padding: .85rem 0; cursor: pointer; }
.explorer-topic > summary .meta { margin-left: .5rem; }
.explorer-topic.native-topic { margin: .55rem 0; }
.explorer-topic.native-topic > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem .9rem; }
.explorer-topic.native-topic > summary::before { content: "›"; color: #68725e; font-size: 1.1rem; transition: transform .1s; }
.explorer-topic.native-topic[open] > summary::before { transform: rotate(90deg); }
.explorer-topic.native-topic > summary > span:first-of-type { flex: 1; }
.explorer-topic.native-topic > summary .meta { flex: 0 0 auto; font-size: .78rem; font-weight: 400; }
.explorer-topic > section[data-explorer-loaded="false"] { padding: .5rem 1rem; }
.explorer-topic .reader-permalink { text-align: right; margin: .1rem 0; font-size: .78rem; }
.explorer-reader-panel { padding: .8rem 1rem 1rem; }
.explorer-reader-panel > h2 { margin-top: 0; }
.explorer-topic .explorer-reader-panel > h2 { display: none; }
.topic-year-draft.compact-years { width: 100%; max-width: 21rem; margin: 0; }
.topic-year-draft.compact-years .topic-timeline svg { max-height: 3.5rem; }
.compact-years .topic-year-slider { margin: -.15rem 2.6% .15rem 5.4%; height: 1.25rem; }
.year-range-labels { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .75rem; }
.year-range-labels .year-draft-label { position: absolute; }
.year-range-labels button { padding: .15rem .4rem; min-height: 0; font-size: .75rem; border: 0; }
.collection-filter-toolbar { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(12rem, 1fr) auto; align-items: end; gap: 1rem; }
.collection-filter-toolbar .topic-search-controls { display: block; }
.collection-filter-toolbar label, .reader-filter-toolbar label { margin: 0; font-size: .8rem; }
.collection-filter-toolbar button, .reader-filter-toolbar > button { margin: 0 0 1.1rem; }
.reader-filter-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: end; }
.reader-filter-toolbar .topic-search-controls { grid-column: 1 / -1; }
.reader-filter-toolbar > .compact-years { max-width: 22rem; }
.source-filter { display: flex; align-items: start; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; position: relative; z-index: 3; font-size: .82rem; }
.source-filter-dropdown { position: relative; min-width: 9rem; }
.source-filter-dropdown > summary { padding: .45rem .65rem; border: 1px solid #d8ddd4; border-radius: .45rem; cursor: pointer; background: white; }
.source-filter-menu { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 8; width: min(28rem, calc(100vw - 3rem)); max-height: 25rem; overflow: auto; padding: .8rem; background: #fff; border: 1px solid #d8ddd4; border-radius: .55rem; box-shadow: 0 8px 24px #24311b18; }
.source-filter-menu > .meta { margin: 0 0 .6rem; }
.source-filter-menu fieldset { margin: 0; padding: .5rem 0; border: 0; }
.source-filter-menu legend { font-size: .72rem; font-weight: 600; color: #68725e; }
.source-filter-option { display: flex; align-items: center; gap: .55rem; padding: .4rem .3rem; margin: 0; cursor: pointer; border-radius: .25rem; }
.source-filter-option:hover { background: #f4f6f1; }
.source-filter-option input { flex: 0 0 auto; width: 1rem; height: 1rem; min-height: 0; accent-color: #54734b; }
.source-paper-count { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.source-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; position: sticky; bottom: -.8rem; background: white; padding-top: .65rem; border-top: 1px solid #e4e7df; }
.source-filter-actions button { margin: 0; }
.source-filter-chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: .35rem 0; margin: 0; }
.source-filter-chips li { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #edf2e8; color: #405238; border-radius: 1rem; padding: .15rem .6rem; font-size: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width:760px) { .collection-filter-toolbar { grid-template-columns: minmax(0,1fr) auto; gap: .7rem; } .collection-filter-toolbar .topic-search-controls { grid-column: 1 / -1; } .collection-filter-toolbar > .compact-years { max-width: 25rem; } }
.focus-reader-header { border-bottom: 1px solid #d8ddd4; padding-bottom: .8rem; margin-bottom: 1rem; }
.focus-description { max-width: 52rem; margin: .7rem 0; }
.focus-description .report-copy { font-size: .95rem; line-height: 1.5; }
.focus-description summary { font-size: .8rem; }
.focus-topic-picker { display: flex; align-items: end; gap: .7rem; max-width: 52rem; }
.focus-topic-picker label { flex: 1; margin: 0; }
.focus-topic-picker button { margin: 0; }
.focus-tier { margin: 1.2rem 0; }
.focus-tier > summary { font-size: 1.05rem; }
.focus-tier table { width: 100%; }
.focus-tier td:last-child { width: 7rem; text-align: right; }
.standalone-report { max-width: 52rem; margin: 1.5rem 0 2rem; }
.standalone-report h1 { margin-bottom: 1.2rem; }
.standalone-report p { line-height: 1.65; }
.standalone-report .report-section { margin: 1.8rem 0; }
.report-downloads { margin: 1rem 0; font-size: .85rem; }
.report-downloads details { display: inline-block; margin-left: .6rem; }
.report-source-actions { border-top: 1px solid #d8ddd4; padding-top: 1rem; margin-top: 2rem; }
body { margin: 0; background: #faf9f6; color: #282b29; }
.container { max-width: 1180px; margin: 0 auto; padding: 1.5rem; }
header.site-header { background: var(--navbar, #36454f); border-bottom: 1px solid #ffffff14; }
.site-header nav.site-nav { min-height: 4rem; padding: .65rem 1.5rem; gap: 1.5rem; }
.site-header .lit-brand { flex: 0 0 auto; gap: .65rem; padding: .2rem 0; }
.lit-tree { width: 2.1rem; height: 2.1rem; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.lit-wordmark.logo { gap: 0; font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.lit-wordmark .logo-pre { color: #f4f7f0; text-transform: none; letter-spacing: -.035em; }
.lit-wordmark .logo-post { color: #bfd0b7; letter-spacing: -.035em; }
.lit-nav { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.lit-nav li { margin: 0; padding: 0; }
.site-header nav .lit-nav a { padding: .55rem .7rem; border-radius: .3rem; font-size: .76rem; letter-spacing: .055em; line-height: 1.25; white-space: nowrap; color: #d9e1d7; }
.site-header nav a:hover { box-shadow: none; background: #ffffff0a; }
.site-header nav .lit-brand:hover { background: transparent; }
.site-header nav .lit-nav a[aria-current="page"] { color: #fff; background: #ffffff12; }
.site-header nav a:focus-visible { outline: 2px solid #bfd0b7; outline-offset: 3px; }
h1 { margin: 0 0 .55rem; line-height: 1.14; }
h2 { font-size: 1.3rem; } h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
a { text-underline-offset: .16em; }
form { margin: 1rem 0; }
label { display: block; font-size: .9rem; margin: .5rem 0; }
input:not([type=checkbox]), select, textarea { width: 100%; max-width: 38rem; background: white; }
button { margin: .2rem 0; cursor: pointer; white-space: normal; }
button:disabled { opacity: .5; cursor: default; }
button.secondary { background: transparent; color: #435b39; border-color: #bac7b3; }
.eyebrow { margin: .2rem 0 .65rem; color: #66705f; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.2rem 0 1.8rem; }
.heading-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
a.button-link { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .9rem; border: 1px solid #b6c2ad; border-radius: 4px; text-decoration: none; color: #334d2a; font-size: .92rem; }
a.button-link.primary { background: #435b39; color: #fff; border-color: #435b39; }
a.button-link.secondary { border-color: #d4dacf; }
.breadcrumb { font-size: .85rem; color: #66705f; margin: .5rem 0 1.6rem; }
.create-collection { display: flex; align-items: end; gap: .75rem; max-width: 40rem; margin: 1.5rem 0 2rem; }
.create-collection label { flex: 1; margin: 0; }
.create-collection button { margin: 0; }
.search-bar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0; }
.search-bar > label { flex: 1 1 12rem; margin: 0; }
.search-bar > button { margin: 0; }
.filter-options { flex-basis: 100%; margin: .2rem 0 0; }
.filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; padding: .55rem 0; }
.filter-grid label { min-width: 0; }
.mode-tabs { display: flex; gap: .5rem; border-bottom: 1px solid #d8ddd4; margin: 1.3rem 0; }
.mode-tabs a { padding: .65rem .9rem; text-decoration: none; color: #66705f; border-bottom: 2px solid transparent; }
.mode-tabs a.active { color: #344f2b; border-color: #435b39; }
.paper { padding: 1.45rem 0; border-bottom: 1px solid #d8ddd4; }
.paper-heading { display: flex; align-items: start; gap: .8rem; }
.paper-heading > input { margin-top: .4rem; flex-shrink: 0; }
.paper-title { min-width: 0; }
.paper-title h3 a { color: inherit; text-decoration: none; }
.paper-title h3 a:hover { text-decoration: underline; }
.paper-meta { display: flex; align-items: baseline; gap: .35rem .8rem; flex-wrap: wrap; margin: 0; }
.paper-meta .authors { max-width: 90ch; }
.paper-meta a { color: #53654b; }
.abstract { white-space: pre-wrap; line-height: 1.65; max-width: 95ch; margin: .9rem 0; }
.evidence-label { margin-bottom: -.5rem; }
.paper-actions { display: flex; align-items: center; gap: .45rem 1rem; flex-wrap: wrap; margin: .8rem 0 .2rem; }
.paper-actions .inline-form { display: inline-flex; margin: 0; }
.paper-actions button { padding: .4rem .7rem; font-size: .85rem; }
.action-link { font-size: .84rem; }
.source-details { font-size: .82rem; margin-bottom: 0; }
.source-details pre { font-size: .75rem; }
.paper-detail { margin: 1.8rem 0; max-width: 100%; }
.paper-detail .abstract { margin-top: 1.6rem; }
.meta { color: #62695e; font-size: .88rem; }
.notice { padding: .85rem 1rem; background: #eaf0e4; border-left: 3px solid #537045; margin: 1rem 0; }
.empty { padding: 2rem 0; color: #62695e; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 1rem; }
.collection-card { background: #fff; border: 1px solid #d8ddd4; padding: 1.2rem; border-radius: 4px; }
.collection-card h2 { margin-top: .1rem; }
.collection-tools, .history, .job-details, .sql { border-top: 1px solid #d8ddd4; padding-top: .9rem; margin-top: 1.5rem; }
.bulk-form { margin: 1rem 0 .2rem; }
.bulk-options { padding: .65rem .8rem; background: #f0f2ec; border-radius: 4px; }
.selection-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.selection-actions label { flex: 1 1 10rem; }
.selection-actions details { flex: 1 1 12rem; }
.check-label { display: flex; align-items: baseline; gap: .6rem; }
.scoped-form { max-width: 38rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid #d8ddd4; border-radius: 4px; }
.reader-entry { max-width: 38rem; padding-block: 1.5rem; overflow-wrap: anywhere; }
.reader-entry h1 { text-align: left; }
.reader-entry section { margin-top: 1.5rem; }
.reader-entry .button-row > form { margin: 0; }
.reader-entry .pagination:empty { display: none; }
.author-card { border-bottom: 1px solid #d8ddd4; padding: 1.3rem 0; }
.author-card h2 { margin: 0 0 .45rem; }
.example-papers { margin: .75rem 0; padding-left: 1.2rem; font-size: .93rem; }
.author-add { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 2rem; }
.author-add details { max-width: 24rem; }
.publications { margin-top: 2rem; }
pre { overflow: auto; font-size: .8rem; max-height: 16rem; background: #f0f0eb; padding: .8rem; }
.pagination { display: flex; gap: 2rem; margin: 1.2rem 0; }
.query-result { overflow-x: auto; } td { max-width: 30rem; overflow-wrap: anywhere; }
details { margin: .7rem 0; } summary { cursor: pointer; color: #435b39; }
dt { font-weight: 600; } dd { margin: .2rem 0 .7rem; overflow-wrap: anywhere; }
@media(max-width:700px) {
  .site-header nav.site-nav { align-items: start; flex-direction: column; gap: .4rem; padding: .7rem 1rem; }
  .lit-nav { width: 100%; overflow-x: auto; gap: .1rem; padding-bottom: .1rem; }
  .site-header nav .lit-nav a { padding: .5rem .45rem; font-size: .7rem; }
  .container { padding: 1rem; }
  .title-row { align-items: start; flex-direction: column; gap: .8rem; }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-bar > label { flex-basis: 100%; }
  .create-collection { align-items: stretch; flex-direction: column; }
  .paper-meta { gap: .25rem .6rem; }
}
.training-form, .research-form { max-width: 56rem; margin: 1.6rem 0; }
.training-form > label input, .research-form > label textarea { max-width: 100%; }
.report-direction-form { max-width: 68ch; margin-top: 1.25rem; }
.report-direction-form > label { display: block; margin: 0 0 .4rem; }
.report-direction-form > textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; padding: .7rem .8rem; font: inherit; line-height: 1.5; }
.stats-strip { display: flex; gap: 2.5rem; flex-wrap: wrap; padding: 1rem 0; border-block: 1px solid #d8ddd4; margin: 1.5rem 0; }
.stats-strip > div { min-width: 7rem; }
.stats-strip dt { color: #62695e; font-size: .8rem; font-weight: 400; }
.stats-strip dd { margin: .25rem 0; font-size: 1.5rem; line-height: 1.2; }
.report-copy { max-width: 95ch; white-space: pre-wrap; line-height: 1.65; }
.report-layout { display: grid; grid-template-columns: 14rem minmax(0,1fr); gap: 2rem; align-items: start; margin: 2rem 0; }
.report-outline { position: sticky; top: 1rem; }
.report-outline h2 { font-size: 1rem; }
.report-outline ul { list-style: none; padding: 0; }
.report-outline li { margin: .7rem 0; font-size: .9rem; }
.report-group { border-bottom: 1px solid #d8ddd4; padding-bottom: 1.5rem; margin-bottom: 2rem; scroll-margin-top: 1rem; }
.report-group > h2 { margin-top: 0; }
.topic-links { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1rem 0; }
.topic-links a { border: 1px solid #d5ddce; border-radius: 3px; padding: .25rem .45rem; font-size: .8rem; text-decoration: none; }
.group-evidence > h3, .topic-evidence > h3 { font-size: .95rem; color: #62695e; margin-top: 1.4rem; }
.topic-assessment { padding: 1rem 0; border-bottom: 1px solid #d8ddd4; scroll-margin-top: 1rem; }
.topic-assessment > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.relevance { font-size: .75rem; color: #62695e; white-space: nowrap; }
.findings p { margin-bottom: .25rem; }
.source-references { display: block; font-size: .8rem; color: #62695e; }
.assessment-limitations { margin: 1rem 0; padding: .75rem; background: #f0f2ec; font-size: .9rem; }
.report-limitations { margin-top: 2rem; }
@media(max-width:850px) { .report-layout { grid-template-columns: 1fr; } .report-outline { position: static; } .report-outline ul { display: flex; gap: .75rem; flex-wrap: wrap; } }
.research-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.featured-topic { margin: 1.7rem 0 2rem; padding: 1rem 1.2rem; border: 1px solid #b8c9ac; background: #f2f5ee; border-radius: 4px; }
.featured-topic > h2 { margin-top: 0; }
.top-topics { margin: 2rem 0; }
.remaining-topics, .legacy-groups { padding-top: 1rem; border-top: 1px solid #d8ddd4; margin-top: 1.5rem; }
.relevance strong { color: #435b39; }
.saved-research { margin-top: 1.5rem; }
.saved-research li { margin: .6rem 0; }
.topic-overview { margin: 2rem 0; }
.literature-chart { margin: 1rem auto; max-width: 48rem; }
.literature-chart > svg { display: block; width: 100%; height: auto; }
.literature-chart figcaption { color: #62695e; font-size: .85rem; line-height: 1.5; }
.chart-link:hover path, .chart-link:focus path { opacity: .75; }
.topic-segment.is-selected path, .timeline-year.is-selected rect { stroke: #282b29; stroke-width: 3; }
.chart-center-label { fill: #62695e; font-size: 11px; }
.chart-center-value { fill: #282b29; font-size: 16px; }
.chart-axis { stroke: #b6c2ad; }
.chart-year, .chart-count { fill: #62695e; font-size: 11px; }
.chart-data { font-size: .8rem; }
.native-topic { margin: .8rem 0; border: 1px solid #d8ddd4; border-radius: 5px; background: #fff; scroll-margin-top: 1rem; }
.native-topic > summary { padding: 1rem 1.2rem; color: #282b29; }
.topic-card-title { font-size: 1.1rem; font-weight: 600; }
.topic-card-count { float: right; margin: .2rem 0 .2rem 1rem; font-size: .8rem; color: #62695e; }
.native-topic[open] > summary { border-bottom: 1px solid #e4e7df; }
.topic-body { padding: 1.2rem; }
.topic-placeholder { padding-top: .25rem; }
.topic-years { margin-top: 1.5rem; }
.topic-years .literature-chart { max-width: 60rem; }
.reader-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.reader-heading h3, .reader-heading p { margin-bottom: 0; }
.abstract-reader .paper { border-bottom: none; }
.reader-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem; border-top: 1px solid #e4e7df; padding-top: 1rem; }
.topic-search-results { margin: 2rem 0; }
@media(max-width:700px) { .topic-body { padding: .9rem; } .topic-card-count { float: none; display: block; margin-left: 0; } .reader-heading { align-items: start; flex-direction: column; gap: .2rem; } }
#workspace button, #workspace a.button-link {
  box-sizing: border-box; min-height: 2.65rem; padding: .65rem 1rem;
  border: 1px solid #345a43; border-radius: 5px; font-family: inherit;
  font-size: .92rem; font-weight: 600; line-height: 1.25; letter-spacing: normal;
  text-transform: none; text-align: center; vertical-align: middle;
}
#workspace button, #workspace a.button-link.primary { background: #345a43; color: #fff; }
#workspace button:hover:not(:disabled), #workspace a.button-link.primary:hover { background: #284934; border-color: #284934; }
#workspace button.secondary, #workspace a.button-link:not(.primary) { background: transparent; border-color: #c6cfc1; color: #3d5946; }
#workspace button.secondary:hover:not(:disabled), #workspace a.button-link:not(.primary):hover { background: #edf1e9; border-color: #99ad96; }
#workspace button:focus-visible, #workspace a:focus-visible, #workspace input:focus-visible, #workspace select:focus-visible {
  outline: 2px solid #54734b; outline-offset: 3px;
}
#workspace input:not([type=checkbox]):not([type=hidden]), #workspace select {
  box-sizing: border-box; min-height: 2.65rem; padding: .6rem .75rem;
  font-family: inherit; font-size: .95rem; line-height: 1.25; border-radius: 5px;
}
#workspace .search-bar > label input, #workspace .search-bar > label select,
#workspace .create-collection label input { margin-top: .35rem; margin-bottom: 0; }
#workspace .search-bar > button, #workspace .create-collection > button { flex-shrink: 0; margin-bottom: 0; }
#workspace .paper-actions button { min-height: 2.2rem; padding: .45rem .75rem; font-size: .84rem; }
#workspace .action-link { color: #53654d; text-decoration-color: #b6c2ad; }
.related-source { max-width: 90ch; line-height: 1.5; }
.relationship-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 1.2rem; margin: 1.5rem 0 .6rem; }
.relationship-filter fieldset { display: flex; gap: 1.5rem; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.relationship-filter legend { margin-bottom: .35rem; font-size: .85rem; color: #62695e; }
.relationship-filter .check-label { margin: .4rem 0; gap: .5rem; }
.related-add-form { padding: 1rem 1.2rem; margin: 1.5rem 0 .7rem; background: #edf1e9; border: 1px solid #d8e0d3; border-radius: 5px; }
.related-add-form .selection-actions > button { margin-bottom: .5rem; }
.related-pagination, .related-pagination > div { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.related-pagination { justify-content: space-between; }
@media(max-width:700px) { .related-add-form { padding: .9rem; } .related-add-form .selection-actions { align-items: stretch; flex-direction: column; } .related-add-form .selection-actions > * { flex-basis: auto; } }
#workspace .paper-title h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .55rem; }
#workspace .paper-meta { color: #62695e; font-size: .87rem; line-height: 1.55; gap: .2rem .85rem; }
#workspace .paper-meta .authors { max-width: 82ch; }
#workspace .abstract { max-width: 85ch; line-height: 1.7; margin: 1rem 0 1.2rem; }
#workspace .paper-detail > h1 { max-width: 34em; font-size: clamp(1.7rem,3vw,2.3rem); line-height: 1.25; }
#workspace .paper-detail .paper-actions { margin-top: 1.1rem; }
#workspace .paper-actions { gap: .55rem 1rem; }
#workspace .source-details { padding-top: .25rem; }
.catalog-table { margin: 1.6rem 0; overflow-x: auto; }
.catalog-table table { width: 100%; border-collapse: collapse; }
.catalog-table th, .catalog-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid #d8ddd4; vertical-align: top; }
.catalog-table thead th { font-size: .8rem; color: #62695e; font-weight: 500; }
.catalog-table tbody th { font-weight: 500; }
.catalog-table tbody a { text-decoration-color: #b6c2ad; }
.topic-body .reader-heading { margin-top: 0; }
.topic-sunburst { max-width: 70rem; }
.topic-plot { min-height: 540px; width: 100%; }
.topic-chart-tooltip { position: fixed; z-index: 1000; max-width: min(34rem, calc(100vw - 2rem)); padding: .65rem .8rem; border: 1px solid #53634f; border-radius: .35rem; background: #fffefa; color: #20271e; box-shadow: 0 .25rem 1rem #18241426; white-space: pre-wrap; pointer-events: none; font-size: .95rem; line-height: 1.4; }
.topic-chart-tooltip[hidden] { display: none; }
.topic-chart-status { color: #53654b; min-height: 1.5rem; font-size: .9rem; }
.gather-form { max-width: 56rem; margin: 1.5rem 0; }
.gather-form > label { margin: 1rem 0; }
.gather-form textarea { max-width: 100%; box-sizing: border-box; padding: .8rem; line-height: 1.5; }
.gather-target { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; }
.gather-target > * { flex: 1 1 16rem; }
.gather-form > button { margin-top: 1rem; }
.gather-jobs { margin-top: 2rem; border-top: 1px solid #d8ddd4; padding-top: 1rem; }
.job-list { padding-left: 1.2rem; }
.job-list li { margin: .75rem 0; }
#collection-dialog { width: min(36rem,calc(100% - 2rem)); max-height: 85vh; box-sizing: border-box; border: 1px solid #c6cfc1; border-radius: 8px; padding: 1.5rem; background: #faf9f6; color: #282b29; box-shadow: 0 1.5rem 5rem #15221840; }
#collection-dialog::backdrop { background: #17251bb3; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { margin: 0; line-height: 1.3; }
.dialog-paper-title { line-height: 1.5; color: #62695e; }
#collection-dialog .scoped-form { padding: 0; border: 0; background: transparent; margin-bottom: 0; }
#collection-dialog button, #collection-dialog a.button-link { min-height: 2.65rem; padding: .65rem 1rem; border: 1px solid #345a43; border-radius: 5px; font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.25; background: #345a43; color: white; }
#collection-dialog .dialog-close { min-height: 2rem; padding: .25rem .6rem; background: transparent; color: #53654b; border-color: transparent; font-size: 1.3rem; line-height: 1; }
#collection-dialog input:not([type=checkbox]):not([type=hidden]), #collection-dialog select { box-sizing: border-box; min-height: 2.65rem; padding: .6rem .75rem; font: inherit; font-size: .95rem; }
#collection-dialog button:focus-visible, #collection-dialog input:focus-visible, #collection-dialog select:focus-visible { outline: 2px solid #54734b; outline-offset: 3px; }
.dialog-confirmation { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.dialog-confirmation > p { flex-basis: 100%; }
.topic-paper-list .paper:last-of-type { border-bottom: 0; }
.topic-body > .mode-tabs { margin-top: 0; }
.topic-load-status { color: #62695e; padding: .6rem 0; }
.topic-load-error { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #cfbca0; border-radius: 5px; background: #fbf5e9; }
.topic-load-error p { margin-top: 0; }
.topic-load-error a { margin-left: 1rem; }
.topic-body[aria-busy=true] > .topic-load-status { font-style: italic; }
.topic-overview { position: relative; z-index: 0; isolation: isolate; }
.native-topics { position: relative; z-index: 1; }
.native-topic > summary { position: relative; z-index: 1; pointer-events: auto; user-select: none; }
.abstract-reader > .reader-navigation { display: grid; grid-template-columns: minmax(0,1fr) minmax(8rem,auto) minmax(0,1fr); align-items: center; gap: .7rem; margin: 0 0 1rem; border: 0; border-bottom: 1px solid #e4e7df; padding: 0 0 1rem; }
.reader-navigation > [data-reader-step=previous] { justify-self: start; }
.reader-navigation > [data-reader-step=next] { justify-self: end; }
.reader-position { margin: 0; text-align: center; color: #62695e; font-size: .88rem; }
.reader-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #e4e7df; }
.reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .8rem; }
.reader-actions .inline-form { display: inline-flex; margin: 0; }
.reader-toolbar .reader-navigation { display: flex; align-items: center; justify-content: end; gap: .55rem; margin: 0 0 0 auto; padding: 0; border: 0; }
.reader-toolbar .reader-boundary { display: none; }
.reader-toolbar .reader-position { font-family: var(--font-sans); font-size: .78rem; white-space: nowrap; margin-right: .35rem; }
#workspace .reader-toolbar :is(a.button-link, button), #workspace .paper-actions :is(a.button-link, button) { min-height: 2.2rem; padding: .45rem .75rem; font-size: .84rem; }
.paper-actions .action-status:empty { display: none; }
.topic-summary { max-width: 68ch; margin: .75rem 0 1rem; }
.topic-summary > h2 { font-family: var(--font-sans); font-size: .85rem; font-weight: 600; font-style: normal; letter-spacing: 0; margin: 0 0 .35rem; }
.topic-summary > .meta { margin-bottom: .65rem; font-family: var(--font-sans); font-size: .78rem; }
.topic-summary .report-copy, .summary-prose .report-copy { max-width: 68ch; font-family: var(--font-serif); font-weight: 400; font-style: normal; font-size: 1rem; line-height: 1.65; letter-spacing: 0; white-space: normal; margin: 0 0 .85rem; text-align: left; }
.topic-summary .summary-citation, .summary-prose .summary-citation { font-family: var(--font-sans); font-size: .8em; font-weight: 500; font-style: normal; white-space: nowrap; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.gather-progress { padding: .9rem 1rem; margin: 1rem 0; background: #edf1e9; border: 1px solid #d8e0d3; border-radius: 5px; }
.gather-progress p:first-child { margin-top: 0; }
@media(max-width:550px) { #workspace .reader-navigation > a.button-link { padding: .55rem .65rem; font-size: .84rem; } .abstract-reader > .reader-navigation { grid-template-columns: 1fr auto 1fr; gap: .35rem; } .reader-position { max-width: 8rem; font-size: .8rem; } }

.dialog-dismiss { margin: 0; }

.favorite-form { display: inline-flex; margin: 0; }
.topic-filter-panel { border-block: 1px solid #d8ddd4; margin: 1.5rem 0; padding: .5rem 0 1rem; }
.topic-filters { margin: 0; }
.topic-year-picker { margin: .5rem 0; }
.topic-year-options { border: 0; padding: .5rem 0; }
.topic-year-options .filter-grid { grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .2rem .8rem; max-height: 16rem; overflow: auto; }
.topic-filter-panel .literature-chart { max-width: 100%; margin: 1rem 0 .2rem; }
.topic-reader-workspace .topic-body { padding: .5rem 0; }
.native-topic > h2, .native-topic > p { margin: .8rem 1.1rem; }
.summary-sources { font-size: .86rem; }
.collection-activity { display: grid; gap: 1rem; margin: 1.3rem 0; }

.authors, .author-entry { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .15rem; }
.authors .favorite-button { padding: .05rem .2rem; border: 0; background: transparent; font-size: .95rem; }

/* Draft publication-year controls; reader/filter requests happen only on Apply. */
.topic-search-controls { display: grid; grid-template-columns: minmax(0,4fr) minmax(8rem,1fr) minmax(8rem,1fr); align-items: end; gap: .8rem; }
.topic-search-controls input, .topic-search-controls select { max-width: 100%; }
.topic-year-draft { margin: 1rem 0; }
.topic-year-draft > label { max-width: 20rem; }
.topic-year-slider { position: relative; height: 1.6rem; margin: -.1rem .8rem .5rem 2rem; }
.year-range-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#workspace .topic-year-slider input[type=range] { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; max-width: none; min-height: 0; height: 1.6rem; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; pointer-events: none; }
#workspace .topic-year-slider input[type=range]::-webkit-slider-runnable-track { height: 2px; background: transparent; border: 0; }
#workspace .topic-year-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -10px; border: 1px solid #c8d0c1; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24311b20; pointer-events: auto; cursor: ew-resize; }
#workspace .topic-year-slider input[type=range]::-moz-range-track { height: 2px; background: transparent; border: 0; }
#workspace .topic-year-slider input[type=range]::-moz-range-progress { background: transparent; }
#workspace .topic-year-slider input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid #c8d0c1; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #24311b20; pointer-events: auto; cursor: ew-resize; }
#workspace .topic-year-slider input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid #54734b; outline-offset: 3px; }
#workspace .topic-year-slider input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid #54734b; outline-offset: 3px; }
.topic-year-draft { max-width: 40rem; }
.topic-year-draft .topic-timeline { margin: .2rem 0 0; }
.topic-year-draft .topic-timeline figcaption { display: none; }
.topic-year-draft .topic-timeline svg { width: 100%; height: auto; max-height: 7.2rem; }
.topic-year-draft .timeline-year rect, .topic-year-draft .timeline-year.is-selected rect { stroke: none; }
.topic-year-draft .chart-data { margin-top: .6rem; font-size: .78rem; }
.topic-year-draft > label { max-width: 11rem; font-size: .8rem; }
.topic-year-draft > label select { min-height: 2.1rem; padding: .3rem .5rem; font-size: .85rem; }
.topic-year-numbers { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; }
.topic-year-numbers > label { max-width: 9rem; }
.topic-year-numbers > label { max-width: 8rem; margin: 0; font-size: .75rem; }
#workspace .topic-year-numbers input[type=number] { min-height: 2.2rem; padding: .35rem .6rem; font-size: .9rem; border-radius: .6rem; }
.topic-year-numbers .year-draft-label { font-size: .75rem; padding-bottom: .45rem; }
#workspace .topic-year-numbers button { min-height: 2rem; padding: .3rem .5rem; border: 0; font-size: .8rem; }
.year-draft-label { align-self: center; color: #53654b; font-size: .9rem; }
.topic-year-draft .timeline-year { cursor: pointer; }
.topic-year-draft .timeline-year.is-dimmed rect { fill: #dfe6d9; }
.topic-year-draft .timeline-year:not(.is-dimmed) rect { fill: #54734b; }
.topic-year-draft .topic-year-picker { margin-top: 1rem; }
@media(max-width:650px) { .topic-search-controls { grid-template-columns: 1fr 1fr; } .topic-search-controls > label:first-child { grid-column: 1 / -1; } .topic-year-slider { gap: .8rem; } }

.paper-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.paper-title { flex: 1; }
.paper-title-row h1, .paper-title-row h3 { margin-bottom: .3rem; }
.paper-title-row .favorite-form { flex: 0 0 auto; }
/* Stars are icons; beat the scoped workspace/dialog button rules in every state. */
:is(#workspace, #collection-dialog) .favorite-form .favorite-button,
:is(#workspace, #collection-dialog) .favorite-form .favorite-button:is(:hover, :active, :focus, :focus-visible, [aria-pressed="true"]) {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  color: #3e6a4b; background: none; border: 0; border-radius: 0; box-shadow: none;
  min-height: 0; min-width: 0; width: auto; height: auto; padding: 0; margin: 0;
  font: inherit; line-height: 1; cursor: pointer; vertical-align: middle;
}
.favorite-button svg { display: block; }
.favorite-button:focus-visible { outline: 2px solid #3e6a4b; outline-offset: 3px; }
.paper-detail-heading { align-items: flex-start; }
.paper-detail-heading > .paper-title-row { flex: 1; }

/* Jumpstart intake and clarification forms */
.jumpstart-workspace form label, .jumpstart-workspace details label { display: block; }
.jumpstart-workspace textarea { display: block; box-sizing: border-box; width: 100%; max-width: 68ch; font: inherit; line-height: 1.5; }
.jumpstart-workspace form p { max-width: 68ch; }
.jumpstart-table td:first-child { width: 60%; }
.jumpstart-progress { max-width: 48rem; margin: 1rem 0 1.5rem; }
.jumpstart-progress-group { margin: .4rem 0; }
.jumpstart-progress-group > summary { padding: .6rem 0; }
.jumpstart-current-step { display: block; margin-left: 1.3rem; font-size: .9em; color: #62695e; }
.jumpstart-progress-group h3 { font-size: 1rem; margin: .8rem 0 .3rem; }
.jumpstart-progress ol { list-style: none; padding-left: 0; }
.jumpstart-step-state { font-family: var(--font-sans); font-size: .8em; margin-left: .6rem; color: #62695e; }
.jumpstart-step { border-left: 2px solid #dce1d8; padding: .35rem .8rem; margin: .3rem 0; }
.jumpstart-step summary { display: flex; align-items: baseline; gap: .6rem; padding: .2rem 0; }
.jumpstart-step--completed { border-color: #58724f; }
.jumpstart-step--running { border-color: #3e6a4b; background: #f0f4ed; }
.jumpstart-step--attention { border-color: #ac7934; }
.jumpstart-step--waiting { color: #74796f; }
.jumpstart-step > :not(summary) { margin-left: 1.5rem; }
.jumpstart-step p, .jumpstart-step ul { margin-top: .4rem; margin-bottom: .4rem; }
@media (max-width: 40rem) { .jumpstart-table td:first-child { width: auto; } }

/* Research intake controls stay compact and readable at every viewport width. */
#workspace > h1 { max-width: 35ch; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; text-align: left; }
.research-intake { max-width: 48rem; }
.research-intake > label { display: block; margin: 1rem 0 .4rem; }
.research-intake textarea { display: block; box-sizing: border-box; width: 100%; max-width: 100%; padding: .7rem .8rem; font: inherit; line-height: 1.5; }
.research-intake label textarea { margin-top: .4rem; }
.research-intake > button { display: block; margin-top: 1rem; }
.writing-framing { border: 0; padding: 0; margin: 1.25rem 0; }
.writing-framing legend { font-size: .9rem; margin-bottom: .5rem; }
.writing-framing-options { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.writing-framing-options label { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
#workspace .writing-framing-options input[type=radio] { width: 1rem; height: 1rem; min-height: 0; padding: 0; margin: 0; accent-color: #54734b; }
.catalog-filters .catalog-search { display: flex; flex-direction: column; gap: .35rem; }
#collection-dialog .add-picker { display: grid; grid-template-columns: max-content max-content; gap: .6rem; }
#collection-dialog .add-picker > :not(form) { grid-column: 1 / -1; }
#collection-dialog .add-picker > form.scoped-form { display: contents; }
#collection-dialog .add-picker > form.scoped-form > :not(button) { grid-column: 1 / -1; }
#collection-dialog .add-picker > form.dialog-dismiss { grid-column: 2; margin: 0; align-self: end; }
#collection-dialog button.secondary { background: transparent; color: #3d5946; border-color: #c6cfc1; }

.followup-modes { min-inline-size: 0; }
.followup-segments { display: inline-flex; max-width: 100%; border: 1px solid #aebdad; border-radius: .4rem; }
.followup-segments label { position: relative; display: flex; margin: 0; cursor: pointer; }
.followup-segments label + label { border-inline-start: 1px solid #aebdad; }
.followup-segments label:first-child span { border-radius: .33rem 0 0 .33rem; }
.followup-segments label:last-child span { border-radius: 0 .33rem .33rem 0; }
#workspace .followup-segments input[type=radio] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; clip-path: inset(50%); }
.followup-segments span { display: grid; place-items: center; padding: .45rem .8rem; color: #3d5946; line-height: 1.25; text-align: center; }
.followup-segments input:checked + span { background: #3d5946; color: white; }
.followup-segments input:focus-visible + span { outline: 2px solid currentColor; outline-offset: -4px; }
.followup-panel > label, .followup-panel details label { display: block; }
.followup-panel select { display: block; box-sizing: border-box; max-width: 100%; margin-top: .4rem; }
.followup-panel details { margin: 1rem 0; }
.followup-modes .followup-panel { display: none; }
.followup-modes:has(input[value="ask"]:checked) .panel-ask,
.followup-modes:has(input[value="deep"]:checked) .panel-deep,
.followup-modes:has(input[value="new"]:checked) .panel-new { display: block; }
