/* GitSwarm app tokens: the front page's paper, ink, drafting blue and type, as CSS custom properties.
   Linked in <head> of core/templates/core/frontpage.html, so fonts, tokens and the paper ground exist from the first
   paint, before webpack injects any style. Component styles use var(--gs-...), never a literal colour, font or shadow.
   The Vuetify theme in js/src/index.js carries the same colour values under its old names (primary = blue,
   secondary = ink ...). Design of record: DESIGN.md Part A section 1. Fonts: fonts/README.md (OFL, self-hosted). */

/* Each family in two files split by unicode-range: "latin" (fetched for every page) and "ext" (Latin Extended,
   fetched only when the page shows such a letter, e.g. Romanian ș ț ă). Keep the ranges equal to the subset script. */
@font-face{font-family:"Instrument Sans";src:url(fonts/instrument-sans-latin.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";src:url(fonts/instrument-sans-ext.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;
  unicode-range:U+0100-0130,U+0132-0151,U+0154-024F,U+0259,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Sans";src:url(fonts/instrument-sans-italic-latin.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Sans";src:url(fonts/instrument-sans-italic-ext.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap;
  unicode-range:U+0100-0130,U+0132-0151,U+0154-024F,U+0259,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Fraunces;src:url(fonts/fraunces-latin.woff2) format("woff2");font-weight:400 650;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Fraunces;src:url(fonts/fraunces-ext.woff2) format("woff2");font-weight:400 650;font-style:normal;font-display:swap;
  unicode-range:U+0100-0130,U+0132-0151,U+0154-024F,U+0259,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Plex Mono ships 400 and 500; the 500 file also answers 600-700 so bold mono text is not faux-bolded. */
@font-face{font-family:"Plex Mono";src:url(fonts/plex-mono-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex Mono";src:url(fonts/plex-mono-ext.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;
  unicode-range:U+0100-0130,U+0132-0151,U+0154-024F,U+0259,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Plex Mono";src:url(fonts/plex-mono-medium-latin.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plex Mono";src:url(fonts/plex-mono-medium-ext.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap;
  unicode-range:U+0100-0130,U+0132-0151,U+0154-024F,U+0259,U+0300-0303,U+0305-0307,U+0309-0328,U+032A-036F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Fallbacks sized to the web fonts (the front page's, landing.css), so the swap does not move the layout. */
@font-face{font-family:"Fraunces fallback";src:local("Georgia");size-adjust:101%;ascent-override:97%;descent-override:25%;line-gap-override:0%}
@font-face{font-family:"Instrument fallback";src:local("Arial"),local("Helvetica"),local("Liberation Sans");size-adjust:100.5%;ascent-override:96%;descent-override:25%;line-gap-override:0%}

:root{
  /* ground and surfaces */
  --gs-paper:#F6F2E8;       /* the app's background */
  --gs-paper-hi:#FBF9F3;    /* raised sheets: cards, dialogs, menus, tables, inputs */
  --gs-paper-lo:#ECE6D6;    /* wells and bands: side bar, table heads, code, hover fill */
  --gs-line:#D6CDB8;        /* hairline rules (decoration only, 1.4:1) */
  --gs-line-strong:#B9AE95; /* dividers that must be seen on paper-hi */
  --gs-line-input:#8F8571;  /* the boundary of a control: inputs, checkboxes (3.3:1) */
  --gs-map-quiet:var(--gs-line-input); /* the timeline map's quiet bars: edits, labels, other */
  /* ink */
  --gs-ink:#1F1B16;         /* text, primary buttons, icons */
  --gs-ink-2:#564E42;       /* secondary text */
  --gs-ink-3:#6F6658;       /* muted text: times, hints, placeholders (not on sky or yellow) */
  /* accents */
  --gs-blue:#1D4E89;        /* links, focus, selection, active, info */
  --gs-blue-deep:#16365C;   /* link and blue hover */
  --gs-sky:#C6D8EC;         /* selected rows, today, info backgrounds */
  --gs-sky-lo:#E3EBF4;      /* the lighter tint (theme "primaryBright") */
  --gs-red:#B5311F;         /* destructive, errors, overdue */
  --gs-yellow:#FFD95A;      /* the highlighter: never text */
  --gs-green:#2F6B3A;       /* success, approved, landed */
  --gs-ochre:#E0A22E;       /* fill only */
  --gs-ochre-ink:#8A5A00;   /* ochre as text */
  /* type */
  --gs-serif:Fraunces,"Fraunces fallback",Georgia,serif;
  --gs-sans:"Instrument Sans","Instrument fallback",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --gs-mono:"Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --gs-text:15px;           /* body text, line-height 1.45 */
  --gs-text-sm:13px;        /* small text; nothing below 12px */
  /* shape and depth: rules instead of shadows; only floating layers get one soft shadow */
  --gs-radius-sm:3px;       /* buttons, inputs, chips, tags */
  --gs-radius:4px;          /* cards, small sheets */
  --gs-radius-lg:6px;       /* dialogs, menus */
  --gs-rule:1px solid var(--gs-line);
  --gs-shadow-dialog:0 12px 40px rgba(31,27,22,.18);
  --gs-shadow-menu:0 6px 20px rgba(31,27,22,.14);
  --gs-scrim:rgba(31,27,22,.45);
  --gs-focus:3px solid var(--gs-blue);
}

html{background:var(--gs-paper);color-scheme:light;scrollbar-color:var(--gs-line-strong) transparent}
body{margin:0;background:var(--gs-paper);color:var(--gs-ink);font-family:var(--gs-sans);font-size:var(--gs-text);line-height:1.45;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
::selection{background:var(--gs-sky);color:var(--gs-ink)}

/* Keyboard focus: one visible ring on every focusable control. The Vuetify controls that switch outlines off with a
   class (.v-btn, .v-list-item, .v-expansion-panel-title, .v-chip) need the class in the selector to win. */
:focus-visible,
.v-btn:focus-visible,
.v-chip:focus-visible,
.v-expansion-panel-title:focus-visible{outline:var(--gs-focus);outline-offset:2px}
.v-list-item:focus-visible{outline:var(--gs-focus);outline-offset:-3px}
.v-selection-control--focus-visible .v-selection-control__input{outline:var(--gs-focus);outline-offset:-2px;border-radius:var(--gs-radius-sm)}
/* A text field shows its focus by ONE 2px blue ring in place of its edge, not a ring around the edge: drawn inside its
   box here; an outlined field draws it with its own outline pieces instead, so the notch round the label stays open
   (styles/app.scss, inputs). Buttons, links, checkboxes and chips keep the 3px ring 2px off above. */
.v-field:has(input:focus-visible,textarea:focus-visible){outline:2px solid var(--gs-blue);outline-offset:-2px}
.v-field--variant-outlined:has(input:focus-visible,textarea:focus-visible){outline:none}
/* nor on the bare <input> inside it */
.v-field input:focus-visible,.v-field textarea:focus-visible{outline:none}

/* helpers */
.gs-eyebrow{font-family:var(--gs-mono);font-size:12px;line-height:1.4;font-weight:400;text-transform:uppercase;letter-spacing:.06em;color:var(--gs-ink-2)}
.gs-num{font-family:var(--gs-mono);font-variant-numeric:tabular-nums}
.gs-title{font-family:var(--gs-serif);font-weight:520;letter-spacing:-.01em;font-optical-sizing:auto;color:var(--gs-ink)}
.gs-name{font-family:var(--gs-sans);font-weight:600;color:var(--gs-ink)}

/* --- rest round (R0, 2026-11-25): measures for the screens beyond the core (DESIGN-REST.md 2.1, 3.1). Content sits at
   one of three widths, left-aligned to the bar's title: text (reading, single forms, notices), page (lists, settings,
   profile, overview), wide (= --max-container-width, styles/app.scss: matrices and wide tables). --- */
:root{
  --gs-measure-text:720px;
  --gs-measure-page:1120px;
}
