/* CohLab v4: the two sign-in pages. Tokens and parts from the v4 style guide (11 Nov 2026, `tokens.json` and
   `parts.css`), only the parts these pages use. Outfit stands in for BC Novatica CYR (Dan, 26 Nov: self-host Outfit
   now, swap to BC Novatica later). No shadows, gradients, borders round panels, or text under 15px. */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f4f4f4;
  --panel: #ffffff;
  --ink: #101010;
  --ink-soft: #3f3f3f;
  --ink-muted: #555555;
  --blue: #4162fb;
  --on-blue: #ffffff;
  --pink: #f766e8;
  --hairline: rgba(16, 16, 16, 0.16);
  --hairline-on-blue: rgba(255, 255, 255, 0.5);
  --font-sans: "BC Novatica CYR", "bc-novatica-cyr", "Outfit", system-ui, sans-serif;
  --gutter: 16px;
  --phone-gutter: 12px;
  --panel-pad: 32px;
  --radius-panel: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--page); }
body {
  font-family: var(--font-sans); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--page);
  padding: var(--gutter); min-height: 100vh; display: grid; grid-template-rows: auto 1fr; gap: var(--gutter);
}

/* top bar: the name in plain type */
.cl-nav { display: flex; align-items: center; padding: 8px var(--gutter); }
.cl-nav b { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }

/* the page: one white panel, detail on the left, the blue panel on the right */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); align-items: start; }
main:has(> .cl-blue:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cl-panel { background: var(--panel); border-radius: var(--radius-panel); padding: var(--panel-pad); display: grid; gap: 20px; align-content: start; }
.cl-blue { background: var(--blue); color: var(--on-blue); border-radius: var(--radius-panel); padding: var(--panel-pad); display: grid; gap: 20px; align-content: start; }
main:not(:has(> .cl-blue:not([hidden]))) > .cl-panel { max-width: 880px; }

/* the pink dot label */
.cl-label { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.35; }
.cl-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
/* the guide's 3px on-blue ring round the dot on blue, drawn as an outline: no shadows anywhere (the lint) */
.cl-blue .cl-label::before { outline: 3px solid var(--on-blue); }

/* type */
.cl-page-title { font-size: 60px; line-height: 1.05; font-weight: 400; letter-spacing: -0.025em; }
.cl-statement { font-size: 24px; line-height: 1.3; font-weight: 400; }
.cl-small { font-size: 15px; line-height: 1.4; }
.cl-muted { color: var(--ink-muted); }
.cl-blue .cl-small, .cl-blue .cl-muted { color: var(--on-blue); }

/* rows of facts, a hairline between */
.cl-rows { display: grid; }
.cl-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 13px 0; border-top: 1px solid var(--hairline-on-blue); font-size: 17px; line-height: 1.35; }
.cl-row:first-child { border-top: 0; }
.cl-row b { font-weight: 500; }

/* buttons and links */
.cl-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cl-btn {
  display: inline-block; font: inherit; font-size: 18px; line-height: 1.2; font-weight: 500; padding: 14px 26px; cursor: pointer;
  border-radius: var(--radius-pill); border: 1.5px solid var(--blue); background: var(--blue); color: var(--on-blue); text-decoration: none;
}
.cl-blue .cl-btn { background: var(--panel); color: var(--ink); border-color: var(--panel); }
.cl-blue .cl-btn.is-outline { background: none; color: var(--on-blue); border-color: var(--on-blue); }
.cl-link { justify-self: start; font-size: 16px; line-height: 1.35; color: inherit; text-decoration: none; background: none; border: 0; padding: 12px 0; font-family: inherit; cursor: pointer; }
.cl-link::before { content: "\21B3"; margin-right: 10px; }

/* the one state rule the guide sets: a visible focus outline in ink, 3px */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cl-blue :focus-visible { outline-color: var(--on-blue); }
/* a heading takes focus only so a screen reader announces a new state (#83): it can't be pressed, so no outline */
h1[tabindex="-1"]:focus { outline: none; }

[hidden] { display: none !important; }

/* a phone: one column, the phone gutter */
@media (max-width: 760px) {
  body { padding: var(--phone-gutter); }
  main, main:has(> .cl-blue:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .cl-panel, .cl-blue { padding: 24px 20px; }
  .cl-page-title { font-size: 38px; line-height: 1.08; letter-spacing: -0.02em; }
  .cl-statement { font-size: 20px; }
  .cl-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
