/* vfc-intercept (VFC-1809) v2 - the signed-in pages, in the blessed VFC web style (senate, dispatch):
 * olive-green ink and header, copper and sand, a cream page, white panels, Public Sans. Light only. */
:root {
  --bg: #f5f1ef;
  --panel: #ffffff;
  --ink: #272b21;
  --muted: #6b6f60;
  --line: #e7ded7;
  --brand: #aa6230;
  --brand-hover: #bb7f55;
  --brand-ink: #ffffff;
  --header: #272b21;
  --header-ink: #f5f1ef;
  --sand: #ddac8a;
  --tint: #faf7f4;
  --note-bg: #fdf3e8;
  --note-line: #f0dcc4;
  --note-ink: #8a5a24;
  --bad: #b3261e;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* the shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 12px 28px; background: var(--header); color: var(--header-ink); box-shadow: 0 1px 0 rgba(0,0,0,0.18);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--header-ink); }
.brand:hover { text-decoration: none; color: var(--header-ink); }
.brand__seal { display: block; width: 36px; height: 36px; }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: 0.3px; }
.brand__sub { font-size: 13px; color: var(--sand); }
.tabs { display: flex; gap: 4px; }
.tabs__link { color: var(--header-ink); padding: 6px 12px; border-radius: 6px; font-weight: 500; }
.tabs__link:hover { background: rgba(255,255,255,0.08); color: var(--header-ink); text-decoration: none; }
.tabs__link--on { background: rgba(221,172,138,0.22); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.actor__role { padding: 2px 8px; border-radius: 999px; background: rgba(221,172,138,0.22); color: var(--sand); }
.content { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 28px 40px; }
.footer { padding: 14px 28px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--tint); }

/* buttons and inputs */
button, .btn { font: inherit; cursor: pointer; border-radius: 8px; padding: 7px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
button:hover { border-color: var(--sand); }
button:disabled { cursor: default; opacity: 0.55; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-on-dark { background: transparent; color: var(--header-ink); border-color: rgba(245,241,239,0.35); padding: 4px 10px; }
input[type="date"], input[type="search"] { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* the page head and the controls */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { margin: 0; font-size: 22px; }
.pagehead__sub { margin: 2px 0 0; color: var(--muted); }
.controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* panels, notices */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.notice { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; }
.notice--bad { color: var(--bad); }

/* the player */
.player { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.player__what { min-width: 220px; }
.player audio { flex: 1; min-width: 260px; }

/* the table */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--tint); }
tr:last-child td { border-bottom: none; }
tr.is-playing td { background: var(--note-bg); }
td.num { font-variant-numeric: tabular-nums; }
.controls--gap { margin-bottom: 12px; }

/* consent */
.section { font-size: 16px; margin: 22px 0 10px; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--tint); color: var(--muted); }
.chip--given, .chip--released { color: #2e7d43; border-color: #cfe5d5; background: #f1f8f3; }
.chip--quarantined, .chip--confirmed { color: var(--bad); border-color: #efcdca; background: #fcf1f0; }
td.actions { display: flex; gap: 6px; }
tr.words td { white-space: normal; background: var(--tint); }
.turn { margin: 4px 0; }
.turn__who { display: inline-block; min-width: 92px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
