/* The admin website (M5-32), in the OneFolio identity (D77, note 31 R7): the kit's light tokens,
   copied from OneFolio-Rebrand/tokens/onefolio-tokens.css, and its type. No framework. The fonts are
   bundled beside this file (fonts/, with their OFL texts), never fetched from Google. */

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-style: normal;
  src: url("fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
}

:root {
  --of-primary: #0b4f6c;
  --of-primary-hover: #083d54;
  --of-on-primary: #ffffff;
  --of-amber: #f0a93b;
  --of-surface: #ffffff;
  --of-surface-alt: #eef5f8;
  --of-ink: #1b2a33;
  --of-ink-2: #3a4a53;
  --of-ink-3: #52626c;
  --of-border: #dce6eb;
  /* Darkened from the kit's to pass WCAG, as the app's are (R-40, note 31 R10-4). */
  --of-border-strong: #7a8f9a;
  --of-success: #276b4e;
  --of-success-tint: #e6f3ec;
  --of-danger: #b3261e;
  --of-danger-tint: #fbe9e7;
  --of-focus: #2e8cb0;
  --of-font-display: "Space Grotesk", system-ui, sans-serif;
  --of-font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --of-font-mono: "IBM Plex Mono", Consolas, monospace;

  /* The site's own names, mapped onto the layer. */
  --ink: var(--of-ink);
  --ink-2: var(--of-ink-2);
  --ink-3: var(--of-ink-3);
  --surface: var(--of-surface);
  --surface-2: var(--of-surface-alt);
  --rule: var(--of-border-strong);
  --line: var(--of-border);
  --blue: var(--of-primary);
  --danger: var(--of-danger);
  --ok: var(--of-success);

  font-family: var(--of-font-body);
  color: var(--ink);
  background: var(--of-surface-alt);
  color-scheme: light;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
:focus-visible {
  outline: 2px solid var(--of-focus);
  outline-offset: 2px;
}
a {
  color: var(--of-primary);
}
a:hover {
  color: var(--of-primary-hover);
}
.top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--of-surface-alt);
}
/* The lockup: the small mark and the wordmark set live (the kit's rule: mark 1.2 x the type,
   0.3 x the type away; "One" primary, "Folio" ink). */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--of-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand .one {
  color: var(--of-primary);
}
.mark {
  display: block;
  width: 20px;
  height: 20px;
}
.where {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.top nav {
  display: flex;
  gap: 18px;
  margin-left: 24px;
}
.top nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.top nav a:hover {
  color: var(--of-primary-hover);
}
.out {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-2);
  font-size: 13px;
}
main {
  flex: 1;
  padding: 28px;
  max-width: 980px;
}
footer {
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
}
h1 {
  font-family: var(--of-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--of-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 28px 0 10px;
}
p.lead {
  color: var(--ink-2);
  margin: 0 0 18px;
}
form.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
}
form.row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
input,
select {
  min-height: 44px;
  border: 1px solid var(--of-border-strong);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  background: var(--surface);
  color: var(--ink);
}
input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  accent-color: var(--of-primary);
}
button {
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: var(--of-on-primary);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  background: var(--of-primary-hover);
  border-color: var(--of-primary-hover);
}
.out button,
button.quiet {
  min-height: 36px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--of-border-strong);
  padding: 0 12px;
  font-size: 14px;
}
.out button:hover,
button.quiet:hover {
  background: var(--surface);
  border-color: var(--of-primary);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-size: 14px;
  margin: 0;
}
.facts dt {
  color: var(--ink-3);
}
.facts dd {
  margin: 0;
}
.problem {
  color: var(--danger);
}
.done {
  color: var(--ok);
}
.json {
  font-family: var(--of-font-mono);
  font-size: 12px;
  color: var(--ink-2);
  word-break: break-all;
}
/* Templates (1.T07): a version's state as the kit's badge, and a report's sample pages. */
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--of-primary);
  background: var(--of-surface-alt);
}
.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.state.draft {
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--of-border-strong);
  background: var(--surface);
}
.state.published {
  color: var(--of-success);
  background: var(--of-success-tint);
}
.state.withdrawn {
  color: var(--of-danger);
  background: var(--of-danger-tint);
}
.notes {
  color: var(--ink-2);
  font-size: 13.5px;
}
.notes p {
  margin: 0 0 6px;
}
input.reason {
  width: 22em;
}
.samples {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.samples figure {
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}
.samples img {
  width: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  background: #ffffff;
}
.plans label {
  margin-right: 16px;
}
