/* Waypoint accounts pages: the site's Calm theme (tokens copied from waypoint-db/web/admin.html; keep them in step)
   and the plain elements every accounts page shares. No pills: plain words, underlined active state, one-line rows. */
:root {
  /* Calm: an ivory ground and one accent - green (default), blue, burgundy or neutral greys (data-accent) - light, or dark below.
     theme.js keeps the choice; the text colours are dark enough for 4.5:1 or better on every surface. */
  --paper: #f4f2eb; --surface: #fbfaf6; --surface-hi: #ffffff; --ink: #16231c; --muted: #46524b; --rule: #d6d1c6; --rule-strong: #b9b2a4; --soft: #ece9e0;
  --accent: #0f5132; --accent-hi: #0a3a24; --accent-ink: #ffffff; --accent-soft: #dcebe1; --accent-tint: #c9e3d1; --accent-edge: #8fbf9f; --accent-deep: #0b3d25;
  --link: var(--accent); --focus: #2e7d57; --violet: var(--accent);
  --crimson: #b3263e; --saffron: #d9962a; --teal: #1f7a6b; --mark: rgba(217,150,42,.30);
  --shadow: 0 1px 2px rgba(22,35,28,.06), 0 10px 28px rgba(22,35,28,.07);
  --gold: #e6ac0c; --gold-hi: #f4c22c; --gold-ink: #2b1d00; --gold-edge: #a87a05;   /* video pills: stand out from the text */
  --display: "Source Serif 4", Georgia, serif; --brand: "Source Serif 4", Georgia, serif; --read: "Source Serif 4", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif; --mono: "Figtree", system-ui, sans-serif; --code: "DM Mono", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-accent="blue"] {
  --paper: #f3f2ef; --ink: #172230; --muted: #45505e; --accent: #1f4e79; --accent-hi: #163a5c; --accent-soft: #dce7f2; --accent-tint: #c7d9ec; --accent-edge: #8db0d3; --accent-deep: #12324f;
  --focus: #2f6fab; --shadow: 0 1px 2px rgba(23,34,48,.06), 0 10px 28px rgba(23,34,48,.07);
}
:root[data-accent="burgundy"] {
  --paper: #f4f1eb; --ink: #2a1a1e; --muted: #56474a; --accent: #7a1f3d; --accent-hi: #5c1530; --accent-soft: #f2dfe5; --accent-tint: #e8c9d3; --accent-edge: #c88ea2; --accent-deep: #4f1428;
  --focus: #a33a5e; --shadow: 0 1px 2px rgba(42,26,30,.06), 0 10px 28px rgba(42,26,30,.07);
}
:root[data-accent="neutral"] {
  --paper: #f1f0ee; --surface: #f9f8f7; --surface-hi: #ffffff; --ink: #1e1d1b; --muted: #55524e; --rule: #d7d4cf; --rule-strong: #b8b4ad; --soft: #e8e6e2;
  --accent: #3b3936; --accent-hi: #282725; --accent-soft: #e4e1dc; --accent-tint: #d6d2cc; --accent-edge: #a39e96; --accent-deep: #262523;
  --focus: #6e6961; --shadow: 0 1px 2px rgba(30,29,27,.06), 0 10px 28px rgba(30,29,27,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111614; --surface: #19201c; --surface-hi: #1e2621; --ink: #eceeea; --muted: #a9b4ad; --rule: #2d3731; --rule-strong: #4a5750; --soft: #212924;
    --accent: #2a7a54; --accent-hi: #33905f; --accent-ink: #ffffff; --accent-soft: rgba(154,214,176,.16); --accent-tint: rgba(154,214,176,.20); --accent-edge: #4e8f6a; --accent-deep: #d3eddc;
    --link: #9ad6b0; --focus: #9ad6b0;
    --mark: rgba(217,150,42,.28); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    --gold: #f2c443; --gold-hi: #ffd766; --gold-ink: #1a1405; --gold-edge: #f2c443; color-scheme: dark;
  }
  :root:not([data-theme="light"])[data-accent="blue"] {
    --paper: #10141a; --surface: #18202a; --surface-hi: #1d2632; --ink: #eceff4; --muted: #a8b2bf; --rule: #2b3542; --rule-strong: #4a5768; --soft: #202834;
    --accent: #2f65a0; --accent-hi: #3a76b8; --accent-soft: rgba(164,200,238,.16); --accent-tint: rgba(164,200,238,.20); --accent-edge: #5a85b3; --accent-deep: #d6e5f5;
    --link: #a4c8ee; --focus: #a4c8ee;
  }
  :root:not([data-theme="light"])[data-accent="burgundy"] {
    --paper: #161113; --surface: #20191c; --surface-hi: #271e22; --ink: #f2ecee; --muted: #bbadb2; --rule: #3a2c31; --rule-strong: #5c474e; --soft: #2a2125;
    --accent: #9a3256; --accent-hi: #b03e65; --accent-soft: rgba(235,174,195,.16); --accent-tint: rgba(235,174,195,.20); --accent-edge: #a35a74; --accent-deep: #f5dbe4;
    --link: #ebaec3; --focus: #ebaec3;
  }
  :root:not([data-theme="light"])[data-accent="neutral"] {
    --paper: #141414; --surface: #1c1c1c; --surface-hi: #232323; --ink: #ededed; --muted: #a6a6a6; --rule: #303030; --rule-strong: #4c4c4c; --soft: #262626;
    --accent: #4f4f4f; --accent-hi: #5e5e5e; --accent-soft: rgba(255,255,255,.08); --accent-tint: rgba(255,255,255,.12); --accent-edge: #6b6b6b; --accent-deep: #e6e6e6;
    --link: #d6d6d6; --focus: #d6d6d6;
  }
}
:root[data-theme="dark"] {
    --paper: #111614; --surface: #19201c; --surface-hi: #1e2621; --ink: #eceeea; --muted: #a9b4ad; --rule: #2d3731; --rule-strong: #4a5750; --soft: #212924;
    --accent: #2a7a54; --accent-hi: #33905f; --accent-ink: #ffffff; --accent-soft: rgba(154,214,176,.16); --accent-tint: rgba(154,214,176,.20); --accent-edge: #4e8f6a; --accent-deep: #d3eddc;
    --link: #9ad6b0; --focus: #9ad6b0;
    --mark: rgba(217,150,42,.28); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35);
    --gold: #f2c443; --gold-hi: #ffd766; --gold-ink: #1a1405; --gold-edge: #f2c443; color-scheme: dark;
}
:root[data-theme="dark"][data-accent="blue"] {
    --paper: #10141a; --surface: #18202a; --surface-hi: #1d2632; --ink: #eceff4; --muted: #a8b2bf; --rule: #2b3542; --rule-strong: #4a5768; --soft: #202834;
    --accent: #2f65a0; --accent-hi: #3a76b8; --accent-soft: rgba(164,200,238,.16); --accent-tint: rgba(164,200,238,.20); --accent-edge: #5a85b3; --accent-deep: #d6e5f5;
    --link: #a4c8ee; --focus: #a4c8ee;
}
:root[data-theme="dark"][data-accent="burgundy"] {
    --paper: #161113; --surface: #20191c; --surface-hi: #271e22; --ink: #f2ecee; --muted: #bbadb2; --rule: #3a2c31; --rule-strong: #5c474e; --soft: #2a2125;
    --accent: #9a3256; --accent-hi: #b03e65; --accent-soft: rgba(235,174,195,.16); --accent-tint: rgba(235,174,195,.20); --accent-edge: #a35a74; --accent-deep: #f5dbe4;
    --link: #ebaec3; --focus: #ebaec3;
}
:root[data-theme="dark"][data-accent="neutral"] {
    --paper: #141414; --surface: #1c1c1c; --surface-hi: #232323; --ink: #ededed; --muted: #a6a6a6; --rule: #303030; --rule-strong: #4c4c4c; --soft: #262626;
    --accent: #4f4f4f; --accent-hi: #5e5e5e; --accent-soft: rgba(255,255,255,.08); --accent-tint: rgba(255,255,255,.12); --accent-edge: #6b6b6b; --accent-deep: #e6e6e6;
    --link: #d6d6d6; --focus: #d6d6d6;
}
/* the accounts pages are information, not reading: headings, numbers and text all in the plain sans-serif (Figtree).
   Only the Waypoint wordmark (--brand) keeps the site's serif. */
:root { --display: "Figtree", system-ui, sans-serif; --read: "Figtree", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--body); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 80px; display: flow-root; }   /* flow-root: the first heading's top margin stays inside, with or without the stand-in above it */
.wide { max-width: 1180px; }
/* only a stand-in until the site's header (research's site-header.js) replaces it, a moment after the page shows:
   exactly as tall as that header (57px and its 24px gap, whole pixels on both), so nothing moves when it arrives
   (a moving dropdown snaps shut) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 24px; flex-wrap: wrap; }
.wrap > .top { height: 81px; padding: 0 0 24px; overflow: hidden; }
/* the scrollbar's room is kept even while the page is short, so a list arriving doesn't shift everything sideways */
html { scrollbar-gutter: stable; }
.brand { font: 400 22px/1 var(--brand); color: var(--ink); text-decoration: none; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
label { display: block; font-weight: 500; margin: 14px 0 6px; }
input[type=text], input[type=search], input[type=email], input[type=number], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface-hi); border: 1px solid var(--rule-strong);
  border-radius: 8px; padding: 10px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, .button { font: 600 15px var(--body); border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-block; }
button.plain, .button.plain { background: transparent; color: var(--link); border-color: transparent; padding-left: 0; padding-right: 0; text-decoration: underline; }
button.quiet, .button.quiet { background: var(--surface-hi); color: var(--ink); border-color: var(--rule-strong); }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.msg { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.msg.bad { background: color-mix(in srgb, var(--crimson) 14%, transparent); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 14px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
nav.tabs { display: flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
nav.tabs a { padding: 8px 0; color: var(--muted); text-decoration: none; }
nav.tabs a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }      /* .button and others set display, which would beat the hidden attribute */
