/* COPIED from complyr-motion/datum/css/datum.css on 2026-11-16 for the complyr.com site.
   Changes: asset paths only (the three @font-face src urls now point at /fonts/). Nothing else changed.
   Engine and system file: owned by the orchestrator. Page agents never edit it; site additions go in site.css. */

/* Datum page system. Shared by every section; section agents never edit this file.
   Source: complyr/docs/local/datum/story/BRIEF.md, "Consistency spec v2" wins where it differs. */

@font-face { font-family: "Helvetica Neue"; font-weight: 400; font-style: normal; font-display: block; src: url("/fonts/HelveticaNeue-Regular.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-weight: 500; font-style: normal; font-display: block; src: url("/fonts/HelveticaNeue-Medium.otf") format("opentype"); }
@font-face { font-family: "Helvetica Neue"; font-weight: 700; font-style: normal; font-display: block; src: url("/fonts/HelveticaNeue-Bold.otf") format("opentype"); }

:root {
  /* The only page colours. */
  --white: #FFFFFF;
  --onyx: #1B1B1C;        /* all text */
  --field: #163B99;       /* proven building, buttons, links, labels, big figures, one closing band */
  --review: #2B7CD0;      /* building on paper only: outlines and not-started dots. Never text. */
  --yellow: #FCB901;      /* only a square or marker awaiting sign-off or a decision. Never text, button or highlight. */
  --grey: #6C7078;        /* captions only */
  --hairline: #E3E5E8;    /* 1px rules inside product cards only */

  /* Product badge palette (inside app snippets only). */
  --ok: #1F7A4D;   --ok-bg: #E6F4EC;
  --await-bg: #FFF4CC;
  --open-bg: #E8EEFA;
  --back: #B42318; --back-bg: #FDECEA;
  --none-bg: #F3F4F6;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);   /* the heaviest shadow allowed */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* 1440 design: 120 side padding, 1200 content. Fluid down to about 1024. */
  --pad-x: clamp(32px, 8.333vw, 120px);
  --content: 1200px;
  --section-y: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--onyx);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--field); outline-offset: 3px; }

/* ---------- Layout ---------- */
.dt-wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.dt-section { padding: var(--section-y) 0; }
.dt-hero { padding: 96px 0 var(--section-y); }         /* nav (88) then 96 to the headline */
.dt-gap-96 { margin-top: 96px; }                       /* chapter header block to the picture row */
.dt-gap-64 { margin-top: 64px; }
.dt-gap-32 { margin-top: 32px; }

/* ---------- Nav (static, never fixed) ---------- */
.dt-nav { height: 88px; padding-top: 24px; }
.dt-nav__in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.dt-nav__logo { width: 140px; height: 28px; }
.dt-nav__links { display: flex; align-items: center; gap: 40px; }
.dt-nav__links a, .dt-nav__signin { font-size: 16px; line-height: 24px; color: var(--onyx); text-decoration: none; white-space: nowrap; }
.dt-nav__links a:hover, .dt-nav__signin:hover { text-decoration: underline; text-underline-offset: 4px; }
.dt-nav__actions { display: flex; align-items: center; gap: 32px; }
@media (max-width: 1100px) { .dt-nav__links { gap: 24px; } .dt-nav__actions { gap: 24px; } }

/* ---------- Type roles ---------- */
.dt-h1 { font-size: 72px; line-height: 76px; font-weight: 700; letter-spacing: -0.02em; color: var(--onyx); }
.dt-h2 { font-size: 52px; line-height: 56px; font-weight: 700; letter-spacing: -0.02em; color: var(--onyx); }
.dt-h3 { font-size: 32px; line-height: 36px; font-weight: 700; color: var(--onyx); }
.dt-label { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--field); }
.dt-label__n { margin-right: 0.6em; }                  /* "1  Before work starts" */
.dt-body { font-size: 20px; line-height: 30px; font-weight: 400; color: var(--onyx); max-width: 560px; }
.dt-figure { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.02em; color: var(--field); }
.dt-ui { font-size: 16px; line-height: 24px; }
.dt-caption { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--grey); }

/* Chapter header block: label, 16, H2, 24, body (one paragraph, 560 wide). Then 96 to the picture row. */
.dt-head { display: flex; flex-direction: column; align-items: flex-start; }
.dt-head > .dt-label + .dt-h2 { margin-top: 16px; }
.dt-head > .dt-h2 + .dt-body { margin-top: 24px; }

/* ---------- Buttons and links (52 tall everywhere) ---------- */
.dt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 14px 24px; border: 0; border-radius: 4px;
  background: var(--field); color: var(--white);
  font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dt-btn--white { background: var(--white); color: var(--field); }
.dt-link { color: var(--field); font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.dt-actions { display: flex; align-items: center; gap: 32px; }

/* ---------- Product badges (14px text, 28 tall, radius 4, icon on every badge) ---------- */
.dt-badge {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 28px; padding: 0 10px; border-radius: 4px;
  font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap;
}
.dt-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.dt-badge--accepted { color: var(--ok); background: var(--ok-bg); }
.dt-badge--awaiting { color: var(--onyx); background: var(--await-bg); box-shadow: inset 0 0 0 1px var(--yellow); }
.dt-badge--open { color: var(--field); background: var(--open-bg); }
.dt-badge--sent-back { color: var(--back); background: var(--back-bg); }
.dt-badge--not-started { color: var(--grey); background: var(--none-bg); }

/* ---------- Cards and registers (one object, one style) ---------- */
.dt-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: var(--shadow); padding: 24px; }
.dt-record { width: 440px; max-width: 100%; }
.dt-record__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dt-record__ref { font-size: 16px; line-height: 24px; color: var(--onyx); }
.dt-record__title { font-size: 20px; line-height: 30px; font-weight: 700; color: var(--onyx); }
.dt-kv { margin-top: 16px; }
.dt-kv__row { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; column-gap: 16px; min-height: 44px; border-top: 1px solid var(--hairline); font-size: 16px; line-height: 24px; }
.dt-kv__k { font-weight: 400; }
.dt-kv__v { font-weight: 500; }
.dt-thumbs { display: flex; gap: 8px; margin-top: 16px; }
.dt-thumb { width: 80px; height: 60px; border-radius: 2px; object-fit: cover; flex-shrink: 0; }
.dt-thumb--more { display: flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); font-size: 16px; line-height: 24px; font-weight: 500; }
.dt-photo-note { margin-top: 8px; }                    /* "Stand-in photos." caption */

/* Register: set the fixed column widths per register with --cols, e.g. style="--cols: 104px 1fr 200px". */
.dt-register { padding-top: 16px; padding-bottom: 8px; }
.dt-reg__row { display: grid; grid-template-columns: var(--cols, 120px minmax(0, 1fr) 200px); align-items: center; column-gap: 16px; height: 56px; border-top: 1px solid var(--hairline); font-size: 16px; line-height: 24px; }
.dt-reg__row--head { height: 40px; align-items: start; border-top: 0; font-weight: 500; }
.dt-reg__row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Building legend (only the states the picture shows) ---------- */
.dt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.dt-legend__item { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--onyx); white-space: nowrap; }
.dt-legend + .dt-caption { margin-top: 8px; }
.dt-sw { width: 14px; height: 14px; flex-shrink: 0; }
.dt-sw--accepted { background: var(--field); }
.dt-sw--awaiting { background: var(--yellow); }
.dt-sw--open { border: 1.5px solid var(--field); background: var(--white); }
.dt-sw--dot { display: flex; align-items: center; justify-content: center; }
.dt-sw--dot::after { content: ""; width: 4px; height: 4px; background: var(--review); }
.dt-sw--drawings { width: 28px; border: 1px solid var(--review); }

/* ---------- Building engine output (js/building.js) ---------- */
.dt-building { position: relative; display: grid; grid-template-columns: minmax(0, calc(var(--w) * var(--s, 1) * 1px)); width: max-content; max-width: 100%; }
.dt-building.has-labels { grid-template-columns: minmax(0, calc(var(--w) * var(--s, 1) * 1px)) 80px; }
.dt-building__svg { width: 100%; height: auto; overflow: visible; }
.dt-levels { position: relative; }
.dt-lvl { position: absolute; left: 0; display: flex; flex-direction: column; justify-content: center; padding-left: 12px; font-size: 14px; line-height: 20px; color: var(--onyx); white-space: nowrap; }
.dt-lvl__sub { display: none; }
.dt-lvl.is-underway { padding-left: 9px; border-left: 3px solid var(--field); }
.dt-lvl.is-underway .dt-lvl__name { font-weight: 500; }
.dt-lvl.is-underway .dt-lvl__sub { display: block; }

/* ---------- Sticky scroll scenes (js/core.js Datum.scene) ---------- */
.dt-scene { position: relative; }
html:not(.dt-reduced) .dt-scene { padding-top: 0; padding-bottom: 0; }   /* reduced: scenes lie flat and keep their section padding */
.dt-stage { min-height: 100vh; overflow: clip; display: flex; flex-direction: column; justify-content: center; }  /* v2: not pinned; the page scrolls normally */
.dt-reduced .dt-scene { height: auto !important; }
.dt-reduced .dt-stage { min-height: 0; overflow: visible; }
[hidden] { display: none !important; }
/* Reduced motion also stops any CSS transition or keyframe animation a section adds (core.js sets .dt-reduced for the media query and ?reduced). */
.dt-reduced *, .dt-reduced *::before, .dt-reduced *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }

/* ---------- Placeholders (stubs only; section agents delete them) ---------- */
.dt-placeholder { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 32px; border: 1px dashed var(--grey); border-radius: 8px; font-size: 16px; line-height: 24px; color: var(--grey); text-align: center; }

/* ---------- ?debug readout ---------- */
.dt-debug { position: fixed; right: 16px; bottom: 16px; z-index: 100; min-width: 240px; padding: 12px 16px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: var(--shadow); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; pointer-events: none; }
.dt-debug__row { display: flex; justify-content: space-between; gap: 16px; }
.dt-debug__row.is-active { font-weight: 500; color: var(--field); }

.dt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Play / Replay (draft 2): one small control, always under the picture at the right of the page column ---------- */
.dt-replay-row { display: flex; justify-content: flex-end; padding-top: 16px; }
.dt-replay {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px;
  font: 500 14px/1 var(--font); color: var(--onyx); background: var(--white);
  border: 1px solid var(--hairline); border-radius: 16px; cursor: pointer;
}
.dt-replay svg { width: 16px; height: 16px; flex: none; color: var(--field); }
.dt-replay:hover { border-color: var(--field); }
