/* The web's one stylesheet (#621). Every file a page loads is the web's own, under /web/static; there is no script.
   The fonts are named beside this file, so they resolve under its own versioned address (#682). */
/* The headings' font: Plus Jakarta Sans 800 (SIL OFL 1.1), the brand's. Body text stays the reader's system font. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("plus-jakarta-sans-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("plus-jakarta-sans-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: light dark;
  --text: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  /* The brand's violets: `--accent` for text, links and outlines, `--fill` under a button's white text. */
  --accent: #564eea;
  --fill: #635bff;
  --on-fill: #ffffff;
  --error: #b3261e;
  --page: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e8eb;
    --muted: #a3acb6;
    --line: #3a424b;
    --accent: #a9a4ff;
    --error: #ff8a80;
    --page: #121417;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
main { max-width: 40rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
/* The bar at the top of every page: the logo, who is signed in, the language menu, Sign out. It wraps. */
.bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  /* A row the bar wraps to sits at the right, under the menu's list, which opens at the bar's right edge. */
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem 1.25rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.bar p, .bar form { margin: 0; }
.bar .brand { margin-right: auto; }
.bar .brand a { display: block; border-radius: 0.25rem; }
.bar .brand img { display: block; width: auto; height: 1.75rem; }
.bar .person { color: var(--muted); overflow-wrap: anywhere; }
.bar button { margin-top: 0; }
button.quiet { background: transparent; border-color: var(--line); color: var(--accent); }
/* The language menu: a button that names the page's language; under the bar, at its right edge, the list of them. */
.lang summary {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
/* The marks are not read aloud: the button is a disclosure, and the page's language carries aria-current. */
.lang summary::after { content: " \25BE" / ""; color: var(--muted); }
.lang[open] summary::after { content: " \25B4" / ""; }
.lang ul {
  position: absolute;
  top: 100%;
  right: 1rem;
  z-index: 1;
  min-width: 11rem;
  max-width: calc(100% - 2rem);
  max-height: 70vh;
  overflow-y: auto;
  margin: 0.25rem 0 0;
  /* Room for a focused link's outline (3px, 2px off), which the list would otherwise clip. */
  padding: 0.375rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.15);
  list-style: none;
}
.lang li a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.25rem; color: var(--text); text-decoration: none; }
.lang li a:hover { text-decoration: underline; }
.lang li a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.lang li a[aria-current="true"]::after { content: " \2713" / ""; }
/* Read by a screen reader, not shown. */
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.orgs { padding-left: 1.25rem; }
.orgs li { margin: 0.5rem 0; overflow-wrap: anywhere; }
h1, h2 { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 800; line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
a { color: var(--accent); }
label { display: block; font-weight: 600; margin: 1rem 0 0.25rem; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--page);
  color: var(--text);
}
button {
  margin-top: 1rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--fill);
  border-radius: 0.5rem;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 600;
  cursor: pointer;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.error { color: var(--error); }
.error:empty { display: none; }
/* The Accounting page (#621): a field's note and refusal sit under it; a checkbox sits beside its label. */
.field p { margin: 0.25rem 0 0; }
.muted:empty { display: none; }
.field.check { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.field.check input[type="checkbox"] { width: auto; margin: 0; }
.field.check label { display: inline; margin: 0; }
.field.check p { flex-basis: 100%; }
.notice { font-weight: 600; }
/* The prompt to turn on two-step sign-in (#710): bold like a notice, but it reports nothing done, so it is not one. */
.prompt { font-weight: 600; }
/* Account and two-step sign-in (#710). A link that opens a form looks like the button it stands for. */
a.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--fill);
  border-radius: 0.5rem;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 600;
  text-decoration: none;
}
a.button.quiet { background: transparent; border-color: var(--line); color: var(--accent); }
/* The QR code: black on white in both schemes, with its quiet zone, at 200 CSS pixels. */
.qr { display: block; width: 200px; height: 200px; background: #ffffff; }
/* The key: monospace, in groups of four, selected whole with one click. */
.key code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
  user-select: all;
}
/* The backup codes: two columns, one on a screen 320 CSS pixels wide or less. */
.codes {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.5rem 2rem;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem;
}
@media (max-width: 320px) {
  .codes { grid-template-columns: max-content; }
}
