/* openjusticelab.org — sign-in gate, error pages and members' hub.
   Open Justice Lab design system, following Crosscheck's styles.css.
   Tokens live in ojl-tokens.css (verbatim from the Lab's design-system project; it pulls in
   scope-one.css, the brand serif embedded as base64). Rules followed here: paper page, white cards
   with a 1px mist border and no shadow, Scope One (single weight) for headings, Inter for UI,
   JetBrains Mono for identifiers, signal red only for errors, no gradients, no emoji, quiet motion,
   links underlined at 1px.
   Everything under /_assets/ is public (served without sign-in). */
@import url("ojl-tokens.css?v=20261009");

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-page); color: var(--fg-2); font-family: var(--font-sans); font-size: 0.9375rem; line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11";
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: var(--fg-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--fg-link-hover); }
h1, h2 { font-family: var(--font-serif); font-weight: 400; color: var(--fg-1); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
p { margin: 0.75rem 0; text-wrap: pretty; }
b, strong { font-weight: 600; color: var(--fg-1); }
.overline { font-size: 0.6875rem; font-weight: 600; letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--ojl-indigo-700); line-height: 1.4; margin: 0; }
.lede { font-family: var(--font-serif); font-size: var(--fs-md); line-height: 1.45; color: var(--fg-1); margin: 0.75rem 0 0; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); font-size: 0.9em; font-feature-settings: "zero", "ss02"; overflow-wrap: anywhere; }
.mono.id { display: inline-block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ojl-indigo-500); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { font: inherit; font-weight: 600; font-size: 0.875rem; line-height: 1.2; padding: 0.75rem 1.25rem; min-height: 2.75rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-2); background: transparent; color: var(--fg-1); cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.btn:hover { border-color: var(--ojl-ink-500); background: var(--bg-surface); color: var(--fg-1); }
.btn.primary { background: var(--ojl-midnight); color: var(--ojl-paper); border-color: var(--ojl-midnight); }
.btn.primary:hover { background: var(--ojl-midnight-900); border-color: var(--ojl-midnight-900); color: var(--ojl-paper); }
.btn.primary:active { background: var(--ojl-midnight-500); border-color: var(--ojl-midnight-500); }

/* ---------------------------------------------------------------- brand */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: inherit; }
.brand .name { font-family: var(--font-serif); font-size: 1.125rem; color: var(--ojl-midnight); line-height: 1.1; letter-spacing: -0.01em; }
.brand .sub { font-size: 0.5625rem; font-weight: 600; letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--ojl-indigo-700); margin-top: 2px; }
a.brand:hover .name { color: var(--ojl-midnight-900); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--border-1); font-size: 0.75rem; color: var(--fg-3); }
.foot .inner { display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.foot a { color: var(--fg-3); }
.foot a:hover { color: var(--fg-1); }

/* ---------------------------------------------------------------- gate: sign-in, errors, 404
   One narrow column, centred on the page, set left like a letterhead. */
.gate-main { flex: 1; display: flex; align-items: center; padding: 4rem 0 3rem; }
.col { width: 100%; max-width: 35rem; margin: 0 auto; padding: 0 2rem; }
.gate .brand { margin-bottom: 3rem; }
.gate .overline { margin-bottom: 0.75rem; }
.hero { font-size: clamp(2.375rem, 1.6rem + 3.4vw, var(--fs-4xl)); line-height: 1.04; letter-spacing: -0.025em; }
.gate h1:not(.hero) { font-size: clamp(1.875rem, 1.5rem + 1.6vw, var(--fs-2xl)); }
.gate .lede { font-size: var(--fs-lg); line-height: 1.35; margin-top: 1rem; }
.panel { background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--radius-md); padding: 1.5rem 1.5rem 1.625rem; margin-top: 2.25rem; }
.panel > p:first-child { margin-top: 0; }
.panel p { color: var(--fg-2); }
.panel form { margin: 1.25rem 0 0; }
.panel > .btn { margin-top: 0.5rem; }
.panel .fine { margin: 1.25rem 0 0; padding-top: 0.875rem; border-top: 1px solid var(--ojl-ink-100); font-size: 0.8125rem; color: var(--fg-3); }
.panel .fine + .fine { margin-top: 0.375rem; padding-top: 0; border-top: 0; }
.panel .banner { margin: 0 0 1rem; font-size: 0.8125rem; color: var(--fg-3); }

/* ---------------------------------------------------------------- hub */
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
.topbar { background: var(--bg-page); border-bottom: 1px solid var(--border-1); }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; flex-wrap: wrap; padding-top: 0.75rem; padding-bottom: 0.75rem; min-height: 3.75rem; }
.who { margin: 0; font-size: 0.8125rem; color: var(--fg-3); }
.who b { font-weight: 500; overflow-wrap: anywhere; }
.who .sep { margin: 0 0.375rem; color: var(--fg-4); }
.hub-main { flex: 1; padding-top: 3.5rem; padding-bottom: 4rem; }
.pagehead { max-width: 44rem; margin-bottom: 2.5rem; }
.pagehead h1 { font-size: clamp(2.25rem, 1.8rem + 1.6vw, var(--fs-3xl)); margin-top: 0.75rem; }
.pagehead .lede { font-size: var(--fs-md); color: var(--fg-2); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.tool { position: relative; display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.375rem; transition: border-color var(--dur-fast) var(--ease-standard); }
.tool:hover { border-color: var(--ojl-ink-500); }
.tool h2 { margin-top: 0.75rem; }
.tool .host { margin: 0.375rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-3); overflow-wrap: anywhere; }
.tool .desc { margin: 1rem 0 0; color: var(--fg-2); line-height: 1.6; }
.tool .note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--fg-3); }
.tool .go { margin: auto 0 0; padding-top: 1.25rem; font-weight: 600; font-size: 0.875rem; }
/* The "Open …" link stretches over the whole card so the card is one target. */
.tool .go a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.tool .go a:focus-visible { outline: none; }
.tool .go a:focus-visible::after { outline: 2px solid var(--ojl-indigo-500); outline-offset: 2px; }
.tool:hover .go a { color: var(--fg-link-hover); }
.hub-note { margin: 1.75rem 0 0; font-size: 0.8125rem; color: var(--fg-3); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .col, .wrap { padding-left: 1rem; padding-right: 1rem; }
  .gate-main { align-items: flex-start; padding: 2.5rem 0 2.5rem; }
  .gate .brand { margin-bottom: 2.25rem; }
  .panel { padding: 1.25rem 1.25rem 1.375rem; margin-top: 1.75rem; }
  .panel .btn { width: 100%; }
  .hub-main { padding-top: 2.25rem; padding-bottom: 3rem; }
  .pagehead { margin-bottom: 1.75rem; }
  .tool { padding: 1.25rem 1.25rem 1.25rem; }
  .foot .inner { padding-top: 1rem; padding-bottom: 1rem; }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
