/* Lab house style, taken from hansard-antisemitism.pages.dev */
:root {
  color-scheme: light;
  --plane:#f6f3ec; --surface-1:#fffdf8;
  --text-primary:#1c2833; --text-secondary:#4a5765; --muted:#63707f;
  --grid:#ece4d6; --axis:#d9d0be; --border:#e2dac9; --hair:#ece4d6;
  --series-1:#1a2a5e; --series-2:#b2544a; --series-3:#9a8535;
  --accent-wash:#efe6d2; --gold:#7b6a2a; --navy:#1a2a5e;
  --shadow:0 1px 2px rgba(27,58,92,.06), 0 2px 10px rgba(27,58,92,.07);
  --shadow-lift:0 6px 22px rgba(27,58,92,.14);
  --display:"Space Grotesk", Inter, -apple-system, "Segoe UI", sans-serif;
  --body:Inter, -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --serif:"Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --plane:#14161a; --surface-1:#1b1e24;
  --text-primary:#e7e3da; --text-secondary:#b3aea3; --muted:#8b8579;
  --grid:#2a2e35; --axis:#3a3f47; --border:#2c3037; --hair:#24272d;
  --series-1:#7ea3d8; --series-2:#d1786c; --series-3:#c2a54e;
  --accent-wash:#2b3a4a; --gold:#c2a54e; --navy:#7ea3d8;
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 2px 10px rgba(0,0,0,.25);
  --shadow-lift:0 6px 22px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--plane); color: var(--text-primary);
  font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px 80px; }
.draftnote { background: var(--series-2); color: #fffdf8; font-family: var(--display);
  font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; margin: 0; }
.draftnote a { color: #fffdf8; text-decoration: underline; }
a { color: var(--series-1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sitetitle { margin: 0 0 4px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.sitetitle a { color: var(--text-secondary); text-decoration: none; }
.sitetitle a:hover { color: var(--navy); text-decoration: underline; }
.sitetitle .here { color: var(--text-primary); }
.icons { display: flex; gap: 5px; }
.icn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 13px; line-height: 1; border: 1px solid var(--border); border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer; padding: 0; flex: 0 0 auto; text-decoration: none; }
.icn:hover { color: var(--series-1); border-color: var(--series-1); }
header h1 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 14px 0 8px;
  letter-spacing: -0.015em; line-height: 1.15; }
header h1 a { color: inherit; text-decoration: none; }
header p.sub { margin: 0 0 6px; color: var(--text-secondary); max-width: 72ch; }
.byline { margin: 0 0 4px; font-size: 13.5px; color: var(--text-secondary); max-width: 80ch; }
.statline { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.statline b { color: var(--text-primary); font-weight: 600; }
.caveat { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold);
  background: var(--surface-1); color: var(--text-secondary); font-size: 13.5px;
  border-radius: 0 6px 6px 0; max-width: 86ch; }

.rule::before { content: ""; display: block; width: 46px; height: 3px; background: var(--gold);
  margin-bottom: 11px; border-radius: 1px; }
.eyebrow { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 5px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 34px 0 8px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 15.5px; margin: 20px 0 6px; }
.prose p, .prose li { max-width: 76ch; color: var(--text-primary); }
.prose li { margin-bottom: 6px; }
.mono { font-family: var(--mono); }

/* filters */
.simplefilters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 22px 0 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld > span { font-family: var(--display); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gold); font-weight: 600; }
.fld input, .fld select { font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); min-width: 160px; }
.fld input[type=search] { font-family: var(--mono); font-size: 13px; min-width: 220px; }
.chk { font-size: 13px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.chk input { accent-color: var(--gold); }
.fldbtns { display: flex; gap: 7px; align-items: center; margin-left: auto; }
button.ghost, a.ghost { background: none; border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; text-decoration: none; }
button.ghost:hover, a.ghost:hover { background: var(--surface-1); }
.resultline { font-size: 12.5px; color: var(--muted); margin: 4px 0 12px; font-family: var(--mono); }
.resultline strong { color: var(--text-primary); font-weight: 600; }

/* kind matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface-1);
  border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.matrix th, .matrix td { padding: 6px 10px; border-bottom: 1px solid var(--hair); text-align: right; }
.matrix th { font-family: var(--display); font-weight: 600; font-size: 11.5px; color: var(--text-secondary);
  vertical-align: bottom; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0;
  background: var(--surface-1); }
.matrix td { font-family: var(--mono); }
.matrix td.z { color: var(--grid); }
.matrix td button { font: inherit; border: 0; background: none; color: var(--series-1); cursor: pointer; padding: 0; }
.matrix td button:hover { text-decoration: underline; }
.matrix tr:last-child td { border-bottom: 0; }
.hscroll { overflow-x: auto; }

/* records */
.inst { background: var(--surface-1); border: 1px solid var(--hair); border-radius: 10px; padding: 15px 20px;
  margin-bottom: 11px; box-shadow: var(--shadow); transition: box-shadow .15s; }
.inst:hover { box-shadow: var(--shadow-lift); }
.inst .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 13px; }
.inst .who { font-weight: 650; font-family: var(--display); font-size: 14.5px; }
.inst .where { color: var(--text-secondary); }
.inst .date { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.pill { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--border);
  color: var(--text-secondary); white-space: nowrap; }
.pill.cur { border-color: var(--series-1); color: var(--series-1); }
.pill.warn { border-color: var(--series-2); color: var(--series-2); }
.pill.soft { border-style: dashed; }
.inst blockquote { margin: 10px 0 0; padding: 2px 0 2px 15px; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 16.5px; line-height: 1.5; color: var(--text-primary); }
.inst .gloss { margin: 3px 0 0 18px; font-size: 13px; color: var(--muted); }
.inst .issuer { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
.inst .notes { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); max-width: 90ch; }
.links { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.links a { color: var(--series-1); text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links .fsize { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.more { display: block; width: 100%; margin: 8px 0 0; padding: 11px; font: inherit; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); cursor: pointer; }

/* downloads */
.dl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dl th { text-align: left; font-family: var(--display); font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gold); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.dl td { padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.dl td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }
.dl th.n { text-align: right; }
.dl a { text-decoration: none; font-family: var(--mono); font-size: 12.5px; margin-right: 10px; white-space: nowrap; }
.dl a:hover { text-decoration: underline; }
.dl tr.all td { font-weight: 600; background: var(--accent-wash); }
.card { background: var(--surface-1); border: 1px solid var(--hair); border-radius: 10px; padding: 14px 18px;
  box-shadow: var(--shadow); }
.term { background: #10141a; color: #d7dbe0; border-radius: 10px; padding: 14px 16px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; margin: 8px 0 0; }
.term .p { color: #7ee08a; }
.ttabs { display: flex; gap: 4px; margin-top: 12px; }
.ttab { font-family: var(--mono); font-size: 12px; padding: 5px 11px; border: 1px solid var(--border);
  border-radius: 6px 6px 0 0; background: none; color: var(--muted); cursor: pointer; }
.ttab[aria-selected="true"] { background: #10141a; color: #fff; border-color: #10141a; }

.nf { columns: 2 260px; column-gap: 28px; font-size: 13.5px; padding-left: 18px; }
.nf li { break-inside: avoid; margin-bottom: 4px; color: var(--text-secondary); }

.credit { margin-top: 36px; padding: 16px 18px; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13.5px; }
.credit h2 { font-size: 14px; margin: 0 0 6px; font-family: var(--body); font-weight: 600; }
.credit p { margin: 0 0 8px; color: var(--text-secondary); }
footer { margin-top: 26px; font-size: 12.5px; color: var(--muted); max-width: 80ch; }
.hidden { display: none !important; }


/* definitions named in the text */
.defs { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
details.defs summary { cursor: pointer; }
details.defs summary:hover { color: var(--series-1); }
.defname { margin: 10px 0 0; font-family: var(--display); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--gold); font-weight: 600; }
details.defs blockquote { font-size: 15px; margin-top: 4px; }

/* Mobile, kept last so these rules win */
@media (max-width: 620px) {
  body { overflow-x: hidden; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  header h1 { font-size: 22px; }
  .fld, .fld select, .fld input { min-width: 0; max-width: 100%; width: 100%; }
  .simplefilters .fld { flex: 1 1 100%; }
  .fldbtns { margin-left: 0; flex-wrap: wrap; }
  .inst { padding: 13px 14px; }
  .dl { font-size: 12.5px; }
  .nf { columns: 1; }
}
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; --plane:#fff; --surface-1:#fff; --text-primary:#000;
    --text-secondary:#222; --muted:#555; --border:#ccc; --hair:#ddd; --shadow:none; --shadow-lift:none; }
  .draftnote, .icn, button, .more { display: none !important; }
}
